feat: caps lock key configuration

Esc on press, ctrl on hold.
This commit is contained in:
Oliver Davies 2023-06-01 00:36:19 +01:00
parent 342ea10202
commit bf3d81656d
3 changed files with 23 additions and 9 deletions

View file

@ -5,12 +5,6 @@
dotDir = ".config/zsh";
initExtra = ''
# Make Caps Lock behave like Ctrl.
setxkbmap -option ctrl:nocaps
# Make short-pressed Ctrl behave like Escape.
xcape -e 'Control_L=Escape'
# Plugins
source "''${ZPLUG_REPOS}/robbyrussell/oh-my-zsh/plugins/git/git.plugin.zsh"
source "''${ZPLUG_REPOS}/robbyrussell/oh-my-zsh/plugins/vi-mode/vi-mode.plugin.zsh"