1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
while true; do xsetroot -name "$( date +"%F %R" )" sleep 1m done & 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