New backup 2025-03-12 21:00:02

This commit is contained in:
Penelope Gwen 2025-03-12 21:00:02 -07:00
parent 9710b1c02a
commit c8b3b6d257
5 changed files with 9 additions and 25 deletions

View file

@ -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")

View file

@ -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"

View file

@ -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

View file

@ -1 +1,2 @@
(deflisten network_status "scripts/bar/bluetooth")
(deflisten bluetooth_status :initial '[{}]'
"scripts/bar/bluetooth")

View file

@ -1 +1,2 @@
(deflisten network_status "scripts/bar/networking")
(deflisten network_status :initial '{ "wifi": "false", "wired": "false", "proton": "false", "homevpn": "false" }'
"scripts/bar/networking")