summaryrefslogtreecommitdiff
path: root/completions
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-05-05 13:36:01 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-05-05 13:36:01 +1000
commit7fa09fa52f180192979344329c06ca6436213273 (patch)
tree6f0021a05598f9aab4ffa3e73f3a38bdfb6da59a /completions
parentscheme: migrate to material (diff)
downloadcaelestia-cli-7fa09fa52f180192979344329c06ca6436213273.tar.gz
caelestia-cli-7fa09fa52f180192979344329c06ca6436213273.tar.bz2
caelestia-cli-7fa09fa52f180192979344329c06ca6436213273.zip
feat: print scheme command
Generates and prints a scheme for an image (or the current wallpaper if not given) Also record use hevc codec
Diffstat (limited to 'completions')
-rw-r--r--completions/caelestia.fish20
1 files changed, 11 insertions, 9 deletions
diff --git a/completions/caelestia.fish b/completions/caelestia.fish
index 90f3314..1a6a065 100644
--- a/completions/caelestia.fish
+++ b/completions/caelestia.fish
@@ -45,34 +45,36 @@ complete -c caelestia -n $not_seen -a 'stop' -d 'Stop media'
# Toggles
set -l commands communication music specialws sysmon todo
-complete -c caelestia -n "$seen toggle && not $seen $commands" -a "$commands"
+complete -c caelestia -n "$seen toggle && not $seen $commands" -a "$commands" -d 'toggle'
# Workspace action
set -l commands workspace workspacegroup movetoworkspace movetoworkspacegroup
-complete -c caelestia -n "$seen workspace-action && not $seen $commands" -a "$commands"
+complete -c caelestia -n "$seen workspace-action && not $seen $commands" -a "$commands" -d 'action'
# Scheme
set -q XDG_DATA_HOME && set -l data_dir $XDG_DATA_HOME || set -l data_dir $HOME/.local/share
set -l scheme_dir $data_dir/caelestia/scripts/data/schemes
-set -l commands (basename -a (find $scheme_dir/ -mindepth 1 -maxdepth 1 -type d))
-complete -c caelestia -n "$seen scheme && not $seen $commands" -a "$commands"
-for scheme in $commands
+set -l schemes (basename -a (find $scheme_dir/ -mindepth 1 -maxdepth 1 -type d))
+set -l commands 'print' $schemes
+complete -c caelestia -n "$seen scheme && not $seen $commands" -a 'print' -d 'Generate and print a colour scheme for an image'
+complete -c caelestia -n "$seen scheme && not $seen $commands" -a "$schemes" -d 'scheme'
+for scheme in $schemes
set -l flavours (basename -a (find $scheme_dir/$scheme/ -mindepth 1 -maxdepth 1 -type d) 2> /dev/null)
set -l modes (basename -s .txt (find $scheme_dir/$scheme/ -mindepth 1 -maxdepth 1 -type f) 2> /dev/null)
if test -n "$modes"
- complete -c caelestia -n "$seen scheme && $seen $scheme && not $seen $modes" -a "$modes"
+ complete -c caelestia -n "$seen scheme && $seen $scheme && not $seen $modes" -a "$modes" -d 'mode'
else
- complete -c caelestia -n "$seen scheme && $seen $scheme && not $seen $flavours" -a "$flavours"
+ complete -c caelestia -n "$seen scheme && $seen $scheme && not $seen $flavours" -a "$flavours" -d 'flavour'
for flavour in $flavours
set -l modes (basename -s .txt (find $scheme_dir/$scheme/$flavour/ -mindepth 1 -maxdepth 1 -type f))
- complete -c caelestia -n "$seen scheme && $seen $scheme && $seen $flavour && not $seen $modes" -a "$modes"
+ complete -c caelestia -n "$seen scheme && $seen $scheme && $seen $flavour && not $seen $modes" -a "$modes" -d 'mode'
end
end
end
# Variant
set -l commands vibrant tonalspot expressive fidelity fruitsalad rainbow neutral content monochrome
-complete -c caelestia -n "$seen variant && not $seen $commands" -a "$commands"
+complete -c caelestia -n "$seen variant && not $seen $commands" -a "$commands" -d 'variant'
# Record
set -l not_seen "$seen record && not $has_opt -s h help"