diff --git a/scripts/.local/bin/clock b/scripts/.local/bin/clock index 99045e7..21cf525 100755 --- a/scripts/.local/bin/clock +++ b/scripts/.local/bin/clock @@ -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 ' ')\>/&<\/span><\/b>/")" && notify-send "Appointments" "$(calcurse -d3)" ;; 2) setsid -f "$TERMINAL" -e calcurse ;; @@ -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')]"