aboutsummaryrefslogtreecommitdiff
path: root/X
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2015-05-23 14:07:42 +1200
committerTom Ryder <tom@sanctum.geek.nz>2015-05-23 14:07:42 +1200
commitedce3c335ba54676ac48454c230815b286156952 (patch)
tree83ddbcd11e042e4fe31faba344cc8ee69f3bb9a7 /X
parentUse \C-j for newline instead of \n (diff)
downloaddotfiles-edce3c335ba54676ac48454c230815b286156952.tar.gz
dotfiles-edce3c335ba54676ac48454c230815b286156952.zip
Use xkb not xmodmap for Caps Lock remap
Diffstat (limited to 'X')
-rw-r--r--X/xinitrc4
-rw-r--r--X/xmodmap3
2 files changed, 2 insertions, 5 deletions
diff --git a/X/xinitrc b/X/xinitrc
index 010c45ba..23ee2130 100644
--- a/X/xinitrc
+++ b/X/xinitrc
@@ -1,8 +1,8 @@
# Read X resources
xrdb "$HOME"/.Xresources
-# Apply xmodmap definitions
-xmodmap "$HOME"/.xmodmap
+# Map Caps Lock as a Ctrl key
+setxkbmap -option ctrl:nocaps
# Apply background image
feh --bg-scale -- "$HOME"/.i3/draugen.jpg
diff --git a/X/xmodmap b/X/xmodmap
deleted file mode 100644
index 848bd5ce..00000000
--- a/X/xmodmap
+++ /dev/null
@@ -1,3 +0,0 @@
-keycode 66 = Control_L
-clear Lock
-add Control = Control_L