Skip to content

ubermanu/polybar-d-tracker-control

Repository files navigation

D-tracker Control

A script to control and display d-tracker in polybar.

Installation

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

Requirements

Preview

When disabled (no currently active task):

inactive

When enabled (active task):

running.png

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
[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 &