Move shell scripts into plugin directories
This commit is contained in:
@@ -435,7 +435,7 @@ Panel {
|
||||
// Poll the weather pill text/class every minute. Local to this widget.
|
||||
Process {
|
||||
id: weatherProc
|
||||
command: ["bash", "-lc", root.bar ? Util.shellQuote(root.bar.omarchyPath + "/shell/scripts/weather.sh") : ""]
|
||||
command: ["bash", "-lc", root.bar ? Util.shellQuote(root.bar.omarchyPath + "/shell/plugins/panels/weather/status.sh") : ""]
|
||||
stdout: StdioCollector {
|
||||
waitForEnd: true
|
||||
onStreamFinished: root.updateWeather(text)
|
||||
|
||||
Executable
+10
@@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
icon=$(omarchy-weather-icon 2>/dev/null)
|
||||
|
||||
if [[ -n $icon ]]; then
|
||||
icon=$(printf '%s' "$icon" | sed 's/["\\]/\\&/g')
|
||||
printf '{"text":"%s"}\n' "$icon"
|
||||
else
|
||||
printf '{"text":"","class":"unavailable"}\n'
|
||||
fi
|
||||
Reference in New Issue
Block a user