Add eww/yuck/osd/osd_window.yuck
This commit is contained in:
parent
c79d19fbce
commit
c4779e2bda
25
eww/yuck/osd/osd_window.yuck
Normal file
25
eww/yuck/osd/osd_window.yuck
Normal file
@ -0,0 +1,25 @@
|
||||
(include "yuck/osd/osd_widg.yuck")
|
||||
|
||||
(defwindow osd [osdtype]
|
||||
:geometry
|
||||
(geometry :x "-1%"
|
||||
:y "4.5%"
|
||||
:width "10%"
|
||||
:height "4%"
|
||||
:anchor "top right"
|
||||
)
|
||||
:halign "end"
|
||||
:valign "end"
|
||||
:monitor 0
|
||||
:stacking "fg"
|
||||
:windowtype "dock"
|
||||
:wm-ignore true
|
||||
|
||||
(osd_widg
|
||||
:osdtype "${osdtype}"
|
||||
:osd_value {osdtype=="osd_vol" ?
|
||||
"${vol}" : osdtype=="osd_bri" ?
|
||||
"${brit}" : "${battery}"
|
||||
}
|
||||
)
|
||||
)
|
Loading…
Reference in New Issue
Block a user