added kbd layout switcher

This commit is contained in:
Tristaan
2021-03-04 17:06:59 +01:00
parent 8ab2bf498b
commit c63319a6a1
2 changed files with 11 additions and 4 deletions

View File

@@ -0,0 +1,8 @@
#!/bin/sh
CURR_MAP=$(setxkbmap -query | grep layout | sed 's/layout: //g')
if [ "$CURR_MAP" = "si" ]
then
setxkbmap us altgr-intl
else
setxkbmap si
fi