summaryrefslogtreecommitdiff
path: root/system/plan9port/xinitrc.rio
diff options
context:
space:
mode:
authorRuben Schuller <ruben@orgizm.net>2012-12-10 14:50:58 +0100
committerdsomero <xgizzmo@slackbuilds.org>2012-12-11 16:23:05 -0500
commite4cac820a2c96646d82d8c45f5f2802115b47372 (patch)
treee07fbcbe81dc2ab971ed9403a1c6188617cb3272 /system/plan9port/xinitrc.rio
parenta842d4dcdb4d59e0f72892b0cde77df70d5f98e8 (diff)
downloadslackbuilds-e4cac820a2c96646d82d8c45f5f2802115b47372.tar.gz
system/plan9port: Added (Plan 9 from User Space).
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'system/plan9port/xinitrc.rio')
-rw-r--r--system/plan9port/xinitrc.rio19
1 files changed, 19 insertions, 0 deletions
diff --git a/system/plan9port/xinitrc.rio b/system/plan9port/xinitrc.rio
new file mode 100644
index 0000000000..e4dfba95a3
--- /dev/null
+++ b/system/plan9port/xinitrc.rio
@@ -0,0 +1,19 @@
+#!/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
+
+# Start the window manager:
+if [ -z "$DESKTOP_SESSION" -a -x /usr/bin/ck-launch-session ]; then
+ exec ck-launch-session rio
+else
+ exec rio
+fi