summaryrefslogtreecommitdiff
path: root/services/Wallpapers.qml
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--services/Wallpapers.qml45
1 files changed, 0 insertions, 45 deletions
diff --git a/services/Wallpapers.qml b/services/Wallpapers.qml
deleted file mode 100644
index 443b416..0000000
--- a/services/Wallpapers.qml
+++ /dev/null
@@ -1,45 +0,0 @@
-pragma Singleton
-
-import qs.config
-import qs.utils
-import Caelestia.Models
-import Quickshell
-import Quickshell.Io
-import QtQuick
-
-Searcher {
- id: root
-
- readonly property list<string> smartArg: Config.services.smartScheme ? [] : ["--no-smart"]
-
- property bool showPreview: false
- readonly property string current: Paths.wallpaper
-
- function setWallpaper(path: string): void {
- actualCurrent = path;
- Quickshell.execDetached(["caelestia", "wallpaper", "-f", path, ...smartArg]);
- }
-
- list: wallpapers.entries
- key: "relativePath"
- useFuzzy: Config.launcher.useFuzzy.wallpapers
- extraOpts: useFuzzy ? ({}) : ({
- forward: false
- })
-
- IpcHandler {
- target: "wallpaper"
-
- function get(): string {
- return root.actualCurrent;
- }
-
- function set(path: string): void {
- root.setWallpaper(path);
- }
-
- function list(): string {
- return root.list.map(w => w.path).join("\n");
- }
- }
-}