Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/TiagoDanin/Polybar-Break-Timer

Take a break
https://github.com/TiagoDanin/Polybar-Break-Timer

breaktimer polybar polybar-scripts

Last synced: about 2 months ago
JSON representation

Take a break

Awesome Lists containing this project

README

        

# Polybar Break Timer

Take a break

![image](https://user-images.githubusercontent.com/5731176/47377346-6110db80-d6cb-11e8-8bb6-ec80b61753fb.png)

- Mouse scroll = Set Time
- Click Left = Enable
- Click Right = Disable

Inspired in [gnome-break-timer](https://github.com/GNOME/gnome-break-timer).

## Installation

This is a [Node.js](https://nodejs.org/) module available through the
[npm registry](https://www.npmjs.com/). It can be installed using the
[`npm`](https://docs.npmjs.com/getting-started/installing-npm-packages-locally)
or
[`yarn`](https://yarnpkg.com/en/)
command line tools.

```sh
npm install polybar-break-timer -g
```

## Usage

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.

## Dependencies

- [node-notifier](https://ghub.io/node-notifier): A Node.js module for sending notifications on native Mac, Windows (post and pre 8) and Linux (or Growl as fallback)
- [polybar-helpers](https://ghub.io/polybar-helpers): Polybar - Helpers to create plugin/module using NodeJS
- [tail](https://ghub.io/tail): tail a file in node

## License

MIT