diff options
| author | Sam Nystrom <sam@samnystrom.dev> | 2026-01-15 16:53:43 -0500 |
|---|---|---|
| committer | Sam Nystrom <sam@samnystrom.dev> | 2026-01-15 16:53:43 -0500 |
| commit | 53008538e5bef961e9ceb5abc5c5ee05a559e97d (patch) | |
| tree | 3ad2f4fa7fbc88ff4bb67c75395cc4acdb9c09fb /.config/quickshell/Services/Cava.qml | |
| parent | 3ac17574dbcfe68b2fba11aeeb445f04d1170c2a (diff) | |
update qs config
Diffstat (limited to '.config/quickshell/Services/Cava.qml')
| -rw-r--r-- | .config/quickshell/Services/Cava.qml | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/.config/quickshell/Services/Cava.qml b/.config/quickshell/Services/Cava.qml new file mode 100644 index 0000000..96cb918 --- /dev/null +++ b/.config/quickshell/Services/Cava.qml @@ -0,0 +1,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 + } + } + } +} |
