aboutsummaryrefslogtreecommitdiffstats
path: root/X11
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2017-11-27 01:51:59 +0100
committerJohannes Löthberg <johannes@kyriasis.com>2017-11-27 01:52:23 +0100
commit2422b1e2f261fcdc3f7577dbaca5cf1d081f14ca (patch)
tree5f5de061996c3f988f915fc86f27a56fad76bf88 /X11
parent7ab5c59779b08bc319f24b0903019b83829a04e8 (diff)
downloaddotfiles-2422b1e2f261fcdc3f7577dbaca5cf1d081f14ca.tar.xz
Fix xmodmap
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
Diffstat (limited to 'X11')
-rw-r--r--X11/Xmodmap10
-rwxr-xr-xX11/xinitrc2
-rw-r--r--X11/xorg.conf.d/90-keyboard.conf2
3 files changed, 11 insertions, 3 deletions
diff --git a/X11/Xmodmap b/X11/Xmodmap
index 9fbfe9f..a6d6ee8 100644
--- a/X11/Xmodmap
+++ b/X11/Xmodmap
@@ -1 +1,9 @@
-keysym Control_L Control = Escape
+clear Lock
+clear Control
+
+keycode 9 = Caps_Lock NoSymbol Caps_Lock NoSymbol Caps_Lock
+keycode 66 = Control_L NoSymbol Control_L NoSymbol Control_L
+keycode 37 = Escape NoSymbol Escape NoSymbol Escape
+
+add Lock = Caps_Lock
+add Control = Control_L
diff --git a/X11/xinitrc b/X11/xinitrc
index bd8b4d3..e184715 100755
--- a/X11/xinitrc
+++ b/X11/xinitrc
@@ -7,6 +7,6 @@
systemctl --user import-environment DISPLAY XAUTHORITY SSH_AGENT_PID SSH_AUTH_SOCK
systemctl --user restart dumpwatch
-[[ -f "$XDG_CONFIG_HOME"/X11/Xmodmap ]] && xmodmap "$XDG_CONFIG_HOME"/X11/Xmodmap -v
+xmodmap "$XDG_CONFIG_HOME"/X11/Xmodmap
exec i3 -c "$XDG_CONFIG_HOME"/i3/config
diff --git a/X11/xorg.conf.d/90-keyboard.conf b/X11/xorg.conf.d/90-keyboard.conf
index 7adfad8..41fe37d 100644
--- a/X11/xorg.conf.d/90-keyboard.conf
+++ b/X11/xorg.conf.d/90-keyboard.conf
@@ -2,5 +2,5 @@ Section "InputClass"
Identifier "Keyboard Defaults"
MatchIsKeyboard "on"
Option "XkbLayout" "dvorak,us,il"
- Option "XkbOptions" "caps:ctrl_modifier,compose:ralt,grp:rctrl_toggle"
+ Option "XkbOptions" "compose:prsc,grp:rctrl_toggle"
EndSection