aboutsummaryrefslogtreecommitdiff
path: root/desktop/ctwm/xinitrc.ctwm
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/ctwm/xinitrc.ctwm')
-rw-r--r--desktop/ctwm/xinitrc.ctwm32
1 files changed, 32 insertions, 0 deletions
diff --git a/desktop/ctwm/xinitrc.ctwm b/desktop/ctwm/xinitrc.ctwm
new file mode 100644
index 000000000000..fc1107ab3cd8
--- /dev/null
+++ b/desktop/ctwm/xinitrc.ctwm
@@ -0,0 +1,32 @@
+#!/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
+
+# Start the window manager:
+if [ -z "$DESKTOP_SESSION" -a -x /usr/bin/ck-launch-session ]; then
+ exec ck-launch-session dbus-launch --exit-with-session /usr/bin/ctwm
+else
+ exec /usr/bin/ctwm
+fi
+