summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-01-18 17:44:58 +1100
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-01-18 17:44:58 +1100
commiteec7f69257a3d9570ec3ecf8b2e1750a49a2a3ff (patch)
tree51d74515e557601c5558b7a0d1da23752131d75b
parentchange-wallpaper -> wallpaper (diff)
downloadcaelestia-cli-eec7f69257a3d9570ec3ecf8b2e1750a49a2a3ff.tar.gz
caelestia-cli-eec7f69257a3d9570ec3ecf8b2e1750a49a2a3ff.tar.bz2
caelestia-cli-eec7f69257a3d9570ec3ecf8b2e1750a49a2a3ff.zip
main: set scheme + correct exit status
-rwxr-xr-xmain.fish10
1 files changed, 10 insertions, 0 deletions
diff --git a/main.fish b/main.fish
index 07f3105..87962c2 100755
--- a/main.fish
+++ b/main.fish
@@ -31,6 +31,12 @@ if test "$argv[1]" = workspace-action
exit
end
+if test "$argv[1]" = scheme
+ set -l valid_schemes mocha macchiato frappe latte
+ contains "$argv[2]" $valid_schemes && echo -n $argv[2] > $CACHE/scheme/current.txt || error "Invalid scheme: $argv[2]"
+ exit
+end
+
set valid_subcommands screenshot workspace-action \
clipboard clipboard-delete emoji-picker \
wallpaper pip
@@ -52,3 +58,7 @@ echo ' screenshot: take a screenshot'
echo ' workspace-action: execute a Hyprland workspace dispatcher in the current group'
echo ' change-wallpaper: change the wallpaper'
echo ' pip: move the focused window into picture in picture mode or start the pip daemon'
+
+# Set exit status
+test "$argv[1]" = help
+exit