neodotfiles/user/.config/suckless/dwmblocks/scripts/clock

20 lines
405 B
Text
Raw Normal View History

#!/bin/bash
2022-07-01 06:06:16 +00:00
clock=$(date '+%I')
case "$clock" in
"00") icon="🕛" ;;
"01") icon="🕐" ;;
"02") icon="🕑" ;;
"03") icon="🕒" ;;
"04") icon="🕓" ;;
"05") icon="🕔" ;;
"06") icon="🕕" ;;
"07") icon="🕖" ;;
"08") icon="🕗" ;;
"09") icon="🕘" ;;
"10") icon="🕙" ;;
"11") icon="🕚" ;;
"12") icon="🕛" ;;
esac
2022-08-17 12:46:48 +00:00
date=$(date "+%Y %b %d (%a) - $icon %I:%M%p")
echo " 📅 $date"