aboutsummaryrefslogtreecommitdiff
path: root/.config/polybar/scripts/calendar.sh
blob: 08f84e516a7e1622054afebcaee31c9ae770bd20 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/sh

# Calendar script

ShowCalendar() {
  notify-send -a "Calendar" --hint string:x-canonical-private-synchronous:calendar "      Calendar" "$(cal | sed "s/\<$(date +%d | sed 's/^0*//')\>/<big><b>$(date +%d | sed 's/^0*//')<\/b><\/big>/")"
}

EditCalendar() {
  echo 
}

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