From 68ea9c712a27283cb37f619d9b7c51f7c7b61a5f Mon Sep 17 00:00:00 2001 From: Penelope Gwen Date: Wed, 12 Mar 2025 21:15:07 -0700 Subject: [PATCH] New backup 2025-03-12 21:15:07 --- de/home/.config/eww/modules/bar/bluetooth.yuck | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) 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"