Browse Source

date also ok

master
parent
commit
a26841ab9e
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      bar-functions/dwm_date.sh

+ 2
- 2
bar-functions/dwm_date.sh View File

@ -7,10 +7,10 @@
# Date is formatted like like this: "[Mon 01-01-00 00:00:00]" # Date is formatted like like this: "[Mon 01-01-00 00:00:00]"
dwm_date () { dwm_date () {
printf "%s" "$SEP1" printf "%s" "$SEP1"
if [ "$IDENTIFIER" = "unicode" ]; then
if [ "$IDENTIFIER" = "" ]; then
printf "📆 %s" "$(date "+%a %d-%m-%y %T")" printf "📆 %s" "$(date "+%a %d-%m-%y %T")"
else else
printf "DAT %s" "$(date "+%a %d-%m-%y %T")"
printf " %s" "$(date "+%a %d/%m/%y %R")"
fi fi
printf "%s\n" "$SEP2" printf "%s\n" "$SEP2"
} }


Loading…
Cancel
Save