dotfiles/.config/mpanel/modules/21time

23 lines
311 B
Bash
Executable File

#!/bin/sh
. ../mpanel.subr
align="center"
background="$(color 7)"
foreground="$(color 3)"
clickFunc="toggle flag"
waitFunc="sleep 1"
flag="true"
print_time() {
if [ "$flag" = "true" ]; then
echo " $(date "+%b. %d, %H:%M") "
else
echo " $(date "+%H:%M") "
fi
}
loop print_time