commit 82f338e03722f5092a070794efc49d9fe6983916 parent 83147dea3ab038880c95cd8bec1b3151f747ae26 Author: Chris Bracken <chris@bracken.jp> Date: Thu, 3 Mar 2016 11:34:46 -0800 Move X caps-lock remapping to .xinitrc Diffstat:
M | .profile | | | 6 | ------ |
M | .xinitrc | | | 5 | +++++ |
2 files changed, 5 insertions(+), 6 deletions(-)
diff --git a/.profile b/.profile @@ -19,9 +19,3 @@ if [ -n "$BASH_VERSION" ]; then . "$HOME/.bashrc" fi fi - -# Remap caps lock to ctrl -if [[ "$(uname)" != "Darwin" && -n "$DISPLAY" && -x "$(which setxkbmap)" ]] -then - setxkbmap -option ctrl:nocaps -fi diff --git a/.xinitrc b/.xinitrc @@ -1,2 +1,7 @@ +# Remap caps lock to ctrl +if [[ -x "$(which setxkbmap)" ]]; then + setxkbmap -option ctrl:nocaps +fi + xrdb -load $HOME/.Xresources /usr/local/bin/i3