aboutsummaryrefslogtreecommitdiff
path: root/desktop/echinus/xinitrc.echinus
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2021-09-07 17:02:34 -0400
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2021-10-13 00:52:04 +0700
commit7fea0c6cca0ae2cca67f8506dcc672659958d2a1 (patch)
tree7713fcefa15788e93b92ead25863b0a0161fb23f /desktop/echinus/xinitrc.echinus
parent53700bd4f50f097852abd010c5201d482bbb1a8b (diff)
desktop/echinus: Add missing xinitrc.
Signed-off-by: B. Watson <yalhcru@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'desktop/echinus/xinitrc.echinus')
-rw-r--r--desktop/echinus/xinitrc.echinus30
1 files changed, 30 insertions, 0 deletions
diff --git a/desktop/echinus/xinitrc.echinus b/desktop/echinus/xinitrc.echinus
new file mode 100644
index 0000000000000..7827671dbbfd9
--- /dev/null
+++ b/desktop/echinus/xinitrc.echinus
@@ -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 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/echinus
+else
+ exec dbus-launch --exit-with-session /usr/bin/echinus
+fi