kmwenja / spew

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Spew

Like conky, generate lines of info to pass to bars like lemonbar.

Build

make make install PREFIX=~/bin make install

Usage:

# config.toml
template = "{{ .Date }} Hello {{ .Username }} - {{ .Random }}\n"

[[sources]]
name="date"
type="once"
script="date"

[[sources]]
name="username"
type="once"
script="whoami"

[[sources]]
name="random"
type="listen"
script="bash -c 'while true; do sleep 1; echo $RANDOM; done'"
spew config.toml

Use with lemonbar:

spew config.toml | lemonbar -p

TODO

  • retry before failing
  • sandbox failure (each section fails on its own)

About


Languages

Language:Go 96.4%Language:Makefile 3.6%