diff options
| author | Miquel Sabaté Solà <msabate@suse.com> | 2021-11-15 23:15:49 +0100 |
|---|---|---|
| committer | Miquel Sabaté Solà <msabate@suse.com> | 2021-11-15 23:17:44 +0100 |
| commit | a1cd0af3ecc048cfcb3a707233550944ae7f659d (patch) | |
| tree | 472aedb9114fa3a20cfe8f2492462e408ef560ed /bin/toggle-keyboard-layout.sh | |
| parent | 91f262e4f106f6e633fba3dbf15684655dac1238 (diff) | |
| download | dotfiles-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>
Diffstat (limited to 'bin/toggle-keyboard-layout.sh')
| -rwxr-xr-x | bin/toggle-keyboard-layout.sh | 4 |
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 |
