From 8cc5b8020492d7c59f58df502918641ef0d15616 Mon Sep 17 00:00:00 2001 From: Daniel Flanagan Date: Fri, 14 Apr 2017 07:49:01 -0500 Subject: [PATCH] Map caps lock to escape --- de/bspwm_config | 2 +- de/xinitrc | 4 ++++ de/xmodmap | 2 ++ setup | 1 + 4 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 de/xmodmap diff --git a/de/bspwm_config b/de/bspwm_config index 10697ad..4b77123 100755 --- a/de/bspwm_config +++ b/de/bspwm_config @@ -40,7 +40,7 @@ for mon in ${BSPWM_MONITORS}; do screens= for j in $(seq $i $max); do ind=${DESKTOPS[$((j - 1))]} - screens="${screens}a " + screens="${screens}${ind} " done bspc monitor "$mon" -d $screens i=$((max + 1)) diff --git a/de/xinitrc b/de/xinitrc index 2e6e9f6..489ff5d 100644 --- a/de/xinitrc +++ b/de/xinitrc @@ -16,6 +16,10 @@ if [ -f "$HOME/.env_xinitrc" ]; then source "$HOME/.env_xinitrc" fi +if [ -f "$HOME/.xmodmap" ]; then + xmodmap "$HOME/.xmodmap" +fi + pulseaudio --start & # fire up wm diff --git a/de/xmodmap b/de/xmodmap new file mode 100644 index 0000000..0a06bb5 --- /dev/null +++ b/de/xmodmap @@ -0,0 +1,2 @@ +remove Lock = Caps_Lock +keysym Caps_Lock = Escape diff --git a/setup b/setup index f46230e..d8dadeb 100755 --- a/setup +++ b/setup @@ -36,6 +36,7 @@ links=( "$dfp/de/xresources" "$HOME/.Xresources" "$dfp/de/xinitrc" "$HOME/.xinitrc" "$dfp/de/xprofile" "$HOME/.xprofile" + "$dfp/de/xmodmap" "$HOME/.xmodmap" "$dfp/scripts/colors/xresources" "$HOME/.Xresources.colors" # shell files