aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--[-rwxr-xr-x]status6
1 files changed, 5 insertions, 1 deletions
diff --git a/status b/status
index 64e9d9c..4a3ba70 100755..100644
--- a/status
+++ b/status
@@ -27,7 +27,11 @@ daemon() {
[ ! -p "$CMDFIFO" ] && mkfifo $CMDFIFO
status() {
- xsetroot -name " $(cat)"
+ if [ -n "$WAYLAND_DISPLAY" ]; then
+ sed "s/^\(.*[^ ]\)[ ]*$/\1/g" > /tmp/statusline
+ else
+ xsetroot -name " $(cat)"
+ fi
}
autorefresh &