user/eww: fix null title

This commit is contained in:
LavaDesu 2024-01-27 13:52:10 +07:00
parent 07eae0a0eb
commit 1c4fe00272
Signed by: cilly
GPG key ID: 6500251E087653C9
2 changed files with 2 additions and 2 deletions

View file

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

View file

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