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\"))"