summaryrefslogtreecommitdiff
path: root/desktop/xmonad/xinitrc.xmonad
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/xmonad/xinitrc.xmonad')
-rw-r--r--desktop/xmonad/xinitrc.xmonad15
1 files changed, 15 insertions, 0 deletions
diff --git a/desktop/xmonad/xinitrc.xmonad b/desktop/xmonad/xinitrc.xmonad
new file mode 100644
index 0000000000..2554d0d574
--- /dev/null
+++ b/desktop/xmonad/xinitrc.xmonad
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+userresources=$HOME/.Xresources
+usermodmap=$HOME/.Xmodmap
+sysresources=/usr/lib/X11/xinit/.Xresources
+sysmodmap=/usr/lib/X11/xinit/.Xmodmap
+
+# Merge in defaults and keymaps
+[ -f $sysresources ] && /usr/bin/xrdb -merge $sysresources
+[ -f $sysmodmap ] && /usr/bin/xmodmap $sysmodmap
+[ -f $userresources ] && /usr/bin/xrdb -merge $userresources
+[ -f $usermodmap ] && /usr/bin/xmodmap $usermodmap
+
+exec /usr/bin/xmonad
+