aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <msabate@suse.com>2021-11-15 23:15:49 +0100
committerMiquel Sabaté Solà <msabate@suse.com>2021-11-15 23:17:44 +0100
commita1cd0af3ecc048cfcb3a707233550944ae7f659d (patch)
tree472aedb9114fa3a20cfe8f2492462e408ef560ed
parent91f262e4f106f6e633fba3dbf15684655dac1238 (diff)
downloaddotfiles-a1cd0af3ecc048cfcb3a707233550944ae7f659d.tar.gz
dotfiles-a1cd0af3ecc048cfcb3a707233550944ae7f659d.zip
bin: explicitely set the nocap option
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à <msabate@suse.com>
-rwxr-xr-xbin/toggle-keyboard-layout.sh4
1 files 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