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