update to keyboard switching scripts

This commit is contained in:
Solomon Laing 2022-11-12 16:58:07 +10:30
parent 96a95a2d98
commit b11a2d4a6a
2 changed files with 3 additions and 4 deletions

View File

@ -21,4 +21,6 @@ else
esac esac
fi fi
notify-send -u normal -r 161616 "kbswitcher" "Keyboard layout set to $layout."
setxkbmap -layout "$layout" -option ctrl:nocaps setxkbmap -layout "$layout" -option ctrl:nocaps

View File

@ -2,9 +2,6 @@
## ##
# Switches to the given keyboard (argument) and sets # Switches to the given keyboard (argument) and sets
# xmodmap to $2 so that everything works as expected.
## ##
setxkbmap "$1" setxkbmap "$1" -option ctrl:nocaps
xmodmap -pke "$2" > /dev/null 2>&1