add switchkb

This commit is contained in:
opfez 2021-11-21 10:35:12 +01:00
parent 637857a6fe
commit 01b63ecd5f
1 changed files with 14 additions and 0 deletions

14
switchkb Executable file
View File

@ -0,0 +1,14 @@
#!/bin/sh
currentkb() {
setxkbmap -query | grep layout | awk '{print $2}'
}
if currentkb | grep "^nous$"; then
setxkbmap ru
#elif currentkb | grep "^ru$"; then
# apl keyboard
# setxkbmap us,apl -variant ,dyalog -option grp:switch
else
setxkbmap nous
fi