Take a break by Tiago Danin.
Take a break
Inspired in gnome-break-timer.
This is a Node.js module available through the
npm registry. It can be installed using the
npm
or
yarn
command line tools.
npm install polybar-break-timer -g
Polybar Config:
; Polybar Break Timer
[module/breaktimer]
type = custom/script
format-prefix = "Break Timer "
format-foreground = ${colors.verdeclaro}
exec = polybar-break-timer $HOME/.config/polybar/.env/break-timer 20
click-left = echo left >> $HOME/.config/polybar/.env/break-timer
click-middle = echo middle >> $HOME/.config/polybar/.env/break-timer
click-right = echo right >> $HOME/.config/polybar/.env/break-timer
scroll-up = echo scrollUp >> $HOME/.config/polybar/.env/break-timer
scroll-down = echo scrollDown >> $HOME/.config/polybar/.env/break-timer
tail = true
And create a file in $HOME/.config/polybar/.env/break-timer.
MIT
JavaScript
4