]> git.friedersdorff.com Git - max/saltfiles.git/blobdiff - states/i3/files/xinitrc.jinja
Add xprofile and xinitrc files
[max/saltfiles.git] / states / i3 / files / xinitrc.jinja
diff --git a/states/i3/files/xinitrc.jinja b/states/i3/files/xinitrc.jinja
new file mode 100755 (executable)
index 0000000..0c30100
--- /dev/null
@@ -0,0 +1,27 @@
+#!/bin/sh
+#
+# ~/.xinitrc
+#
+# Executed by startx (run your window manager from here)
+
+
+if [ -d /etc/X11/xinit/xinitrc.d ]; then
+  for f in /etc/X11/xinit/xinitrc.d/*; do
+    [ -x "$f" ] && . "$f"
+  done
+  unset f
+fi
+
+# Source ~/.xprofile
+[ -f /etc/xprofile ] && . /etc/xprofile
+[ -f ~/.xprofile ] && . ~/.xprofile
+case $HOSTNAME in
+  barium)
+    exec i3
+    ;;
+  *)
+    exec startxfce4
+    ;;
+esac
+
+# vim: set expandtab tabstop=2 smarttab: