feat: launcher light/dark commands
This commit is contained in:
parent
9b958a8e10
commit
f4ffaf9d71
2 changed files with 12 additions and 2 deletions
|
|
@ -1,6 +1,7 @@
|
||||||
pragma Singleton
|
pragma Singleton
|
||||||
|
|
||||||
import "root:/utils/scripts/fuzzysort.js" as Fuzzy
|
import "root:/utils/scripts/fuzzysort.js" as Fuzzy
|
||||||
|
import "root:/services"
|
||||||
import "root:/config"
|
import "root:/config"
|
||||||
import Quickshell
|
import Quickshell
|
||||||
import Quickshell.Io
|
import Quickshell.Io
|
||||||
|
|
@ -53,7 +54,7 @@ Singleton {
|
||||||
|
|
||||||
function onClicked(list: AppList): void {
|
function onClicked(list: AppList): void {
|
||||||
list.launcher.launcherVisible = false;
|
list.launcher.launcherVisible = false;
|
||||||
// TODO
|
Colours.setMode("light");
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
Action {
|
Action {
|
||||||
|
|
@ -63,7 +64,7 @@ Singleton {
|
||||||
|
|
||||||
function onClicked(list: AppList): void {
|
function onClicked(list: AppList): void {
|
||||||
list.launcher.launcherVisible = false;
|
list.launcher.launcherVisible = false;
|
||||||
// TODO
|
Colours.setMode("dark");
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
Action {
|
Action {
|
||||||
|
|
|
||||||
|
|
@ -44,6 +44,15 @@ Singleton {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function setMode(mode: string): void {
|
||||||
|
setModeProc.command = ["caelestia", "scheme", "dynamic", "default", mode];
|
||||||
|
setModeProc.startDetached();
|
||||||
|
}
|
||||||
|
|
||||||
|
Process {
|
||||||
|
id: setModeProc
|
||||||
|
}
|
||||||
|
|
||||||
FileView {
|
FileView {
|
||||||
path: `${StandardPaths.standardLocations(StandardPaths.GenericStateLocation)[0]}/caelestia/scheme/current-mode.txt`
|
path: `${StandardPaths.standardLocations(StandardPaths.GenericStateLocation)[0]}/caelestia/scheme/current-mode.txt`
|
||||||
watchChanges: true
|
watchChanges: true
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue