aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorGuangxiong Lin <[email protected]>2021-11-24 20:08:08 +0800
committerGuangxiong Lin <[email protected]>2021-11-24 20:08:08 +0800
commit97bc6d4b8601721b9e01446ba024a05374f09b4a (patch)
treea11456e4850cf9fbc6dc4edef732ef13eaaceec2 /bin
parent0b985e5982c2d3e2bd838a0c2856ee798c38d025 (diff)
downloaddotfiles-97bc6d4b8601721b9e01446ba024a05374f09b4a.tar.gz
dotfiles-97bc6d4b8601721b9e01446ba024a05374f09b4a.tar.bz2
dotfiles-97bc6d4b8601721b9e01446ba024a05374f09b4a.zip
Update dwm status time format
Diffstat (limited to 'bin')
-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 &