osd attached to triggering module position, per-screen filtering

This commit is contained in:
Damocles 2026-04-12 17:57:12 +02:00
parent 85a1260a35
commit 66dc628752
4 changed files with 19 additions and 6 deletions

View file

@ -1,4 +1,5 @@
import QtQuick
import Quickshell
import Quickshell.Io
import "." as M
@ -11,7 +12,7 @@ M.BarSection {
property int percent: 0
onPercentChanged: if (percent > 0)
M.OsdState.show(percent / 100, "\uF185")
M.OsdState.show(percent / 100, "\uF185", root.mapToGlobal(root.width / 2, 0).x - (QsWindow.window?.screen?.x ?? 0), QsWindow.window?.screen ?? null)
Process {
id: adjProc