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"
|
: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
|
||||||
|
|
Loading…
Reference in a new issue