diff options
author | Guangxiong Lin <[email protected]> | 2021-11-24 20:08:08 +0800 |
---|---|---|
committer | Guangxiong Lin <[email protected]> | 2021-11-24 20:08:08 +0800 |
commit | 97bc6d4b8601721b9e01446ba024a05374f09b4a (patch) | |
tree | a11456e4850cf9fbc6dc4edef732ef13eaaceec2 | |
parent | 0b985e5982c2d3e2bd838a0c2856ee798c38d025 (diff) | |
download | dotfiles-97bc6d4b8601721b9e01446ba024a05374f09b4a.tar.gz dotfiles-97bc6d4b8601721b9e01446ba024a05374f09b4a.tar.bz2 dotfiles-97bc6d4b8601721b9e01446ba024a05374f09b4a.zip |
Update dwm status time format
-rwxr-xr-x | bin/startdwm | 9 |
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 & |