From 7fb4d00fa2a41a0f20b8f49b35b7d2c9a70bcb51 Mon Sep 17 00:00:00 2001 From: Lucas Sta Maria Date: Sun, 28 Jan 2024 23:57:45 -0500 Subject: [PATCH] fix(eww): open rofi bluetooth on click Signed-off-by: Lucas Sta Maria --- .config/ambit/config.ambit | 1 + .config/eww/eww.yuck | 9 +++++---- .config/eww/scripts/bluetoothpanel | 3 +++ 3 files changed, 9 insertions(+), 4 deletions(-) create mode 100755 .config/eww/scripts/bluetoothpanel diff --git a/.config/ambit/config.ambit b/.config/ambit/config.ambit index 60f83c3..8f58671 100644 --- a/.config/ambit/config.ambit +++ b/.config/ambit/config.ambit @@ -22,6 +22,7 @@ scripts/[ battery, bluetooth, + bluetoothpanel, boolflip, brightness, brightnesslabel, diff --git a/.config/eww/eww.yuck b/.config/eww/eww.yuck index 93ecbee..ed58738 100644 --- a/.config/eww/eww.yuck +++ b/.config/eww/eww.yuck @@ -131,10 +131,11 @@ (literal :content {wifi_label}))) (defwidget bluetooth [] - (icon-module :class "bluetooth" - :icon "ᛒ" - :visible true - (literal :content {bluetooth_label}))) + (button :onclick "scripts/bluetoothpanel" + (icon-module :class "bluetooth" + :icon "ᛒ" + :visible true + (literal :content {bluetooth_label})))) ;; A widget for tracking brightness (defwidget brightness [] diff --git a/.config/eww/scripts/bluetoothpanel b/.config/eww/scripts/bluetoothpanel new file mode 100755 index 0000000..4a88de9 --- /dev/null +++ b/.config/eww/scripts/bluetoothpanel @@ -0,0 +1,3 @@ +#!/usr/bin/env bash + +rofi-bluetooth