diff --git a/modules/wp/WallpaperPicker.qml b/modules/wp/WallpaperPicker.qml index 288302e..67fc38f 100644 --- a/modules/wp/WallpaperPicker.qml +++ b/modules/wp/WallpaperPicker.qml @@ -103,7 +103,6 @@ PanelWindow { Process { id: wallpaperProcess command: ["sh", "-c", Quickshell.env("HOME") + "/.config/quickshell/modules/wp/set-wallpaper.sh" + " " + model.filePath + " &"] - command: ["sh", "-c", Quickshell.env("HOME") + "/.config/quickshell/modules/wp/set-wallpaper.sh" + " " + model.filePath + " &"] stdout: StdioCollector { onStreamFinished: console.log(`line read: ${this.text}`) } diff --git a/modules/wp/generate-wallpaper-thumbs.sh b/modules/wp/generate-wallpaper-thumbs.sh index 6fe3b83..32c70a4 100755 --- a/modules/wp/generate-wallpaper-thumbs.sh +++ b/modules/wp/generate-wallpaper-thumbs.sh @@ -37,13 +37,4 @@ for img in "$WALLPAPER_DIR"/*.{jpg,jpeg,png}; do magick "$img" -resize "${MAX_DIM}x${MAX_DIM}" "$thumb" done -echo "Thumbnails generated in $THUMB_DIR" - -Process { - id: generateThumbs - command: ["sh", "-c", Quickshell.env("HOME") + "/.config/quickshell/modules/wp/generate-wallpaper-thumbs.sh" + " " + model.filePath + " &"] - stdout: StdioCollector { - onStreamFinished: console.log(`line read: ${this.text}`) - } -} -generateThumbs.startDetached() \ No newline at end of file +echo "Thumbnails generated in $THUMB_DIR" \ No newline at end of file