misc small todos: animations, cursors, ...

This commit is contained in:
Damocles 2026-04-12 16:17:36 +02:00
parent 3a8b2d5b11
commit 77ce83462d
8 changed files with 42 additions and 8 deletions

View file

@ -25,16 +25,30 @@ M.BarSection {
adjProc.running = true;
}
// Detect backlight device dynamically
property string _blDev: ""
Process {
id: detectBl
running: true
command: ["sh", "-c", "ls /sys/class/backlight/ 2>/dev/null | head -1"]
stdout: StdioCollector {
onStreamFinished: {
const dev = text.trim();
if (dev) root._blDev = "/sys/class/backlight/" + dev;
}
}
}
FileView {
id: current
path: "/sys/class/backlight/intel_backlight/brightness"
path: root._blDev ? root._blDev + "/brightness" : ""
watchChanges: true
onFileChanged: reload()
onLoaded: root._update()
}
FileView {
id: max
path: "/sys/class/backlight/intel_backlight/max_brightness"
path: root._blDev ? root._blDev + "/max_brightness" : ""
onLoaded: root._update()
}