Changes double shift action

Previously, pushing both shift keys would switch the layout between
colemak and qwerty. However, I never use qwerty now so have changed it
so that double shift now toggles capslock. The capslock key remains
bound to backspace as is default in colemak
This commit is contained in:
Jonathan Hodgson 2021-11-25 12:30:22 +00:00
parent 4279b7373a
commit 56395b71f1
2 changed files with 2 additions and 2 deletions

View file

@ -223,7 +223,7 @@ fi
# Keyboard - reset # Keyboard - reset
# Sometimes, if I turn the screens off, the keyboard resets itself to defaults. Not sure why but this will put my keyboard back to how I like it # Sometimes, if I turn the screens off, the keyboard resets itself to defaults. Not sure why but this will put my keyboard back to how I like it
#alias kb="xmodmap ~/.Xmodmap; xset r rate 200 70; xcape" #alias kb="xmodmap ~/.Xmodmap; xset r rate 200 70; xcape"
alias keys="setxkbmap -layout gb,gb -variant \"colemak,\" -option grp:shifts_toggle -option compose:ralt; xset r rate 200 70; xinput --list | grep -Ei 'ErgoDox EZ\s+id' | grep -oE 'id=[0-9]+' | cut -d'=' -f2 | xargs -r setxkbmap -layout gb -device" alias keys="setxkbmap -layout gb -variant colemak -option shift:both_capslock -option compose:ralt; xset r rate 200 70; xinput --list | grep -Ei 'ErgoDox EZ\s+id' | grep -oE 'id=[0-9]+' | cut -d'=' -f2 | xargs -r setxkbmap -layout gb -device"
alias colemak="setxkbmap -layout gb,gb -variant \"colemak,\" -option grp:shifts_toggle" alias colemak="setxkbmap -layout gb,gb -variant \"colemak,\" -option grp:shifts_toggle"
alias qwerty="setxkbmap -layout gb" alias qwerty="setxkbmap -layout gb"

View file

@ -21,7 +21,7 @@ export CORPPASSCOMMAND="pass IRM/corp"
#xset r rate 200 70 #xset r rate 200 70
# Set keymap to colemak # Set keymap to colemak
setxkbmap -layout gb,gb -variant "colemak," -option grp:shifts_toggle -option compose:ralt setxkbmap -layout gb,gb -variant "colemak," -option shift:both_capslock -option compose:ralt
# Set key rate # Set key rate
xset r rate 200 70; xset r rate 200 70;