My dotfiles
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
828 B

  1. #!/bin/sh
  2. clock=$(date '+%I')
  3. case "$clock" in
  4. "00") icon="🕛" ;;
  5. "01") icon="🕐" ;;
  6. "02") icon="🕑" ;;
  7. "03") icon="🕒" ;;
  8. "04") icon="🕓" ;;
  9. "05") icon="🕔" ;;
  10. "06") icon="🕕" ;;
  11. "07") icon="🕖" ;;
  12. "08") icon="🕗" ;;
  13. "09") icon="🕘" ;;
  14. "10") icon="🕙" ;;
  15. "11") icon="🕚" ;;
  16. "12") icon="🕛" ;;
  17. esac
  18. case $BUTTON in
  19. 1) notify-send "This Month" "$(cal --color=always | sed "s/..7m/<b><span color=\"red\">/;s/..27m/<\/span><\/b>/")" && notify-send "Appointments" "$(calcurse -d3)" ;;
  20. 2) setsid -f st -e calcurse ;;
  21. 3) notify-send "📅 Time/date module" "\- Left click to show upcoming appointments for the next three days via \`calcurse -d3\` and show the month via \`cal\`
  22. - Middle click opens calcurse if installed" ;;
  23. 6) st -e nvim "$0" ;;
  24. esac
  25. date "+%Y %b %d (%a) $icon%I:%M%p"