weather options

This commit is contained in:
Damocles 2026-04-12 15:20:38 +02:00
parent d6d108ee7c
commit 3a6ba994c5
3 changed files with 18 additions and 2 deletions

View file

@ -27,6 +27,8 @@ QtObject {
property bool battery: true
property bool wlogout: true
property var weatherArgs: ["--nerd"]
property FileView _file: FileView {
path: (Quickshell.env("XDG_CONFIG_HOME") || (Quickshell.env("HOME") + "/.config")) + "/nova-shell/modules.json"
watchChanges: true
@ -45,5 +47,7 @@ QtObject {
if (k in root && typeof root[k] === "boolean")
root[k] = data[k];
}
if (Array.isArray(data.weatherArgs))
root.weatherArgs = data.weatherArgs;
}
}

View file

@ -12,7 +12,7 @@ M.BarSection {
Process {
id: proc
running: true
command: ["wttrbar", "--nerd"]
command: ["wttrbar"].concat(M.Modules.weatherArgs)
stdout: StdioCollector {
onStreamFinished: {
try {