22 lines
401 B
Bash
Executable file
22 lines
401 B
Bash
Executable file
#!/bin/sh
|
|
|
|
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
|
|
|
|
date=$(date "+%Y %b %d (%a) | $icon %I:%M%p")
|
|
echo " $date"
|