From 1c4fe002720be6812b6b040ec693bbc40494b45f Mon Sep 17 00:00:00 2001 From: LavaDesu Date: Sat, 27 Jan 2024 13:52:10 +0700 Subject: [PATCH] user/eww: fix null title --- res/eww-wayland/eww.yuck | 2 +- res/eww-wayland/scripts/title.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/res/eww-wayland/eww.yuck b/res/eww-wayland/eww.yuck index 899195f..a5bb2d1 100644 --- a/res/eww-wayland/eww.yuck +++ b/res/eww-wayland/eww.yuck @@ -16,7 +16,7 @@ (defpoll petimeb :interval "1s" `date "+:%S"`) -(deflisten ltitle "./scripts/title.sh") +(deflisten ltitle :initial "" "./scripts/title.sh") (deflisten lworkspaces :initial "[]" "./scripts/workspaces.sh") (deflisten lcurrent_workspace :initial "1" "./scripts/active-workspace.sh") diff --git a/res/eww-wayland/scripts/title.sh b/res/eww-wayland/scripts/title.sh index baaffdf..9b19289 100755 --- a/res/eww-wayland/scripts/title.sh +++ b/res/eww-wayland/scripts/title.sh @@ -1,7 +1,7 @@ #!/usr/bin/env sh out () { - if [ -z "$1" ]; then + if [ -z "$1" ] || [ "$1" == "null" ]; then echo "" else echo "(box :class \"widget title\" :halign \"center\" :valign \"center\" :vexpand true :hexpand true (label :text \"$1\"))"