A script to control and display d-tracker in polybar.
With 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
When disabled (no currently active task):
When enabled (active task):
All the format variables are displayed in the help.
d-tracker-control --help
Here is an example:
- Create a new task on left click
- Stops a task on right click
- Open
d-tracker
on middle click
[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 &