]> git.lizzy.rs Git - bspwm.git/commitdiff
New message: `put_status`
authorBastien Dejean <nihilhill@gmail.com>
Sun, 7 Apr 2013 09:27:24 +0000 (11:27 +0200)
committerBastien Dejean <nihilhill@gmail.com>
Sun, 7 Apr 2013 09:27:24 +0000 (11:27 +0200)
README.md
bspwm.1
messages.c

index 2739019973038b5fbafc877f568f56eb2e4648b0..850b9d2ff1db2460fa3c77eab393d592d523f5d2 100644 (file)
--- a/README.md
+++ b/README.md
@@ -173,6 +173,8 @@ The following messages are handled:
 
 - `remove_rule UID ...` — Remove the rules with the given UIDs.
 
+- `put_status` — Output the current state to the panel fifo.
+
 - `adopt_orphans` — Manage all the unmanaged windows remaining from a previous session.
 
 - `restore FILE_PATH` — Restore the layout of each desktop from the content of `FILE_PATH`.
diff --git a/bspwm.1 b/bspwm.1
index 97b69117dabbed2a4b1be454b1d544988d696efb..628b1b0443b4995edbdd26c03d2acfaf478a2ca0 100644 (file)
--- a/bspwm.1
+++ b/bspwm.1
@@ -243,6 +243,9 @@ Create a new rule (PATTERN must match the class or instance name).
 .BI remove_rule " UID ..."
 Remove the rules with the given UIDs.
 .TP
+.BI put_status
+Output the current state to the panel fifo.
+.TP
 .BI adopt_orphans
 Manage all the unmanaged windows remaining from a previous session.
 .TP
index 8e7d9fb16c43ef0dddc1b2c13c37a5b1af20acb6..2605a2fff9dd659af305847c11e3935c347995a5 100644 (file)
@@ -432,6 +432,8 @@ void process_message(char *msg, char *rsp)
         }
         if (mon->desk->layout == LAYOUT_TILED)
             return;
+    } else if (strcmp(cmd, "put_status") == 0) {
+        put_status();
     } else if (strcmp(cmd, "adopt_orphans") == 0) {
         adopt_orphans();
     } else if (strcmp(cmd, "restore") == 0) {