style: format qml files

This commit is contained in:
tux
2026-08-24 15:44:57 +05:30
parent ca7ac0696b
commit adfd353e85
19 changed files with 500 additions and 519 deletions

View File

@@ -5,22 +5,22 @@ import Quickshell
import Quickshell.Io
Singleton {
id: root
id: root
readonly property string configPath: {
const url = Quickshell.shellPath("assets/cava.conf").toString();
return url.startsWith("file://") ? decodeURIComponent(url.substring(7)) : url;
}
property var values: []
Process {
running: true
command: ["cava", "-p", root.configPath]
stdout: SplitParser {
onRead: line => {
root.values = line.split(";").map(Number).filter(v => !Number.isNaN(v));
}
readonly property string configPath: {
const url = Quickshell.shellPath("assets/cava.conf").toString();
return url.startsWith("file://") ? decodeURIComponent(url.substring(7)) : url;
}
property var values: []
Process {
running: true
command: ["cava", "-p", root.configPath]
stdout: SplitParser {
onRead: line => {
root.values = line.split(";").map(Number).filter(v => !Number.isNaN(v));
}
}
}
}
}