Skip to content

kmwenja/spew

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published