making nextcloud icon a working piece

This commit is contained in:
Chris Cochrun 2023-08-31 05:37:48 -05:00
parent 849b950c02
commit ede4467af8
3 changed files with 18 additions and 4 deletions

View file

@ -17,6 +17,7 @@
(defpoll WLAN_ICON :interval "1m" "scripts/wifi --ICON")
(defpoll HOST :interval "1h" "hostname")
(defpoll DISK :interval "1m" "disk")
(defpoll nextcloud :interval "2s" "scripts/nextcloud.sh")
(deflisten volume_percent :interval "0.5s" "tail -F /tmp/vol")
(deflisten appname "scripts/appname")
@ -232,13 +233,12 @@
(defwidget nextcloud_button []
(box
:class "notif_button"
:class "nc_button"
:orientation "h"
:tooltip "${nextcloud}"
(button
:onclick "nextcloud"
(label
:text "󰅠"
:visible true))))
"${nextcloud == "Connected - Success" ? "󰅠" : nextcloud == "Connected - Success, some files were ignored." ? "󰅠" : "󰧠"}")))
(defwidget sep []
(label