summaryrefslogtreecommitdiff
path: root/desktop/razorqt/xinit
diff options
context:
space:
mode:
authorRobby Workman <rw@rlworkman.net>2011-12-20 09:27:24 -0200
committerRobby Workman <rworkman@slackbuilds.org>2011-12-22 00:02:52 -0600
commitc5ee6ec05fe53d5dc6fa0aff27044329f9f88f1a (patch)
treec2b9caf013a28820ce45b4e1d9701d753719afbe /desktop/razorqt/xinit
parent48b4a977160c8e3cea7a7f8e72fd4aceda433a13 (diff)
downloadslackbuilds-c5ee6ec05fe53d5dc6fa0aff27044329f9f88f1a.tar.gz
desktop/razorqt: Added (qt-based desktop environment)
Note that if anyone else out there likes this and uses it on a daily basis, I'll be more than happy to let you maintain this build script. I don't plan to actually use razorqt (I like xfce), but this looked too useful to not have available in Slackware --rworkman Signed-off-by: Niels Horn <niels.horn@slackbuilds.org>
Diffstat (limited to 'desktop/razorqt/xinit')
-rw-r--r--desktop/razorqt/xinit/xinitrc.razorqt19
1 files changed, 19 insertions, 0 deletions
diff --git a/desktop/razorqt/xinit/xinitrc.razorqt b/desktop/razorqt/xinit/xinitrc.razorqt
new file mode 100644
index 0000000000..407dca7edf
--- /dev/null
+++ b/desktop/razorqt/xinit/xinitrc.razorqt
@@ -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 ] && /usr/bin/xrdb -merge $sysresources
+[ -f $sysmodmap ] && /usr/bin/xmodmap $sysmodmap
+[ -f $userresources ] && /usr/bin/xrdb -merge $userresources
+[ -f $usermodmap ] && /usr/bin/xmodmap $usermodmap
+
+if [ -z "$XDG_SESSION_COOKIE" -a -x /usr/bin/ck-launch-session ]; then
+ ck-launch-session razor-session
+else
+ exec razor-session
+fi
+