bin/switchkb

15 lines
274 B
Bash
Executable File

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