Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/unode/polypomo
Pomodoro widget for use with polybar (or standalone if you are so inclined)
https://github.com/unode/polypomo
polybar pomodoro
Last synced: 3 months ago
JSON representation
Pomodoro widget for use with polybar (or standalone if you are so inclined)
- Host: GitHub
- URL: https://github.com/unode/polypomo
- Owner: unode
- License: mit
- Created: 2019-05-12T14:31:09.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-07-12T13:12:56.000Z (over 1 year ago)
- Last Synced: 2024-06-15T15:37:08.884Z (5 months ago)
- Topics: polybar, pomodoro
- Language: Python
- Homepage:
- Size: 39.1 KB
- Stars: 95
- Watchers: 6
- Forks: 10
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Authors: AUTHORS
Awesome Lists containing this project
- awesome-repositories - unode/polypomo - Pomodoro widget for use with polybar (or standalone if you are so inclined) (Python)
README
# polypomo - a [polybar](https://polybar.github.io/) [pomodoro](https://en.wikipedia.org/wiki/Pomodoro_Technique) widget
## Usage
Download or clone this repository, then in polybar add:
```
; In your bar configuration add
modules-right = polypomo; and add a polypomo module
[module/polypomo]
type = custom/scriptexec = /path/to/polypomo
tail = truelabel = %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 -60font-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](https://github.com/polybar/polybar/wiki/Configuration).
### 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](https://github.com/unode/polypomo/issues/3#issuecomment-781288256).### 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](https://fonts.google.com/noto/specimen/Noto+Emoji) from the [Noto](https://www.google.com/get/noto/help/emoji/) family of fonts.### 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](https://raw.githubusercontent.com/unode/polypomo/master/imgs/tomato-timer.png)
![break timer](https://raw.githubusercontent.com/unode/polypomo/master/imgs/break-timer.png)## License
polypomo is licensed under the [MIT](https://github.com/unode/polypomo/blob/master/LICENSE) license
## Troubleshooting
If you are finding that polypomo doesn't start or error messages are visible in polybar, try the following:
1. Remove polypomo from polybar's configuration
2. Ensure no polypomo process is active on your system
3. Open two terminals/consoles and navigate to the polypomo repository
4. On the first terminal run `./polypomo`. You should see some output appearing.
5. On the second terminal issue one of the polypomo commands listed above. For instance `./polypomo toggle`. The output in terminal one should change accordingly.If an error appears in either case, please submit a bug report with the full output and the steps to reproduce the problem.
To stop polypomo on the first terminal run `./polypomo exit` in the second terminal or simply hit `Ctrl + C` to abort the process.
### Received exit request...
If this message appears repeatedly in polybar, you may be running multiple instances of polypomo simultaneously and they are forcing each other to exit.
Reconfigure polybar to run only one polypomo instance or see the [Limitations](#limitations) section above for possible workarounds.Alternatively, stop polybar and run the above troubleshooting steps.
If manually running polypomo with the two terminal setup works, review your polybar configuration to ensure only one instance of polypomo is launched.