summaryrefslogtreecommitdiff
path: root/dwm_status
blob: 4b551acc89b1df7b37e24b8dcee8481ddc313628 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

n=0
while true; do
    if [ "$(( $n % 2 ))" = "0" ]; then
				bat="$(battery)"
    fi;
    time="$(date +%d/%Hh%M)"
    temp="$(( $(cat /sys/class/thermal/thermal_zone0/temp) / 1000))C"
    xsetroot -name "$(cat ~/.autolock_status)$temp | $bat | $time"
    n=$(( $n + 1 ))
    sleep 30s
done