user/eww: fix null title
This commit is contained in:
parent
07eae0a0eb
commit
1c4fe00272
2 changed files with 2 additions and 2 deletions
|
|
@ -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")
|
||||
|
||||
|
|
|
|||
|
|
@ -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\"))"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue