#!/bin/sh # Displays the current time in HH:MM:SS (AM|PM) notify() { notify-send -a Calendar -i office-calendar-symbolic \ -h string:x-canonical-private-synchronous:"$1" "$@" } case $BLOCK_BUTTON in 1) notify "This Month" "$(cal --color=always | sed "s|..7m||;s|..0m||")" appointments="$(calcurse -d1 \ --format-apt "• %S - %E\n %m\n" \ --format-event "• %m\n")" [ -n "$appointments" ] && notify "Appointments" "$appointments" ;; 2) setsid -f "$TERMINAL" -e calcurse ;; 6) "$TERMINAL" -e "$EDITOR" "$0" ;; esac . sb-theme display " $(date '+%I:%M:%S %p')"