From 0db1ed62f94f89bde36767417140bce801e6881f Mon Sep 17 00:00:00 2001 From: Johannes Löthberg Date: Thu, 17 Aug 2017 10:26:53 +0200 Subject: Add Xmodmap MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Johannes Löthberg --- Makefile | 1 + X11/Xmodmap | 1 + X11/xinitrc | 2 ++ X11/xorg.conf.d/90-keyboard.conf | 4 ++-- 4 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 X11/Xmodmap diff --git a/Makefile b/Makefile index 9b4fd8b..9ac81a9 100644 --- a/Makefile +++ b/Makefile @@ -6,6 +6,7 @@ install: -mkdir -p "$(HOME)/.local/share/nvim/backup" -ln -sf "$(PWD)/mailcap" "$(HOME)/.mailcap" -ln -sf "$(PWD)/msmtprc" "$(HOME)/.msmtprc" + -ln -sf "$(PWD)/X11/Xmodmap" "$(HOME)/.Xmodmap" ~/misc/grawity/: -mkdir -p ~/misc/grawity diff --git a/X11/Xmodmap b/X11/Xmodmap new file mode 100644 index 0000000..9fbfe9f --- /dev/null +++ b/X11/Xmodmap @@ -0,0 +1 @@ +keysym Control_L Control = Escape diff --git a/X11/xinitrc b/X11/xinitrc index a99d2e0..ad9fe2c 100644 --- a/X11/xinitrc +++ b/X11/xinitrc @@ -7,4 +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 + exec i3 -c /home/kyrias/.config/i3/config diff --git a/X11/xorg.conf.d/90-keyboard.conf b/X11/xorg.conf.d/90-keyboard.conf index c7c9b05..7d2aab0 100644 --- a/X11/xorg.conf.d/90-keyboard.conf +++ b/X11/xorg.conf.d/90-keyboard.conf @@ -1,6 +1,6 @@ Section "InputClass" Identifier "Keyboard Defaults" MatchIsKeyboard "on" - Option "XkbLayout" "dvorak,us" - Option "XkbOptions" "caps:escape,compose:ralt,grp_led:caps,grp:menu_toggle" + Option "XkbLayout" "dvorak" + Option "XkbOptions" "caps:ctrl_modifier,compose:ralt" EndSection -- cgit v1.2.3-70-g09d2