diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-08-13 16:25:26 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-08-13 16:25:26 +1000 |
| commit | a10054db213de4738db7112904afeea352fd73c1 (patch) | |
| tree | 08fb44dbe74c7807a0a426115955248f3a8ae468 /services | |
| parent | ci: fix diff check (diff) | |
| download | caelestia-shell-a10054db213de4738db7112904afeea352fd73c1.tar.gz caelestia-shell-a10054db213de4738db7112904afeea352fd73c1.tar.bz2 caelestia-shell-a10054db213de4738db7112904afeea352fd73c1.zip | |
config: add config for disabling smart scheme
Closes #408
Diffstat (limited to 'services')
| -rw-r--r-- | services/Wallpapers.qml | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/services/Wallpapers.qml b/services/Wallpapers.qml index 5ebcbab..7cfe7cb 100644 --- a/services/Wallpapers.qml +++ b/services/Wallpapers.qml @@ -10,6 +10,7 @@ Searcher { id: root readonly property string currentNamePath: Paths.strip(`${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 @@ -19,7 +20,7 @@ Searcher { function setWallpaper(path: string): void { actualCurrent = path; - Quickshell.execDetached(["caelestia", "wallpaper", "-f", path]); + Quickshell.execDetached(["caelestia", "wallpaper", "-f", path, ...smartArg]); } function preview(path: string): void { @@ -73,7 +74,7 @@ Searcher { Process { id: getPreviewColoursProc - command: ["caelestia", "wallpaper", "-p", root.previewPath] + command: ["caelestia", "wallpaper", "-p", root.previewPath, ...root.smartArg] stdout: StdioCollector { onStreamFinished: { Colours.load(text, true); |