Skip to content

Commit

Permalink
Do not render clock icon, show time between []
Browse files Browse the repository at this point in the history
  • Loading branch information
saloniamatteo committed Dec 10, 2024
1 parent f0cebe8 commit 2923e78
Showing 1 changed file with 1 addition and 19 deletions.
20 changes: 1 addition & 19 deletions scripts/.local/bin/clock
Original file line number Diff line number Diff line change
@@ -1,23 +1,5 @@
#!/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

case $BLOCK_BUTTON in
1) notify-send "This Month" "$(cal | sed "s/\<$(date +'%e'|tr -d ' ')\>/<b><span color='red'>&<\/span><\/b>/")" && notify-send "Appointments" "$(calcurse -d3)" ;;
2) setsid -f "$TERMINAL" -e calcurse ;;
Expand All @@ -26,4 +8,4 @@ case $BLOCK_BUTTON in
6) setsid -f "$TERMINAL" -e "$EDITOR" "$0" ;;
esac

echo "📅 $(date '+%a %d/%m/%Y') $icon $(date '+%R')"
echo "📅 $(date '+%a %d/%m/%Y') [$(date '+%R')]"

0 comments on commit 2923e78

Please sign in to comment.