X-Git-Url: https://git.friedersdorff.com/?a=blobdiff_plain;ds=sidebyside;f=states%2Fi3%2Ffiles%2Fxinitrc.jinja;fp=states%2Fi3%2Ffiles%2Fxinitrc.jinja;h=0c30100c262146eb8f795522cdd5da1af3bb60d0;hb=30e01339f016d732c345a0a1629ee4d42ef99685;hp=0000000000000000000000000000000000000000;hpb=0fc89d376c8a287b631af5cb5179fa9abb130cd7;p=max%2Fsaltfiles.git diff --git a/states/i3/files/xinitrc.jinja b/states/i3/files/xinitrc.jinja new file mode 100755 index 0000000..0c30100 --- /dev/null +++ b/states/i3/files/xinitrc.jinja @@ -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: