summaryrefslogtreecommitdiff
path: root/services/Wallpapers.qml
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-06-08 20:25:54 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-06-08 20:25:54 +1000
commitc214b3c5d6cf48ed719e9c13a4f5bda4dc7ad107 (patch)
treedd8078ebde032078ccab26f02350c0d7ae50bfb3 /services/Wallpapers.qml
parentcolours: fix switching (diff)
downloadcaelestia-shell-c214b3c5d6cf48ed719e9c13a4f5bda4dc7ad107.tar.gz
caelestia-shell-c214b3c5d6cf48ed719e9c13a4f5bda4dc7ad107.tar.bz2
caelestia-shell-c214b3c5d6cf48ed719e9c13a4f5bda4dc7ad107.zip
feat: add ipc commands for stuff
Diffstat (limited to 'services/Wallpapers.qml')
-rw-r--r--services/Wallpapers.qml18
1 files changed, 17 insertions, 1 deletions
diff --git a/services/Wallpapers.qml b/services/Wallpapers.qml
index 0b2efa0..4d7b179 100644
--- a/services/Wallpapers.qml
+++ b/services/Wallpapers.qml
@@ -51,6 +51,22 @@ Singleton {
reloadableId: "wallpapers"
+ 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");
+ }
+ }
+
FileView {
path: root.currentNamePath
watchChanges: true
@@ -76,7 +92,7 @@ Singleton {
property string path
- command: ["caelestia", "wallpaper", "-f", path]
+ command: ["caelestia", "wallpaper", "-Q", "-f", path]
}
Process {