[wiki] [sites] Adding a dwmgetstatus page and script. || Christoph Lohmann

From: <git_AT_suckless.org>
Date: Wed, 05 Dec 2012 08:36:51 +0100

commit 8e65e2c75438130ec785dc6646eae41112205285
Author: Christoph Lohmann <20h_AT_r-36.net>
Date: Wed Dec 5 08:34:45 2012 +0100

    Adding a dwmgetstatus page and script.

diff --git a/dwm.suckless.org/dwmgetstatus.md b/dwm.suckless.org/dwmgetstatus.md
new file mode 100644
index 0000000..623f664
--- /dev/null
+++ b/dwm.suckless.org/dwmgetstatus.md
_AT_@ -0,0 +1,22 @@
+dwmgetstatus
+============
+
+The status bar text of **dwm** is stored in the WM_NAME X11 property of the
+root window, which is managed by dwm. It can be easily retrieved using
+standard Unix tools.
+
+Below is the script to do this:
+
+ #!/bin/sh
+
+ xprop -root -f WM_NAME "8u" \
+ | sed -n -r 's/WM_NAME\(STRING\) = \"(.*)\"//p'
+
+Link: [dwmgetstatus.sh](http://dwm.suckless.org/dwmgetstatus.sh)
+
+Questions
+---------
+
+If you have any questions regarding dwmgetstatus, contact Christoph Lohmann
+(<20h_AT_r-36.net>).
+
diff --git a/dwm.suckless.org/dwmgetstatus.sh b/dwm.suckless.org/dwmgetstatus.sh
new file mode 100644
index 0000000..0236309
--- /dev/null
+++ b/dwm.suckless.org/dwmgetstatus.sh
_AT_@ -0,0 +1,4 @@
+#!/bin/sh
+
+xprop -root -f WM_NAME "8u" | sed -n -r 's/WM_NAME\(STRING\) = \"(.*)\"//p'
+
Received on Wed Dec 05 2012 - 08:36:51 CET

This archive was generated by hypermail 2.3.0 : Wed Dec 05 2012 - 08:48:08 CET