Added Thumbnailing to wallpaper picker

This commit is contained in:
Hannes
2026-02-12 21:09:56 +01:00
parent 19f74f2865
commit 5d2784ecb4
4 changed files with 98 additions and 14 deletions
+15
View File
@@ -2,9 +2,22 @@ import QtQuick
import Quickshell
import Quickshell.Hyprland
import QtQuick.Controls
import Quickshell.Io
import Qt.labs.folderlistmodel
Item { // container, invisible
id: wLoader
Process {
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}`)
}
}
Loader {
id: wallpaperLoader
active: false
@@ -14,7 +27,9 @@ Item { // container, invisible
GlobalShortcut {
name: "Wallpaper"
description: "Open wallpaper picker"
onPressed: {
generateThumbs.startDetached()
wallpaperLoader.active = !wallpaperLoader.active
console.log("Pressed Meta+Shift+W (Hyprland global shortcut)")
}