dotfiles/.local/bin/statusbar/clock

9 lines
337 B

#!/bin/sh
date +"%d %b '%y (%a) %H:%M"
case $BLOCK_BUTTON in
1) pgrep -x dunst >/dev/null && notify-send "This Month" "$(cal -m --color=always | sed "s/..7m/<b><span color=\"red\">/;s/..27m/<\/span><\/b>/")" ;;
3) pgrep -x dunst >/dev/null && notify-send "📅 Time/date module" "\- Left click to show the month via \`cal\`" ;;
esac