From 97bc6d4b8601721b9e01446ba024a05374f09b4a Mon Sep 17 00:00:00 2001 From: Guangxiong Lin Date: Wed, 24 Nov 2021 20:08:08 +0800 Subject: Update dwm status time format --- bin/startdwm | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'bin') 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 & -- cgit v1.2.3