From a10054db213de4738db7112904afeea352fd73c1 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Wed, 13 Aug 2025 16:25:26 +1000 Subject: config: add config for disabling smart scheme Closes #408 --- README.md | 3 ++- config/ServiceConfig.qml | 1 + services/Wallpapers.qml | 5 +++-- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index d836648..5ab4ab7 100644 --- a/README.md +++ b/README.md @@ -306,7 +306,8 @@ All configuration options are in `~/.config/caelestia/shell.json`. "audioIncrement": 0.1, "weatherLocation": "10,10", "useFahrenheit": false, - "useTwelveHourClock": false + "useTwelveHourClock": false, + "smartScheme": true }, "session": { "dragThreshold": 30, diff --git a/config/ServiceConfig.qml b/config/ServiceConfig.qml index 8348330..0411b1a 100644 --- a/config/ServiceConfig.qml +++ b/config/ServiceConfig.qml @@ -6,4 +6,5 @@ JsonObject { property bool useFahrenheit: [Locale.ImperialUSSystem, Locale.ImperialSystem].includes(Qt.locale().measurementSystem) property bool useTwelveHourClock: Qt.locale().timeFormat(Locale.ShortFormat).toLowerCase().includes("a") property real audioIncrement: 0.1 + property bool smartScheme: true } 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 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); -- cgit v1.2.3-freya