aboutsummaryrefslogblamecommitdiff
path: root/.config/eww/scripts/calendar.sh
blob: 82ddd92c5bf2fa8ea69f6232932a6b7055e8ea0f (plain) (tree)
1
2
3
4
5
6
7
8
9
         


                 
                


                                                                                                                                                                                             
                
















                                               
#!/bin/sh

# Calendar script

ShowCalendar() {
	fyi -a "Calendar" --hint string:x-canonical-private-synchronous:calendar "     📅 Calendar" "$(cal | sed "s/\<$(date +%-d)\>/<span color='#fabd2f'><b>$(date +%-d)<\/b><\/span>/")"
}

EditCalendar() {
  echo 
}

case "$1" in
        show)
            ShowCalendar
            ;;
         
        edit)
            EditCalendar
            ;;
         
        *)
            echo $"Usage: ${0##*/} {show|edit}"
            exit 1
 
esac