summaryrefslogtreecommitdiff
path: root/services/Wallpapers.qml
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2026-01-08 17:00:30 -0500
committerFreya Murphy <freya@freyacat.org>2026-01-08 17:00:30 -0500
commit1e258986aedae45f6046731840a38613997861a8 (patch)
tree97bc34be43c96ddf3251ad98f0bab7ec664dab28 /services/Wallpapers.qml
parentremove pfp (diff)
downloadcaelestia-shell-1e258986aedae45f6046731840a38613997861a8.tar.gz
caelestia-shell-1e258986aedae45f6046731840a38613997861a8.tar.bz2
caelestia-shell-1e258986aedae45f6046731840a38613997861a8.zip
hardcode single wallpaper
Diffstat (limited to 'services/Wallpapers.qml')
-rw-r--r--services/Wallpapers.qml50
1 files changed, 1 insertions, 49 deletions
diff --git a/services/Wallpapers.qml b/services/Wallpapers.qml
index cb96bc5..443b416 100644
--- a/services/Wallpapers.qml
+++ b/services/Wallpapers.qml
@@ -10,34 +10,16 @@ import QtQuick
Searcher {
id: root
- readonly property string currentNamePath: `${Paths.state}/wallpaper/path.txt`
readonly property list<string> smartArg: Config.services.smartScheme ? [] : ["--no-smart"]
property bool showPreview: false
- readonly property string current: showPreview ? previewPath : actualCurrent
- property string previewPath
- property string actualCurrent
- property bool previewColourLock
+ readonly property string current: Paths.wallpaper
function setWallpaper(path: string): void {
actualCurrent = path;
Quickshell.execDetached(["caelestia", "wallpaper", "-f", path, ...smartArg]);
}
- function preview(path: string): void {
- previewPath = path;
- showPreview = true;
-
- if (Colours.scheme === "dynamic")
- getPreviewColoursProc.running = true;
- }
-
- function stopPreview(): void {
- showPreview = false;
- if (!previewColourLock)
- Colours.showPreview = false;
- }
-
list: wallpapers.entries
key: "relativePath"
useFuzzy: Config.launcher.useFuzzy.wallpapers
@@ -60,34 +42,4 @@ Searcher {
return root.list.map(w => w.path).join("\n");
}
}
-
- FileView {
- path: root.currentNamePath
- watchChanges: true
- onFileChanged: reload()
- onLoaded: {
- root.actualCurrent = text().trim();
- root.previewColourLock = false;
- }
- }
-
- FileSystemModel {
- id: wallpapers
-
- recursive: true
- path: Paths.wallsdir
- filter: FileSystemModel.Images
- }
-
- Process {
- id: getPreviewColoursProc
-
- command: ["caelestia", "wallpaper", "-p", root.previewPath, ...root.smartArg]
- stdout: StdioCollector {
- onStreamFinished: {
- Colours.load(text, true);
- Colours.showPreview = true;
- }
- }
- }
}