diff options
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 |