Added Network icon to bar and rework some of the debug prints
This commit is contained in:
@@ -104,7 +104,7 @@ PanelWindow {
|
||||
id: wallpaperProcess
|
||||
command: ["sh", "-c", Quickshell.env("HOME") + "/.config/quickshell/modules/wp/set-wallpaper.sh" + " " + model.filePath + " &"]
|
||||
stdout: StdioCollector {
|
||||
onStreamFinished: console.log(`line read: ${this.text}`)
|
||||
onStreamFinished: console.log('line read:', this.text)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ Item { // container, invisible
|
||||
id: generateThumbs
|
||||
command: ["sh", "-c", Quickshell.env("HOME") + "/.config/quickshell/modules/wp/generate-wallpaper-thumbs.sh"]
|
||||
stdout: StdioCollector {
|
||||
onStreamFinished: console.log(`line read: ${this.text}`)
|
||||
onStreamFinished: console.log(this.text)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -26,7 +26,8 @@ Item { // container, invisible
|
||||
description: "Open wallpaper picker"
|
||||
|
||||
onPressed: {
|
||||
generateThumbs.startDetached()
|
||||
// generateThumbs.startDetached()
|
||||
generateThumbs.running = true
|
||||
wallpaperLoader.active = !wallpaperLoader.active
|
||||
console.log("Pressed Meta+Shift+W (Hyprland global shortcut)")
|
||||
}
|
||||
|
||||
@@ -17,6 +17,8 @@ mkdir -p "$THUMB_DIR"
|
||||
# Max width/height of the thumbnails
|
||||
MAX_DIM=300
|
||||
|
||||
num=0
|
||||
|
||||
# Process each image
|
||||
for img in "$WALLPAPER_DIR"/*.{jpg,jpeg,png}; do
|
||||
# Skip if no files match
|
||||
@@ -33,8 +35,10 @@ for img in "$WALLPAPER_DIR"/*.{jpg,jpeg,png}; do
|
||||
continue
|
||||
fi
|
||||
|
||||
num+=1
|
||||
|
||||
# Generate thumbnail using ImageMagick
|
||||
magick "$img" -resize "${MAX_DIM}x${MAX_DIM}" "$thumb"
|
||||
done
|
||||
|
||||
echo "Thumbnails generated in $THUMB_DIR"
|
||||
echo "$num Thumbnails generated in $THUMB_DIR"
|
||||
@@ -53,6 +53,12 @@ if [ ! -d $static_wallpaper_dir ]; then
|
||||
mkdir -p $static_wallpaper_dir;
|
||||
fi
|
||||
|
||||
current_wallpaper="$static_wallpaper_dir/current"
|
||||
|
||||
echo "$image" > $current_wallpaper
|
||||
|
||||
blurred_wp="$static_wallpaper_dir/blurred.jpg"
|
||||
|
||||
magick $image -blur $blur $blurred_wp
|
||||
|
||||
echo "test"
|
||||
|
||||
Reference in New Issue
Block a user