dotfiles/scripts/showKeyboardLayout
2018-10-14 16:59:49 +02:00

5 lines
206 B
Bash
Executable file

#!/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}