eww: bar connectivity widget now launches iwgtk on click

This commit is contained in:
GaspardCulis 2024-01-25 14:49:29 +01:00
parent 2b73f01ecb
commit a18ab6e3a7

View file

@ -34,10 +34,13 @@
) )
(defwidget connectivity [] (defwidget connectivity []
(eventbox
:onclick "bash -c 'iwgtk &> /dev/null &'"
(label (label
:class "connectivity" :class "connectivity"
:text " ${connectivity.status == "down" ? "down" : connectivity.ssid}") :text " ${connectivity.status == "down" ? "down" : connectivity.ssid}")
) )
)
(defwidget bluetooth [] (defwidget bluetooth []
(eventbox (eventbox
@ -143,6 +146,7 @@
:space-evenly false :space-evenly false
(container (container
(time) (time)
(label :text "") ; Else container spacing rule doesn't apply
(connectivity) (connectivity)
(label :text "") ; Else container spacing rule doesn't apply (label :text "") ; Else container spacing rule doesn't apply
(bluetooth) (bluetooth)