New backup 2025-03-04 18:30:02
This commit is contained in:
parent
1eaf41d79a
commit
da435461d6
3 changed files with 29 additions and 27 deletions
|
@ -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
|
||||
|
|
|
@ -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'
|
||||
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue