Polybar clickable date module

If you want a polybar date that does something functional beyond telling date/time, I hacked the following which via left and/or right click opens a plain calendar and/or your email system:

type = custom/script
format-prefix =  
format-prefix-foreground = ${colors.accent}
exec = date +'  %a. %d %b. %Y ~ %H:%M'
tail = false
interval = 5
click-left = gsimplecal
click-right = thunderbird

If you set the current version of t’bird to close from your Calendar tab (rather than email tab) the right click will open to your calendar. Left click opens gsimplecal, if you have it installed.



Another great idea @manyroads