Claude pog?

This commit is contained in:
2025-12-03 13:53:58 +01:00
parent 089a5f7a49
commit 8967e3a1f5
7 changed files with 179 additions and 8 deletions
+22 -2
View File
@@ -2,12 +2,32 @@ import Quickshell.Io
Process {
id: getGifsProcess
required property string gifFolder
property list<string> gifsList: []
command: ["sh", "-c", "$HOME/.config/quickshell/QtDesktopPet/Scripts/files.sh"]
command: ["find", gifFolder, "-type", "f", "-name", "*.gif"]
stdout: StdioCollector {
onStreamFinished: {
var gifs = this.text.trim().split("\n")
getGifsProcess.gifsList = gifs
if (gifs.length > 0 && gifs[0] !== "") {
getGifsProcess.gifsList = gifs
} else {
getGifsProcess.gifsList = []
}
}
}
function reload() {
// Clear current list and restart the process
gifsList = []
running = false
running = true
}
onGifFolderChanged: {
if (running) {
reload()
}
}
}