update README

This commit is contained in:
kolunmi 2023-03-18 11:15:26 -07:00
parent b1e0f996c2
commit 7e70e4662b

View File

@ -34,7 +34,7 @@ If dwl is [patched](https://lists.sr.ht/~raphi/public-inbox/patches/39166) appro
Command options send instructions to existing instances of dwlb. All commands take at least one argument to specify a bar on which to operate. This may be zxdg_output_v1 name, "all" to affect all outputs, or "selected" for the current output. Command options send instructions to existing instances of dwlb. All commands take at least one argument to specify a bar on which to operate. This may be zxdg_output_v1 name, "all" to affect all outputs, or "selected" for the current output.
### Status Text ### Status Text
The `-status` command is used to write status text. The text may contain in-line commands in the following format: `^cmd(argument)`. The `-status` and `-title` commands are used to write status text. The text may contain in-line commands in the following format: `^cmd(argument)`.
| In-Line Command | Description | | In-Line Command | Description |
|---------------------|-----------------------------------------------------------------------------| |---------------------|-----------------------------------------------------------------------------|
@ -54,6 +54,12 @@ A color command with no argument reverts to the default value. `^^` represents a
## Other Options ## Other Options
Run `dwlb -h` for a full list of options. Run `dwlb -h` for a full list of options.
## Someblocks
To use someblocks, or any program that outputs to stdout, with dwlb, use this one-liner:
```bash
someblocks -p | while read -r line; do dwlb -status all "$line"; done
```
## Acknowledgements ## Acknowledgements
* [dtao](https://github.com/djpohly/dtao) * [dtao](https://github.com/djpohly/dtao)
* [somebar](https://sr.ht/~raphi/somebar/) * [somebar](https://sr.ht/~raphi/somebar/)