[wiki] [sites] [dwm] simplify dwmgetstatus.sh || Klemens Nanni

From: <git_AT_suckless.org>
Date: Fri, 12 Feb 2016 14:05:50 +0100

commit 29c939ad5783f2722460937f8e2bc517f1044d3b
Author: Klemens Nanni <kl3_AT_posteo.org>
Date: Fri Feb 12 14:05:48 2016 +0100

    [dwm] simplify dwmgetstatus.sh

diff --git a/dwm.suckless.org/dwmgetstatus.md b/dwm.suckless.org/dwmgetstatus.md
index 623f664..d755ea7 100644
--- a/dwm.suckless.org/dwmgetstatus.md
+++ b/dwm.suckless.org/dwmgetstatus.md
_AT_@ -9,8 +9,8 @@ Below is the script to do this:
 
         #!/bin/sh
 
- xprop -root -f WM_NAME "8u" \
- | sed -n -r 's/WM_NAME\(STRING\) = \"(.*)\"//p'
+ xprop -root -notype -f WM_NAME "8u" \
+ | sed -n -r 's/WM_NAME = \"(.*)\"//p'
 
 Link: [dwmgetstatus.sh](http://dwm.suckless.org/dwmgetstatus.sh)
 
diff --git a/dwm.suckless.org/dwmgetstatus.sh b/dwm.suckless.org/dwmgetstatus.sh
index 0236309..1734ad8 100644
--- a/dwm.suckless.org/dwmgetstatus.sh
+++ b/dwm.suckless.org/dwmgetstatus.sh
_AT_@ -1,4 +1,4 @@
 #!/bin/sh
 
-xprop -root -f WM_NAME "8u" | sed -n -r 's/WM_NAME\(STRING\) = \"(.*)\"//p'
+xprop -root -notype -f WM_NAME "8u" | sed -n -r 's/WM_NAME = \"(.*)\"//p'
 
Received on Fri Feb 12 2016 - 14:05:50 CET

This archive was generated by hypermail 2.3.0 : Fri Feb 12 2016 - 14:12:14 CET