kolunmi / dwlb

Feature-Complete Bar for DWL
Other
64 stars 21 forks source link

Include real world status command examples #4

Closed josephreynolds1 closed 1 year ago

josephreynolds1 commented 1 year ago

Please include some real world status command examples. Documentation of command is confusing.

Also is it possible to use applications like someblocks to populate status data?

kolunmi commented 1 year ago

Hello! I added an example to README.md. Does it clarify the usage?

You could use someblocks to populate status data like this:

someblocks -p | while read -r line; do dwlb -status all "$line"; done

Or you could do some slight modifications to someblocks to make it write to dwlb's socket.

gozenka commented 1 year ago

Adding that command to the README with a denotion of "any STDOUT" in the beginning could help a lot. I struggled, overcomplicating stuff via mkfifo before realizing I could do exactly that one-liner.

kolunmi commented 1 year ago

Added