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,9 +34,12 @@
) )
(defwidget connectivity [] (defwidget connectivity []
(label (eventbox
:class "connectivity" :onclick "bash -c 'iwgtk &> /dev/null &'"
:text " ${connectivity.status == "down" ? "down" : connectivity.ssid}") (label
:class "connectivity"
:text " ${connectivity.status == "down" ? "down" : connectivity.ssid}")
)
) )
(defwidget bluetooth [] (defwidget bluetooth []
@ -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)