https://github.com/ubermanu/polybar-d-tracker-control
Polybar module to control d-tracker
https://github.com/ubermanu/polybar-d-tracker-control
bash d-tracker module polybar time-tracking
Last synced: about 2 months ago
JSON representation
Polybar module to control d-tracker
- Host: GitHub
- URL: https://github.com/ubermanu/polybar-d-tracker-control
- Owner: ubermanu
- License: mit
- Created: 2022-04-08T15:09:05.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-09-26T18:33:31.000Z (over 3 years ago)
- Last Synced: 2025-03-08T17:01:54.854Z (over 1 year ago)
- Topics: bash, d-tracker, module, polybar, time-tracking
- Language: Shell
- Homepage:
- Size: 48.8 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# D-tracker Control
A script to control and display [d-tracker](https://github.com/drmargarido/d-tracker) in [polybar](https://github.com/polybar/polybar).
## Installation
With [bpkg](https://github.com/bpkg/bpkg):
bpkg install -g ubermanu/polybar-d-tracker-control
or manually:
git clone https://github.com/ubermanu/polybar-d-tracker-control
cd polybar-d-tracker-control
make install
## Requirements
* [d-tracker](https://github.com/drmargarido/d-tracker)
* [rofi](https://github.com/davatorium/rofi), for user input
## Preview
When disabled (no currently active task):

When enabled (active task):

All the format variables are displayed in the help.
d-tracker-control --help
## Module
Here is an example:
* Create a new task on left click
* Stops a task on right click
* Open `d-tracker` on middle click
```ini
[module/d-tracker-control]
type = custom/script
tail = true
label-foreground = ${colors.foreground}
exec = d-tracker-control output
interval = 1
click-left = d-tracker-control new
click-right = d-tracker-control stop
click-middle = exec d-tracker &
```