aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Kavanagh <rak@rak.ac>2021-12-21 15:44:31 -0500
committerRyan Kavanagh <rak@rak.ac>2021-12-22 21:18:39 -0500
commitda685c6854042b6dc15d5fcb8f28d6a3c546c434 (patch)
tree6652eb411189349c5b2f9084e8efee3ed6437a02
parentsystemd-resolved (diff)
cleanup .xinitrc
-rw-r--r--executable_dot_xinitrc.tmpl48
1 files changed, 28 insertions, 20 deletions
diff --git a/executable_dot_xinitrc.tmpl b/executable_dot_xinitrc.tmpl
index 2278245..580eb8a 100644
--- a/executable_dot_xinitrc.tmpl
+++ b/executable_dot_xinitrc.tmpl
@@ -1,45 +1,53 @@
#!/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)
- cd ${HOME}
- xrdb -merge ~/.Xresources
- exec icewm-session
+ exec cwm
;;
+
OpenBSD)
export LANG="{{ .locale }}"
export LC_time="en_GB.UTF-8"
export LC_COLLATE=C
- if test -f ~/.Xresources; then
- xrdb -merge ~/.Xresources
- fi
redshift &
${HOME}/bin/icd
urxvtd -q -f -o &
- xset dpms 180 300 600
exec cwm
;;
- *)
- if test -f ~/.Xresources; then
- xrdb -merge -I$HOME ~/.Xresources
- fi
- redshift &
+
+ Linux)
${HOME}/bin/icd
- # xcompmgr &
+ ${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 &
- ${HOME}/.screenlayout/{{ .chezmoi.hostname }}-home.sh
- if [ "false" = "True" ]; then
- sh bin/startaudio &
- fi
- ${HOME}/bin/mice.sh
- xset dpms 180 300 600
- exec /usr/bin/xmonad
+ exec xmonad
;;
esac