eww: Add headset widget to work bar
This commit is contained in:
parent
2d030921ff
commit
e806053822
1 changed files with 10 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue