diff options
author | Ryan Kavanagh <rak@rak.ac> | 2020-12-27 10:35:54 -0500 |
---|---|---|
committer | Ryan Kavanagh <rak@rak.ac> | 2020-12-27 10:35:54 -0500 |
commit | 35270de693d409953b56e4afafd5e47ea31f71c1 (patch) | |
tree | b050eee790704ce06cceae7c9543500dd101bd90 /.xinitrc | |
parent | added Zathura for darwin (diff) |
Update xinitrc to check if on linux or darwin
Diffstat (limited to '')
-rwxr-xr-x | .xinitrc | 47 |
1 files changed, 27 insertions, 20 deletions
@@ -1,22 +1,29 @@ #!/bin/sh -if test -f ~/.Xresources; then - xrdb -merge -I$HOME ~/.Xresources -fi -redshift & -${HOME}/bin/icd -# xcompmgr & -trayer --tint black --edge top --SetDockType true --SetPartialStrut true \ - --expand true --width 10 --transparent true --height 12 --align right & -${HOME}/.dzen/battery.sh & -pavucontrol & -urxvtd -q -f -o & -urxvtc & -${HOME}/.screenlayout/SCREENLAYOUT.sh && nitrogen --restore -if [ "PULSE" = "True" ]; then - sh bin/startaudio & -fi -${HOME}/bin/mice.sh -xset dpms 180 300 600 -pgrep -u $(whoami) parcimonie >/dev/null || parcimonie >/dev/null & -exec /usr/bin/xmonad +case `uname` in + Darwin) + . /opt/local/etc/X11/xinit/xinitrc + ;; + *) + if test -f ~/.Xresources; then + xrdb -merge -I$HOME ~/.Xresources + fi + redshift & + ${HOME}/bin/icd + # xcompmgr & + trayer --tint black --edge top --SetDockType true --SetPartialStrut true \ + --expand true --width 10 --transparent true --height 12 --align right & + ${HOME}/.dzen/battery.sh & + pavucontrol & + urxvtd -q -f -o & + urxvtc & + ${HOME}/.screenlayout/zeta-home.sh && nitrogen --restore + if [ "false" = "True" ]; then + sh bin/startaudio & + fi + ${HOME}/bin/mice.sh + xset dpms 180 300 600 + + exec /usr/bin/xmonad + ;; +esac |