bar brightness scroll

This commit is contained in:
end-4
2025-04-11 20:43:18 +02:00
parent 06fc4baf4e
commit d77e4f14bf
3 changed files with 81 additions and 2 deletions
+11
View File
@@ -30,6 +30,17 @@ Scope {
ActiveWindow {
bar: barRoot
}
// Scroll to switch workspaces
WheelHandler {
onWheel: (event) => {
if (event.angleDelta.y < 0)
Brightness.value = -1;
else if (event.angleDelta.y > 0)
Brightness.value = 1;
}
acceptedDevices: PointerDevice.Mouse | PointerDevice.TouchPad
}
}