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