Explorar o código

Simplify date format in dwm_status.sh

Frans Bergman %!s(int64=5) %!d(string=hai) anos
pai
achega
24a1880129
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      .scripts/dwm_status.sh

+ 1 - 1
.scripts/dwm_status.sh

@@ -5,7 +5,7 @@ while true; do
     MEM="$(free -h | awk '(NR==2){ print $3 }')"
     VOL="$(amixer get Master | awk -F'[][]' 'END{ print $4":"$2 }')"
     TEMP="$(sensors | awk '/Package/{print $4}')"
-    DATE="$(date)"
+    DATE="$(date +"%F %T")"
     xsetroot -name " $MUSIC | $VOL | $MEM | $TEMP | $DATE"
     sleep 5
 done