Disable caps key in linux
This commit is contained in:
parent
20db2a68a4
commit
616fd6c7a4
5
zshrc
5
zshrc
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user