aboutsummaryrefslogtreecommitdiff
path: root/bin/startdwm
blob: da570ff299a8b5d76e945db7da5f8f027106b4d3 (plain)
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
#!/usr/bin/env sh

status_info () {
    printf "%s" \
        "$(date '+%a %d %b %H:%M')"
}

while true; do
    xsetroot -name "$(status_info)"
    sleep 10s
done &

picom -b
autostart

csum=""
new_csum=$(sha1sum $(which dwm))
while true; do
    if [ "$csum" != "$new_csum" ]; then
        csum=$new_csum
        dwm 2> ~/.dwm.log
    else
        exit 0
    fi
    new_csum=$(sha1sum $(which dwm))
    sleep 0.5
done