1
0
Fork 0
dotfiles/dot_config/polybar/scripts/executable_polybar_custom_time.sh

19 lines
328 B
Bash
Raw Normal View History

#!/bin/bash
#
# Custom clock/calendar for polybar.
#
# Author: machaerus
# https://gitlab.com/machaerus
source ~/.config/polybar/scripts/colors.sh
custom_time() {
WEEKDAY=$(date +%A)
TIME=$(date +%H:%M:%S)
DATE=$(date +"%e %b %Y")
echo "$light0_soft $WEEKDAY $faded_yellow $TIME $light0_soft $DATE $RESET"
}
custom_time