blob: 2067a11049ca2e0954bb0ee5f696fbe179d4f0c2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
pragma Singleton
import Quickshell
import Quickshell.Io
import QtQuick
Singleton {
id: root
property var heights
Process {
command: ["cava", "-p", "/home/samn/.config/quickshell/cava.ini"]
running: true
stdout: SplitParser {
onRead: line => {
root.heights = line.substring(0, line.length - 1).split(';').map(x => parseInt(x))
}
}
}
}
|