diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-01-26 17:13:12 +1100 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-01-26 17:13:12 +1100 |
| commit | 91b53bfbbbe7cdf9918c48c71fed784281621649 (patch) | |
| tree | 3c61cd207e79a4d898fc4d54c8a9f3a03d7eaad4 /src/modules/launcher.tsx | |
| parent | launcher: fix windows mode (diff) | |
| download | caelestia-shell-91b53bfbbbe7cdf9918c48c71fed784281621649.tar.gz caelestia-shell-91b53bfbbbe7cdf9918c48c71fed784281621649.tar.bz2 caelestia-shell-91b53bfbbbe7cdf9918c48c71fed784281621649.zip | |
launcher: scheme subcommand
Diffstat (limited to 'src/modules/launcher.tsx')
| -rw-r--r-- | src/modules/launcher.tsx | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/modules/launcher.tsx b/src/modules/launcher.tsx index 5c820ff..e75f39f 100644 --- a/src/modules/launcher.tsx +++ b/src/modules/launcher.tsx @@ -473,6 +473,22 @@ const Results = ({ entry, mode }: { entry: Widget.Entry; mode: Variable<Mode> }) description: "Manage open windows", command: () => mode.set("windows"), }, + scheme: { + icon: "palette", + name: "Scheme", + description: "Change the current colour scheme", + command: (...args) => { + // If no args, autocomplete cmd + if (args.length === 0) { + entry.set_text(">scheme "); + entry.set_position(-1); + return true; + } + + execAsync(`caelestia scheme ${args[0]}`).catch(console.error); + close(self); + }, + }, todo: { icon: "checklist", name: "Todo", |