2024-07-29 18:02:37 +00:00
|
|
|
(include "yuck/osd/osd_widg.yuck")
|
|
|
|
|
|
|
|
(defwindow osd [osdtype]
|
|
|
|
:geometry
|
2024-08-04 20:22:37 +00:00
|
|
|
(geometry
|
|
|
|
:x "-1%"
|
|
|
|
:y "4.5%"
|
|
|
|
:width "10%"
|
|
|
|
:height "4%"
|
|
|
|
:anchor "top right"
|
|
|
|
)
|
|
|
|
:halign "end"
|
|
|
|
:valign "end"
|
2024-07-29 18:02:37 +00:00
|
|
|
:monitor 0
|
|
|
|
:stacking "fg"
|
|
|
|
:windowtype "dock"
|
|
|
|
:wm-ignore true
|
|
|
|
|
|
|
|
(osd_widg
|
2024-08-04 20:22:37 +00:00
|
|
|
:osdtype "${osdtype}"
|
|
|
|
:osd_value
|
|
|
|
{osdtype=="osd_vol" ?
|
2024-07-29 18:02:37 +00:00
|
|
|
"${vol}" : osdtype=="osd_bri" ?
|
|
|
|
"${brit}" : "${battery}"
|
|
|
|
}
|
|
|
|
)
|
|
|
|
)
|