From e806053822fcf3ff236e8c96b5c99ac2290339f4 Mon Sep 17 00:00:00 2001 From: Erwin Boskma Date: Mon, 23 Oct 2023 08:10:43 +0200 Subject: [PATCH] eww: Add headset widget to work bar --- home-manager/modules/eww/config/eww.yuck | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/home-manager/modules/eww/config/eww.yuck b/home-manager/modules/eww/config/eww.yuck index 6578718..ae67ea8 100644 --- a/home-manager/modules/eww/config/eww.yuck +++ b/home-manager/modules/eww/config/eww.yuck @@ -185,6 +185,13 @@ :tooltip "Shutdown" :onclick "systemctl shutdown" "󰐥")))) +(defwidget headset [] + (button :space-evenly false + :class "headset-button" + :click "headsetcontrol -s 128" + :onrightclick "headsetcontrol -s 0" + "󰋎 ")) + (defwidget title [] (label :text {wm-info.title})) @@ -208,6 +215,7 @@ (box :orientation "h" :halign "end" :space-evenly false + (children) (control) (right))) @@ -229,7 +237,8 @@ (centerbox (left :is-home false) (title) - (end)))) + (end + (headset))))) ;; Bar windows (defwindow bar-home