summaryrefslogtreecommitdiff
path: root/desktop/xmonad/xinitrc.xmonad
diff options
context:
space:
mode:
authorMikko Varri <vmj@linuxbox.fi>2010-05-12 23:28:31 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-12 23:28:31 +0200
commit8e7bd5508cbd8a27c3ac76c97529f769b806f72c (patch)
tree567aa69976911430807d80c56118eecd16f2cfee /desktop/xmonad/xinitrc.xmonad
parente11db00f74d49caf54f6ffb5d0dfc654cda6a56f (diff)
downloadslackbuilds-8e7bd5508cbd8a27c3ac76c97529f769b806f72c.tar.gz
desktop/xmonad: Added to 12.2 repository
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
+