Add desktop related config files from grml-etc.
[grml-desktop.git] / etc / skel / .xinitrc
diff --git a/etc/skel/.xinitrc b/etc/skel/.xinitrc
new file mode 100755 (executable)
index 0000000..1e413ff
--- /dev/null
@@ -0,0 +1,25 @@
+#!/bin/sh
+# Filename:      ~/.xinitrc
+# Purpose:       main configuration file of X startup
+# Authors:       grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
+# Bug-Reports:   see http://grml.org/bugs/
+# License:       This file is licensed under the GPL v2 or any later version.
+################################################################################
+
+# configuration: by default all scripts from ~/.xinitrc.d are executed,
+# but it's possible to configure this through a configuration file
+if [ -r "$HOME/.config/${distri}/xinitrc" ] ; then
+  . "$HOME/.config/${distri}/xinitrc"
+elif [ -r "$HOME/.config/grml/xinitrc" ] ; then
+  . "$HOME/.config/grml/xinitrc"
+fi
+
+# execute all existing scripts
+for f in ~/.xinitrc.d/* ; do
+  "$f"
+done
+
+# default entry, use e.g. 'grml-x windowmanager' for changing or just adjust manually
+exec /usr/bin/x-window-manager
+
+## END OF FILE #################################################################