From 80c4cd5ed44a545b2f56bd25c77bd67f1997f69d Mon Sep 17 00:00:00 2001 From: Penelope Gwen Date: Wed, 1 Jul 2026 08:49:48 -0700 Subject: [PATCH] add utilities module --- wayland/config/eww/modules/bar/utilities.yuck | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 wayland/config/eww/modules/bar/utilities.yuck diff --git a/wayland/config/eww/modules/bar/utilities.yuck b/wayland/config/eww/modules/bar/utilities.yuck new file mode 100644 index 0000000..9dedad3 --- /dev/null +++ b/wayland/config/eww/modules/bar/utilities.yuck @@ -0,0 +1,33 @@ + +(defvar reveal_utilities false) + +(defwidget utilities [] + (revealer-on-hover :class "${reveal_utilities} utilities" + :revealvar reveal_utilities + :revealvar-name "reveal_utilities" + (button :onclick 'notify-send "test"' + :class "revealer-preview active" + "󱁤") + (utilities_children))) + +(defwidget utilities_children [] +(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" : "inactive"} +; :tooltip "${device.name}" +; "${device.icon}")) + (button :onclick 'wl-color-picker.sh clipboard' + :onrightclick 'wl-color-picker.sh' + :tooltip 'colorpicker' + '' + ) + (button :onclick 'qr-generator.sh' + :onrightclick 'qr-generator.sh -c' + :tooltip 'QR Generator' + '󰐲' + ) + ))