aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/startdwm9
1 files changed, 8 insertions, 1 deletions
diff --git a/bin/startdwm b/bin/startdwm
index c806446..981669f 100755
--- a/bin/startdwm
+++ b/bin/startdwm
@@ -1,5 +1,12 @@
+#!/usr/bin/env sh
+
+status_info () {
+ printf "%s" \
+ "$(date '+%a %d %b %H:%M')"
+}
+
while true; do
- xsetroot -name "$( date +"%F %R" )"
+ xsetroot -name "$(status_info)"
sleep 10s
done &