diff --git a/de/home/.config/eww/modules/bar/bluetooth.yuck b/de/home/.config/eww/modules/bar/bluetooth.yuck index 58aee74..2aee497 100644 --- a/de/home/.config/eww/modules/bar/bluetooth.yuck +++ b/de/home/.config/eww/modules/bar/bluetooth.yuck @@ -1,19 +1,13 @@ (defvar reveal_bluetooth false) -(defpoll bluetooth_active :initial true - :interval "60s" - 'scripts/bar/bt-status') (defwidget bluetooth [] (revealer-on-hover :revealvar reveal_bluetooth :revealvar-name "reveal_bluetooth" (button :onclick 'blueman-manager' - :class {bluetooth_active ? "active" : ""} + :class {matches(jq(bluetooth_status,'.[].connected'),'yes') ? "active" : ""} "") (bluetooth_children :array bluetooth_status))) -;(defpoll btDeviceArray :initial "${[{ "name": "dummy", "connected": "no", "icon": " ", "address": "00:00:00:00:00:00" }]}" -; :interval "60s" -; 'scripts/bar/bt-devices') (defwidget bluetooth_children [array] (box :class "reveal_children" :orientation "h"