From 2422b1e2f261fcdc3f7577dbaca5cf1d081f14ca Mon Sep 17 00:00:00 2001 From: Johannes Löthberg Date: Mon, 27 Nov 2017 01:51:59 +0100 Subject: Fix xmodmap MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Johannes Löthberg --- X11/Xmodmap | 10 +++++++++- X11/xinitrc | 2 +- X11/xorg.conf.d/90-keyboard.conf | 2 +- 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 -- cgit v1.2.3-54-g00ecf