Disable caps key in linux

This commit is contained in:
Michael Campagnaro 2015-11-17 17:03:27 -05:00
parent 20db2a68a4
commit 616fd6c7a4

5
zshrc
View File

@ -8,8 +8,13 @@ autoload -U promptinit
promptinit promptinit
prompt grb prompt grb
# Linux specific config
if [[ $platform == 'Linux' ]]; then if [[ $platform == 'Linux' ]]; then
zstyle :compinstall filename `$HOME/.zshrc` zstyle :compinstall filename `$HOME/.zshrc`
# Set caps to ctrl
setxkbmap -option 'caps:ctrl_modifier'
# Make caps act as Esc when tapped. Require `xcape` package.
xcape -e 'Caps_Lock=Escape'
fi fi
autoload -Uz compinit autoload -Uz compinit