kbd notif in awesome
This commit is contained in:
10
.bin/kbdswitch
Executable file
10
.bin/kbdswitch
Executable 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
|
||||
Reference in New Issue
Block a user