aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2017-08-17 10:26:53 +0200
committerJohannes Löthberg <johannes@kyriasis.com>2017-08-17 10:26:53 +0200
commit0db1ed62f94f89bde36767417140bce801e6881f (patch)
tree88d4c0174b5718e72022ab16324a10f4f225792c
parentc9bad73634d33d1356c62c65cebea34af19b77f9 (diff)
downloaddotfiles-0db1ed62f94f89bde36767417140bce801e6881f.tar.xz
Add Xmodmap
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
-rw-r--r--Makefile1
-rw-r--r--X11/Xmodmap1
-rw-r--r--X11/xinitrc2
-rw-r--r--X11/xorg.conf.d/90-keyboard.conf4
4 files changed, 6 insertions, 2 deletions
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