aboutsummaryrefslogtreecommitdiff
path: root/bin/startdwm
diff options
context:
space:
mode:
Diffstat (limited to 'bin/startdwm')
-rwxr-xr-xbin/startdwm17
1 files changed, 17 insertions, 0 deletions
diff --git a/bin/startdwm b/bin/startdwm
new file mode 100755
index 0000000..bafb57e
--- /dev/null
+++ b/bin/startdwm
@@ -0,0 +1,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