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"
: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