aboutsummaryrefslogtreecommitdiffstats
path: root/X11
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2017-12-19 12:43:59 +0100
committerJohannes Löthberg <johannes@kyriasis.com>2017-12-19 12:43:59 +0100
commitf620b2a2f71cc3df7a714c0a829615df82b1a1cd (patch)
tree8034e634c2a8130ab64d6286a8c2967059a46449 /X11
parent0430bfc3144b2219bf53306816c5331e7c96c9db (diff)
downloaddotfiles-f620b2a2f71cc3df7a714c0a829615df82b1a1cd.tar.xz
Unbreak shift+space on lithium
For some reason the default space keycode on the x270 with a Swedish keyboard at least, includes a bunch of more crap, but doesn't support shift+space. Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
Diffstat (limited to 'X11')
-rw-r--r--X11/Xmodmap-lithium3
-rwxr-xr-xX11/xinitrc6
2 files changed, 8 insertions, 1 deletions
diff --git a/X11/Xmodmap-lithium b/X11/Xmodmap-lithium
new file mode 100644
index 0000000..0f693cf
--- /dev/null
+++ b/X11/Xmodmap-lithium
@@ -0,0 +1,3 @@
+! Unbreak space+space
+! Original: keycode 65 = space NoSymbol space NoSymbol NoSymbol NoSymbol NoSymbol NoSymbol space space thinspace nobreakspace
+keycode 65 = space NoSymbol space NoSymbol space NoSymbol NoSymbol NoSymbol space space thinspace nobreakspace
diff --git a/X11/xinitrc b/X11/xinitrc
index e184715..3c2c54d 100755
--- a/X11/xinitrc
+++ b/X11/xinitrc
@@ -7,6 +7,10 @@
systemctl --user import-environment DISPLAY XAUTHORITY SSH_AGENT_PID SSH_AUTH_SOCK
systemctl --user restart dumpwatch
-xmodmap "$XDG_CONFIG_HOME"/X11/Xmodmap
+XMODMAP="$XDG_CONFIG_HOME"/X11/Xmodmap
+xmodmap "$XMODMAP"
+if [[ -f "$XMODMAP"-"$(hostname -s)" ]]; then
+ xmodmap "$XMODMAP"-"$(hostname -s)"
+fi
exec i3 -c "$XDG_CONFIG_HOME"/i3/config