eww: Add headset widget to work bar

This commit is contained in:
Erwin Boskma 2023-10-23 08:10:43 +02:00
parent 2d030921ff
commit e806053822
Signed by: erwin
SSH key fingerprint: SHA256:3F6Cm6I3erRqlBwEghZWAQl6eS5WrGTX1Vs/Evec1lQ

View file

@ -185,6 +185,13 @@
:tooltip "Shutdown" :tooltip "Shutdown"
:onclick "systemctl shutdown" "󰐥")))) :onclick "systemctl shutdown" "󰐥"))))
(defwidget headset []
(button :space-evenly false
:class "headset-button"
:click "headsetcontrol -s 128"
:onrightclick "headsetcontrol -s 0"
"󰋎 "))
(defwidget title [] (defwidget title []
(label :text {wm-info.title})) (label :text {wm-info.title}))
@ -208,6 +215,7 @@
(box :orientation "h" (box :orientation "h"
:halign "end" :halign "end"
:space-evenly false :space-evenly false
(children)
(control) (control)
(right))) (right)))
@ -229,7 +237,8 @@
(centerbox (centerbox
(left :is-home false) (left :is-home false)
(title) (title)
(end)))) (end
(headset)))))
;; Bar windows ;; Bar windows
(defwindow bar-home (defwindow bar-home