kbd notif in awesome

This commit is contained in:
Simonas Narbutas
2018-07-30 14:57:54 +02:00
parent 2e41d7601d
commit fd56f2ca1c
4 changed files with 46 additions and 10 deletions

10
.bin/kbdswitch Executable file
View File

@@ -0,0 +1,10 @@
#!/bin/sh
LANG1="us"
LANG2="lt"
CURRENT_LANG=$(setxkbmap -query | grep layout |awk -F" " '{print $2}')
if [ "$CURRENT_LANG" = $LANG1 ]; then
setxkbmap $LANG2 && echo $LANG2
else
setxkbmap $LANG1 && echo $LANG1
fi
xmodmap ~/.Xmodmap