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