aboutsummaryrefslogtreecommitdiff
path: root/system/lxdm/xinitrc
diff options
context:
space:
mode:
Diffstat (limited to 'system/lxdm/xinitrc')
-rw-r--r--system/lxdm/xinitrc27
1 files changed, 27 insertions, 0 deletions
diff --git a/system/lxdm/xinitrc b/system/lxdm/xinitrc
new file mode 100644
index 000000000000..d861e47f5684
--- /dev/null
+++ b/system/lxdm/xinitrc
@@ -0,0 +1,27 @@
+#!/bin/sh
+# This file is referenced from /etc/lxdm/Xsession
+# This is for system-specific customization if desired
+
+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
+