From b11a2d4a6a1ed9a46efe49e91e60e381e922d94e Mon Sep 17 00:00:00 2001 From: Solomon Laing Date: Sat, 12 Nov 2022 16:58:07 +1030 Subject: [PATCH] update to keyboard switching scripts --- scripts/kbswitcher | 2 ++ scripts/switchkb | 5 +---- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/scripts/kbswitcher b/scripts/kbswitcher index 4de9101..94bca7a 100755 --- a/scripts/kbswitcher +++ b/scripts/kbswitcher @@ -21,4 +21,6 @@ else esac fi +notify-send -u normal -r 161616 "kbswitcher" "Keyboard layout set to $layout." + setxkbmap -layout "$layout" -option ctrl:nocaps diff --git a/scripts/switchkb b/scripts/switchkb index 179208d..f01fef5 100755 --- a/scripts/switchkb +++ b/scripts/switchkb @@ -2,9 +2,6 @@ ## # Switches to the given keyboard (argument) and sets -# xmodmap to $2 so that everything works as expected. ## -setxkbmap "$1" - -xmodmap -pke "$2" > /dev/null 2>&1 +setxkbmap "$1" -option ctrl:nocaps