commit 4b3fcb045de9742ead9e474c69f469ecd206859d
parent c577c2614e79ff5e15d716690efce7d3cca2b5f9
Author: Aleksandrs Stier <aleks.stier@icloud.com>
Date: Sat, 11 Jun 2022 00:03:13 +0200
[dwm][status_monitor|tutorial] mention xprop as an alternative to xsetroot
Diffstat:
2 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/dwm.suckless.org/status_monitor/index.md b/dwm.suckless.org/status_monitor/index.md
@@ -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
@@ -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