diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-05-07 18:23:48 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-05-07 18:23:48 +1000 |
| commit | f4ffaf9d71aacee33964f3632900a70cf1151fc0 (patch) | |
| tree | 8d952de8c3fdc72a3053f5e8a0b30f4551cfc1fa /services | |
| parent | launcher: better fuzzy query (diff) | |
| download | caelestia-shell-f4ffaf9d71aacee33964f3632900a70cf1151fc0.tar.gz caelestia-shell-f4ffaf9d71aacee33964f3632900a70cf1151fc0.tar.bz2 caelestia-shell-f4ffaf9d71aacee33964f3632900a70cf1151fc0.zip | |
feat: launcher light/dark commands
Diffstat (limited to 'services')
| -rw-r--r-- | services/Colours.qml | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/services/Colours.qml b/services/Colours.qml index fd0d1f6..dfd2870 100644 --- a/services/Colours.qml +++ b/services/Colours.qml @@ -44,6 +44,15 @@ Singleton { } } + function setMode(mode: string): void { + setModeProc.command = ["caelestia", "scheme", "dynamic", "default", mode]; + setModeProc.startDetached(); + } + + Process { + id: setModeProc + } + FileView { path: `${StandardPaths.standardLocations(StandardPaths.GenericStateLocation)[0]}/caelestia/scheme/current-mode.txt` watchChanges: true |