mirror of
https://github.com/end-4/dots-hyprland.git
synced 2026-06-20 15:59:58 -05:00
waffles: osd
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user