sxhkd/toggle-gb-ru-kb.sh

9 lines
136 B
Bash
Executable File

#!/bin/sh
LAYOUT=$(setxkbmap -query | grep layout | grep -oP "gb|ru")
if [ $LAYOUT = 'gb' ] ; then
setxkbmap ru
else
setxkbmap gb
fi