diff --git a/de/home/.config/eww/modules/bar.yuck b/de/home/.config/eww/modules/bar.yuck index c806cd9..6c31255 100644 --- a/de/home/.config/eww/modules/bar.yuck +++ b/de/home/.config/eww/modules/bar.yuck @@ -74,6 +74,7 @@ (include "variables/bar/network.yuck") (include "modules/bar/network.yuck") (include "modules/bar/vpn.yuck") +(include "variables/bar/bluetooth.yuck") (include "modules/bar/bluetooth.yuck") (include "modules/bar/battery.yuck") (include "modules/bar/sysdisk.yuck") diff --git a/de/home/.config/eww/modules/bar/bluetooth.yuck b/de/home/.config/eww/modules/bar/bluetooth.yuck index 0a9ddd2..58aee74 100644 --- a/de/home/.config/eww/modules/bar/bluetooth.yuck +++ b/de/home/.config/eww/modules/bar/bluetooth.yuck @@ -9,11 +9,11 @@ (button :onclick 'blueman-manager' :class {bluetooth_active ? "active" : ""} "") - (bluetooth_children :array btDeviceArray))) + (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') +;(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" diff --git a/de/home/.config/eww/scripts/bar/bluetooth b/de/home/.config/eww/scripts/bar/bluetooth index 619fea7..ec0af26 100755 --- a/de/home/.config/eww/scripts/bar/bluetooth +++ b/de/home/.config/eww/scripts/bar/bluetooth @@ -42,24 +42,5 @@ function btstatus(){ btstatus dbus-monitor --profile "interface='org.blueman.Applet',member='MenuChanged'" | while read -r event; do -# echo "hi" btstatus done -#bluetoothctl | awk '/Device/' |tr -d '\r' | while read -s -r event;do -# btstatus -# printf '%-2d %s\n' "test" "test" -#done - -exit - -bluetoothctl | while read -r event;do - btstatus -done - -#exit - -#bluetoothctl | awk '/Connected/' | tr -d '\r' | while read -r event; do -#bluetoothctl | tr -d '\r' | while read -r event; do -# btstatus -# echo "${event}" -#done diff --git a/de/home/.config/eww/variables/bar/bluetooth.yuck b/de/home/.config/eww/variables/bar/bluetooth.yuck index 0ee2836..d62fd85 100644 --- a/de/home/.config/eww/variables/bar/bluetooth.yuck +++ b/de/home/.config/eww/variables/bar/bluetooth.yuck @@ -1 +1,2 @@ -(deflisten network_status "scripts/bar/bluetooth") +(deflisten bluetooth_status :initial '[{}]' + "scripts/bar/bluetooth") diff --git a/de/home/.config/eww/variables/bar/network.yuck b/de/home/.config/eww/variables/bar/network.yuck index 6ee22d1..396bb81 100644 --- a/de/home/.config/eww/variables/bar/network.yuck +++ b/de/home/.config/eww/variables/bar/network.yuck @@ -1 +1,2 @@ -(deflisten network_status "scripts/bar/networking") +(deflisten network_status :initial '{ "wifi": "false", "wired": "false", "proton": "false", "homevpn": "false" }' + "scripts/bar/networking")