From a18ab6e3a7204a2e38337a15515768b27243ff41 Mon Sep 17 00:00:00 2001 From: GaspardCulis Date: Thu, 25 Jan 2024 14:49:29 +0100 Subject: [PATCH] eww: bar connectivity widget now launches iwgtk on click --- bar/eww/bar.yuck | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/bar/eww/bar.yuck b/bar/eww/bar.yuck index 2d886a1..aee96c9 100644 --- a/bar/eww/bar.yuck +++ b/bar/eww/bar.yuck @@ -34,9 +34,12 @@ ) (defwidget connectivity [] - (label - :class "connectivity" - :text " ${connectivity.status == "down" ? "down" : connectivity.ssid}") + (eventbox + :onclick "bash -c 'iwgtk &> /dev/null &'" + (label + :class "connectivity" + :text " ${connectivity.status == "down" ? "down" : connectivity.ssid}") + ) ) (defwidget bluetooth [] @@ -143,6 +146,7 @@ :space-evenly false (container (time) + (label :text "") ; Else container spacing rule doesn't apply (connectivity) (label :text "") ; Else container spacing rule doesn't apply (bluetooth)