the capslock key now acts as esc when tapped, and ctrl when held

This commit is contained in:
Stefen Auris 2017-08-23 15:44:27 -04:00
parent e4fb8078f0
commit d51d1551de
2 changed files with 6 additions and 1 deletions

5
.zshrc
View file

@ -106,3 +106,8 @@ setopt share_history
setopt list_types
setopt mark_dirs
setopt path_dirs
#Set caps to escape when tapped and ctrl when held
setxkbmap -option 'caps:ctrl_modifier'
xcape -e 'Caps_Lock=Escape'

View file

@ -1,7 +1,7 @@
#!/bin/bash
#install pre-req.
echo "installing required packages"
sudo apt-get install tmux zsh vim powerline
sudo apt-get install tmux zsh vim powerline xcape
#remove existing configs, if they exist
rm -ri ~/.tmux.conf
rm -ri ~/.zsh-custom