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