Files
dotfiles/.config/yadm/alt/.bin/kbdswitch##o.Linux
Simonas Narbutas bb1363f92e fix .bin scripts
2019-11-21 13:47:40 +01:00

11 lines
240 B
Bash
Executable File

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