diff options
Diffstat (limited to '')
-rw-r--r-- | executable_dot_xinitrc.tmpl | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/executable_dot_xinitrc.tmpl b/executable_dot_xinitrc.tmpl new file mode 100644 index 0000000..2889df0 --- /dev/null +++ b/executable_dot_xinitrc.tmpl @@ -0,0 +1,60 @@ +#!/bin/sh + +# Make sure that everything started by our window manager +# happens from ${HOME} +cd ${HOME} + +# Load our resources +if test -f ~/.Xresources; then + # -I specifies the path to look for + # #include references. + xrdb -merge -I$HOME ~/.Xresources +fi + +# Set our background to black +xsetroot -solid black + +# xset dpms standby suspend off +xset dpms 180 210 240 + +case `uname` in + Darwin) + # Don't forget to create a symlink from + # ~/.xinitrc.d/xinitrc.sh -> ~/.xinitrc + export LANG="{{ .locale }}" + export LC_TIME="en_GB.UTF-8" + export LC_COLLATE=C + urxvtd -q -f -o & + exec cwm + ;; + + OpenBSD) + export LANG="{{ .locale }}" + export LC_TIME="en_GB.UTF-8" + export LC_COLLATE=C + [ -d /usr/local/share/fonts/spleen ] && xset +fp /usr/local/share/fonts/spleen/ + redshift & + ${HOME}/bin/icd + xidle & + exec xmonad + ;; + + Linux) + ${HOME}/bin/icd + ${HOME}/bin/mice.sh + + redshift & + ${HOME}/.screenlayout/{{ .chezmoi.hostname }}-home.sh + trayer --tint black --edge top --SetDockType true --SetPartialStrut true \ + --expand true --width 10 --transparent true --height 12 --align right & + ${HOME}/.dzen/battery.sh & + + sh ${HOME}/bin/startaudio & + pavucontrol & + + urxvtd -q -f -o & + urxvtc & + + exec xmonad + ;; +esac |