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

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

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):

![inactive](screenshots/inactive.jpg)

When enabled (active task):

![running.png](screenshots/running.jpg)

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