From da435461d6cffcd4125b5792841dcad516a965c3 Mon Sep 17 00:00:00 2001 From: Penelope Gwen Date: Tue, 4 Mar 2025 18:30:02 -0800 Subject: [PATCH] New backup 2025-03-04 18:30:02 --- de/home/.config/eww/eww.yuck | 52 +++++++++---------- de/home/.config/sway/config.d/autostart | 3 +- .../.config/sway/config.d/display.d/t16g2 | 1 + 3 files changed, 29 insertions(+), 27 deletions(-) diff --git a/de/home/.config/eww/eww.yuck b/de/home/.config/eww/eww.yuck index bd16080..0257f0e 100644 --- a/de/home/.config/eww/eww.yuck +++ b/de/home/.config/eww/eww.yuck @@ -17,7 +17,7 @@ (volume) (network) (vpn) - (bluetooth :array btDeviceArray) + (bluetooth) (sysdisk) (sysmem) (clock) @@ -56,31 +56,6 @@ (button :onclick 'notify-send "test"' {formattime(EWW_TIME,"%b %d, %Y | %H:%M")})) - - -;(defwidget bluetooth [] -; (button :onclick 'blueman-manager' -; "")) - -(deflisten btDeviceArray :initial "${[1]}" - 'scripts/bt-devices') - -(defwidget bluetooth [array] -(box :class "workspaces" - :orientation "h" - :space-evenly true - :halign "start" - - (for device in array - (button :onclick 'notify-send "${device.name} ${device.address}"' - :class {(device.connected == "yes") ? "active" : ""} - "${device.icon}")))) - - - - - - (defpoll inhibit_active :initial false :interval "1s" "scripts/inhibit-status") @@ -159,6 +134,31 @@ :class {wired_active ? "active" : ""} "🖧"))) +(defvar reveal_bluetooth false) +(defvar bluetooth_active true) +(defwidget bluetooth [] + (revealer-on-hover + :revealvar reveal_bluetooth + :revealvar-name "reveal_bluetooth" + (button :onclick 'blueman-manager' + :class {bluetooth_active ? "active" : ""} + "") + (bluetooth_children :array btDeviceArray))) + +(defpoll btDeviceArray :initial "${[1]}" + :interval "5s" + 'scripts/bt-devices') +(defwidget bluetooth_children [array] +(box :class "reveal_children" + :orientation "h" + :space-evenly true + :halign "start" + + (for device in array + (button :onclick {(device.connected == "yes") ? 'bluetoothctl disconnect "${device.address}"' : 'bluetoothctl connect "${device.address}"'} + :class {(device.connected == "yes") ? "active" : ""} + "${device.icon}")))) + (defvar reveal_volume false) (defwidget volume [] (revealer-on-hover diff --git a/de/home/.config/sway/config.d/autostart b/de/home/.config/sway/config.d/autostart index 54c3976..3d68638 100644 --- a/de/home/.config/sway/config.d/autostart +++ b/de/home/.config/sway/config.d/autostart @@ -7,7 +7,8 @@ #exec_always $HOME/.config/sway/scripts/autostart exec_always 'killall autotiling;autotiling -l 4' #exec_always 'swaync' -exec_always 'killall waybar;waybar' +#exec_always 'killall waybar;waybar' +exec_always 'eww kill;eww daemon' #exec_always 'swaync' diff --git a/t16g2/home/.config/sway/config.d/display.d/t16g2 b/t16g2/home/.config/sway/config.d/display.d/t16g2 index 1cb3c17..11940ee 100644 --- a/t16g2/home/.config/sway/config.d/display.d/t16g2 +++ b/t16g2/home/.config/sway/config.d/display.d/t16g2 @@ -5,6 +5,7 @@ output eDP-1 { position 0 0 # bg $HOME/.config/sway/assets/wallpaper/eDP-1/_default.jpg fill } +exec_always eww open x0a31 output DP-7 { scale 1