aboutsummaryrefslogtreecommitdiffstats
path: root/X11/xinitrc
diff options
context:
space:
mode:
Diffstat (limited to 'X11/xinitrc')
-rwxr-xr-xX11/xinitrc6
1 files changed, 5 insertions, 1 deletions
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