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