waffles: osd

This commit is contained in:
end-4
2025-11-23 11:39:11 +01:00
parent 6e986fa8b0
commit 3087e5da92
11 changed files with 337 additions and 10 deletions
@@ -0,0 +1,21 @@
import QtQuick
import Quickshell
import Quickshell.Hyprland
import qs.services
import qs.modules.waffle.looks
OSDValue {
id: root
property var focusedScreen: Quickshell.screens.find(s => s.name === Hyprland.focusedMonitor?.name)
property var brightnessMonitor: Brightness.getMonitorForScreen(focusedScreen)
iconName: "weather-sunny"
value: brightnessMonitor?.brightness ?? 0
showNumber: false
Connections {
target: Brightness
function onBrightnessChanged() {
root.timer.restart();
}
}
}