aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md2
-rw-r--r--dwlb.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/README.md b/README.md
index be73766..8c356bf 100644
--- a/README.md
+++ b/README.md
@@ -19,7 +19,7 @@ dwl -s 'dwlb -font "monospace:size=16"'
```
## Commands
-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, "selected" for the current output, or "first" for the first output in the internal list.
### Status Text
The `-status` command is used to write status text. The text may contain in-line color commands in the following format: `^fg/bg(HEXCOLOR)`. For example, `^fg(ff0000)` would set the foreground red. Colors can be reset by omitting the hex value. `^^` represents a single `^` character. Color command functionality can be disabled with `-no-status-commands`.
diff --git a/dwlb.c b/dwlb.c
index 2f3f4be..6743184 100644
--- a/dwlb.c
+++ b/dwlb.c
@@ -804,6 +804,8 @@ read_socket(void)
DL_FOREACH(bars, b)
if (b->selmon)
break;
+ } else if (!strcmp(wordbeg, "first")) {
+ b = bars;
} else {
DL_FOREACH(bars, b)
if (b->xdg_output_name)