Small CLI to be used as a statusline in e.g:
Desktop environment | Addon | Coloring |
---|---|---|
Gnome | Executor - Gnome Shell Extension | raujonas-executor |
any using Wayland | Waybar - Wayland status bar | pango (Example) |
AwesomeWM | awful.widget.watch | none (Example) |
AwesomeWM | awful.widget.watch | pango (Example) |
KDE Plasma | Command Output widget | ansi |
Requires Go 1.18 (or higher):
go install github.com/dinkur/dinkur-statusline@latest
$ dinkur-statusline
1:01:32 (my task name) | 1:01:32 | 12%
$ dinkur-statusline --color pango
<span foreground='lime'>1:01:32 (my task name)</span> | 1:01:32 | 12%
$ dinkur-statusline --color raujonas-executor
<executor.markup.true> <span foreground='lime'>1:01:32 (my task name)</span> | 1:01:32 | 12%
$ dinkur-statusline --help
Usage: dinkur-statusline [flags]
Shows the status of your local Dinkur database (~/.local/share/dinkur/dinkur.db)
printed on a single line.
Possible colors:
--color auto Means "ansi" if interactive TTY, otherwise means "none"
--color ansi ANSI color-codes, for coloring in the terminal
--color none No coloring is applied
--color pango Coloring via Pango markup
--color raujonas-executor Same as "pango", but with added "<executor.markup.true>" prefix
Flags:
-c, --color string Color format (default "auto")
-h, --help Show this help text
--work-hours uint Hours in a workday, used in percentage calc (default 8)