summaryrefslogtreecommitdiff
path: root/src/modules/launcher.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/launcher.tsx')
-rw-r--r--src/modules/launcher.tsx16
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",