aboutsummaryrefslogtreecommitdiff
path: root/executable_dot_xinitrc.tmpl
blob: 227824553c6771c125b198f9a50bce6296ced942 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/bin/sh


case `uname` in
    Darwin)
        cd ${HOME}
        xrdb -merge ~/.Xresources
        exec icewm-session
        ;;
    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 &
        ${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/{{ .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
        ;;
esac