From f4ffaf9d71aacee33964f3632900a70cf1151fc0 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Wed, 7 May 2025 18:23:48 +1000 Subject: feat: launcher light/dark commands --- services/Colours.qml | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'services') 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 -- cgit v1.2.3-freya