aboutsummaryrefslogtreecommitdiff
path: root/executable_dot_xinitrc.tmpl
blob: 6b2ad2def754ada550a01e230d6877e6a0d69465 (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
46
47
48
49
50
51
52
53
54
55
56
57
58
#!/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
        for f in $XDG_CONFIG_HOME/sh/*; do . $f; done
        urxvtd -q -f -o &
        exec cwm
        ;;

    OpenBSD)
        for f in $XDG_CONFIG_HOME/sh/*; do . $f; done
        [ -d /usr/local/share/fonts/spleen ] && xset +fp /usr/local/share/fonts/spleen/
        redshift &
        ${HOME}/bin/icd
        # Only needed if you have Kinesis in Windows mode
        # xmodmap -e 'remove mod4 = Alt_R'
        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