From a1cd0af3ecc048cfcb3a707233550944ae7f659d Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Mon, 15 Nov 2021 23:15:49 +0100 Subject: bin: explicitely set the nocap option MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When toggling the layout, explicitely set the ctrl:nocap option so it overrides the default value for some systems. Signed-off-by: Miquel Sabaté Solà --- bin/toggle-keyboard-layout.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/toggle-keyboard-layout.sh b/bin/toggle-keyboard-layout.sh index 5f36b89..935d401 100755 --- a/bin/toggle-keyboard-layout.sh +++ b/bin/toggle-keyboard-layout.sh @@ -20,8 +20,8 @@ layout=$(setxkbmap -query | awk '/layout/{print $2}') if [ "$layout" == 'mi' ] then - setxkbmap es + setxkbmap es -option ctrl:nocap else - setxkbmap mi + setxkbmap mi -option ctrl:nocap fi killall -SIGUSR1 i3status -- cgit v1.2.3