blob: 80a8d1f14704a7eac2eebe744388e3ead64dab82 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
pragma Singleton
import Quickshell
import Quickshell.Io
import QtQuick
Singleton {
id: root
property int brightness
Process {
command: ["brightctl", "-l"]
running: true
stdout: SplitParser {
onRead: line => root.brightness = parseInt(line)
}
}
}
|