summaryrefslogtreecommitdiff
path: root/services/Colours.qml
diff options
context:
space:
mode:
Diffstat (limited to 'services/Colours.qml')
-rw-r--r--services/Colours.qml9
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