dotfiles/scripts/showKeyboardLayout

5 lines
206 B
Plaintext
Raw Normal View History

2018-10-14 16:59:49 +02:00
#!/usr/bin/bash
layout=`setxkbmap -query | grep layout | tr -s ' ' | cut -d ' ' -f2`
variant=`setxkbmap -query | grep variant | tr -s ' ' | cut -d ' ' -f2`
gkbd-keyboard-display -l ${layout}$'\t'${variant}