sites

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 8e65e2c75438130ec785dc6646eae41112205285
parent 2ad8e2e9f006c1646e288b9cdd2cead4ddc01e95
Author: Christoph Lohmann <20h@r-36.net>
Date:   Wed,  5 Dec 2012 08:34:45 +0100

Adding a dwmgetstatus page and script.

Diffstat:
Adwm.suckless.org/dwmgetstatus.md | 22++++++++++++++++++++++
Adwm.suckless.org/dwmgetstatus.sh | 4++++
2 files changed, 26 insertions(+), 0 deletions(-)

diff --git a/dwm.suckless.org/dwmgetstatus.md b/dwm.suckless.org/dwmgetstatus.md @@ -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\) = \"(.*)\"/\1/p' + +Link: [dwmgetstatus.sh](http://dwm.suckless.org/dwmgetstatus.sh) + +Questions +--------- + +If you have any questions regarding dwmgetstatus, contact Christoph Lohmann +(<20h@r-36.net>). + diff --git a/dwm.suckless.org/dwmgetstatus.sh b/dwm.suckless.org/dwmgetstatus.sh @@ -0,0 +1,4 @@ +#!/bin/sh + +xprop -root -f WM_NAME "8u" | sed -n -r 's/WM_NAME\(STRING\) = \"(.*)\"/\1/p' +