Skip to content
forked from unode/polypomo

Pomodoro widget for use with polybar (or standalone if you are so inclined)

License

Notifications You must be signed in to change notification settings

Mugworth/polypomo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

polypomo - a polybar pomodoro widget

Usage

Download or clone this repository, then in polybar add:

; In your bar configuration add
modules-right = <other-modules> polypomo <other-modules>

; and add a polypomo module
[module/polypomo]
type = custom/script

exec = /path/to/polypomo
tail = true

label = %output%
click-left = /path/to/polypomo toggle
click-right = /path/to/polypomo end
click-middle = /path/to/polypomo lock
scroll-up = /path/to/polypomo time +60
scroll-down = /path/to/polypomo time -60

font-0 = fixed:pixelsize=10;1
font-1 = Noto Emoji:scale=15:antialias=false;0

In order to prevent accidental changes to the timer, polypomo starts in locked mode.
Middle click the widget or run polypomo lock to toggle locked state.
You can then scroll-up/down to change time.

If you wish to permanently change the default times start polypomo with --worktime seconds and --breaktime seconds.

if you want your work sessions to be logged, start polypomo with --saveto followed by the path to your database, polypomo will then create a table called sessions and store the date, start and stop time of each work session.

There isn't much else in terms of configuration but if the syntax above is confusing please refer to the polybar configuration wiki page.

Limitations

polypomo is designed to work as a single widget in your polybar.
Running multiple polypomo instances is not a supported configuration but some workarounds are possible.

Fonts

In order to display the icons as shown in the screenshots below, you need to configure a font that includes the Unicode glyphs U+1F345 (๐Ÿ…) and U+1F3D6 (๐Ÿ–). The example above uses the font Noto Emoji.

About pomodoro technique

While polypomo implements the active -> break -> active pattern it doesn't enforce the longer break after a given number of active sprees.
This is left at the discretion of the user.

Optional dependencies

polypomo makes use of notify-send to send a notification when the timer reaches zero.

Screenshots

pomodoro timer
break timer

License

polypomo is licensed under the MIT license

About

Pomodoro widget for use with polybar (or standalone if you are so inclined)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%