From 2aa72accda39d3f525166f32dbe1777d2ead5857 Mon Sep 17 00:00:00 2001 From: Benjamin Palko Date: Tue, 23 Sep 2025 23:01:33 -0400 Subject: [PATCH] strip unused WallpaperService stuff --- services/WallpaperService.qml | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/services/WallpaperService.qml b/services/WallpaperService.qml index ea6bd0e..94adbbd 100644 --- a/services/WallpaperService.qml +++ b/services/WallpaperService.qml @@ -1,37 +1,13 @@ pragma Singleton import qs.config -import qs.utils import Quickshell import Quickshell.Io Singleton { id: root - property string directory: "~/Wallpapers/" - property alias files: properties.files property alias currentWallpaper: properties.currentWallpaper - property list fileTypes: ["jpg", "jpeg", "png"] - property string command: `find ${root.directory} -maxdepth 1 -type f` - - Process { - running: true - command: ["bash", "-c", `find ${root.directory} -maxdepth 1 -type f`] - stdout: StdioCollector { - onStreamFinished: { - root.files = this.text.split("\n"); - } - } - } - - DirectoryWatcher { - path: root.directory - fileFilter: ["jpg", "jpeg", "png"] - onCreated: path => root.files.push(path) - onDeleted: path => root.files.filter(file => file != path) - onMovedFrom: path => root.files.filter(file => file != path) - onMovedTo: path => path => root.files.push(path) - } FileView { path: `${Paths.cache}/wallpaper.json` @@ -46,7 +22,6 @@ Singleton { id: properties property url currentWallpaper: "" - property list files: [] } } }