[wiki] [sites] [dwm][status_monitor|tutorial] mention xprop as an alternative to xsetroot || Aleksandrs Stier

From: <git_AT_suckless.org>
Date: Sat, 11 Jun 2022 00:04:22 +0200

commit 4b3fcb045de9742ead9e474c69f469ecd206859d
Author: Aleksandrs Stier <aleks.stier_AT_icloud.com>
Date: Sat Jun 11 00:03:13 2022 +0200

    [dwm][status_monitor|tutorial] mention xprop as an alternative to xsetroot

diff --git a/dwm.suckless.org/status_monitor/index.md b/dwm.suckless.org/status_monitor/index.md
index 8b51289e..690422e5 100644
--- a/dwm.suckless.org/status_monitor/index.md
+++ b/dwm.suckless.org/status_monitor/index.md
_AT_@ -10,6 +10,11 @@ It can be easily set and retrieved using standard Unix tools.
         xprop -root -notype -f WM_NAME "8u" \
                 | sed -n -r 's/WM_NAME = \"(.*)\"/\1/p'
 
+Alternatively, instead of xsetroot also xprop can be used to set the
+status-bar-text.
+
+ xprop -root -set WM_NAME $status
+
 Set The Status Using A Shell Script
 -----------------------------------
         while true; do
diff --git a/dwm.suckless.org/tutorial/index.md b/dwm.suckless.org/tutorial/index.md
index 6331d196..3e1998a8 100644
--- a/dwm.suckless.org/tutorial/index.md
+++ b/dwm.suckless.org/tutorial/index.md
_AT_@ -112,6 +112,10 @@ Using the tools of X.org, this can be set using:
 
         % xsetroot -name "Some Text"
 
+or
+
+ % xprop -root -set WM_NAME "Some Text"
+
 There are various tools and methods to populate this text with useful
 information from your system or services running on your system. A barebone for
 doing this in C is [dwmstatus](../status_monitor/). See the
Received on Sat Jun 11 2022 - 00:04:22 CEST

This archive was generated by hypermail 2.3.0 : Sat Jun 11 2022 - 00:12:36 CEST