Swap keys using xkb instead of xmodmap

Removed old swap key lines from config and added dir/script to symlink
xkb file to lc dir. Fixes issue of having to release keys when starting
terminal with xmodmap.
This commit is contained in:
2018-03-14 06:46:59 -04:00
parent 44868f49cf
commit 0bba4a0eb3
8 changed files with 120 additions and 44 deletions

View File

@@ -94,18 +94,13 @@ source ~/linux-config/aliases/zsh_aliases
# alias zshconfig="mate ~/.zshrc"
# alias ohmyzsh="mate ~/.oh-my-zsh"
if [ "$(whoami)" = "kevin" ]; then
export PATH="${PATH}:${HOME}/.local/bin/"
(cat ~/.cache/wal/sequences &)
# keyboard delay/rate
xset r rate 200 60
fi
# NZXT
if [ "$(hostname)" = "NZXT" ];
then
xmodmap -e "clear Lock"
xmodmap -e "keycode 22 = Caps_Lock"
xmodmap -e "keycode 66 = BackSpace"
# else
# xrandr --dpi 150
# pywal
export PATH="${PATH}:${HOME}/.local/bin/"
(cat ~/.cache/wal/sequences &)
# keyboard delay/rate
xset r rate 200 60
# laptop
if [ "$(hostname)" = "X1-Carbon" ];
xrandr --dpi 125
fi