aboutsummaryrefslogtreecommitdiff
path: root/.xinitrc
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <msabate@suse.com>2019-08-22 18:30:24 +0200
committerMiquel Sabaté Solà <msabate@suse.com>2019-08-22 18:30:24 +0200
commit4ead9be4468d8d58c027bf6e6616e3b4d6e727eb (patch)
tree18ab19fd5213c9d302b165eafa46a6f1f8902e75 /.xinitrc
parent04f4a7df197ce327f36b666869a1ca2f09934e58 (diff)
downloaddotfiles-4ead9be4468d8d58c027bf6e6616e3b4d6e727eb.tar.gz
dotfiles-4ead9be4468d8d58c027bf6e6616e3b4d6e727eb.zip
Complete re-structuring so it's easier to install
Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>
Diffstat (limited to '.xinitrc')
-rw-r--r--.xinitrc60
1 files changed, 60 insertions, 0 deletions
diff --git a/.xinitrc b/.xinitrc
new file mode 100644
index 0000000..0f8722f
--- /dev/null
+++ b/.xinitrc
@@ -0,0 +1,60 @@
+#!/bin/bash
+#
+# Sample .xinitrc for SuSE Linux
+# This script is called from 'startx' when you start an X session
+#
+
+#
+# In case everything goes wrong, we at least fall back to a plain xterm
+#
+failsafe="xterm -ls -T Failsafe -geometry 80x24-0-0"
+trap "exec $failsafe" EXIT SIGHUP SIGINT SIGPIPE SIGTERM SIGIO
+
+#
+# Some bash (1 and 2) settings to avoid trouble on a
+# failed program call.
+#
+set +e > /dev/null 2>&1
+set +u > /dev/null 2>&1
+set +o posix > /dev/null 2>&1
+if type shopt > /dev/null 2>&1 ; then
+ shopt -s execfail
+else
+ no_exit_on_failed_exec=1
+fi
+
+#
+# Source common code shared between the
+# X session and X init scripts
+#
+. /etc/X11/xinit/xinitrc.common
+
+#
+# Special for twm
+#
+case "$WINDOWMANAGER" in
+ *twm) xsetroot -solid darkslateblue
+esac
+
+#
+# Uncomment next lines to activate asking for ssh passphrase
+#
+# if test -S "$SSH_AUTH_SOCK" -a -x "$SSH_ASKPASS"; then
+# ssh-add < /dev/null
+# fi
+
+#
+# Add your own lines here...
+#
+
+# day planer deamon
+# pland &
+
+#
+# finally start the window manager
+#
+unset WINDOW_MANAGER STARTUP
+exec $WINDOWMANAGER ${1+"$@"}
+
+# call failsafe
+exit 0