From 616fd6c7a459aaea6579a948aef32c46eeb8bfbe Mon Sep 17 00:00:00 2001 From: Michael Campagnaro Date: Tue, 17 Nov 2015 17:03:27 -0500 Subject: [PATCH] Disable caps key in linux --- zshrc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/zshrc b/zshrc index af2a90c..85828b8 100644 --- a/zshrc +++ b/zshrc @@ -8,8 +8,13 @@ autoload -U promptinit promptinit prompt grb +# Linux specific config if [[ $platform == 'Linux' ]]; then 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 autoload -Uz compinit