diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-01-18 19:02:42 +1100 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-01-18 19:02:42 +1100 |
| commit | 62ca5cb6dc3fdcfd6088fea0504858d61be15448 (patch) | |
| tree | ef7a79b01795ec0c2d6d224ccbdef757f576657d /completions/caelestia.fish | |
| parent | main: update help (diff) | |
| download | caelestia-cli-62ca5cb6dc3fdcfd6088fea0504858d61be15448.tar.gz caelestia-cli-62ca5cb6dc3fdcfd6088fea0504858d61be15448.tar.bz2 caelestia-cli-62ca5cb6dc3fdcfd6088fea0504858d61be15448.zip | |
fish completions
Diffstat (limited to 'completions/caelestia.fish')
| -rw-r--r-- | completions/caelestia.fish | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/completions/caelestia.fish b/completions/caelestia.fish new file mode 100644 index 0000000..93b6462 --- /dev/null +++ b/completions/caelestia.fish @@ -0,0 +1,66 @@ +set -l seen '__fish_seen_subcommand_from' +set -l has_opt '__fish_contains_opt' +set -l commands help shell toggle workspace-action scheme screenshot clipboard clipboard-delete emoji-picker wallpaper pip +set -l not_seen "not $seen $commands" + +# Disable file completions +complete -c caelestia -f + +# Subcommands +complete -c caelestia -n $not_seen -a 'help' -d 'Show help' +complete -c caelestia -n $not_seen -a 'shell' -d 'Start the shell or message it' +complete -c caelestia -n $not_seen -a 'toggle' -d 'Toggle a special workspace' +complete -c caelestia -n $not_seen -a 'workspace-action' -d 'Exec a dispatcher in the current group' +complete -c caelestia -n $not_seen -a 'scheme' -d 'Switch the current colour scheme' +complete -c caelestia -n $not_seen -a 'screenshot' -d 'Take a screenshot' +complete -c caelestia -n $not_seen -a 'clipboard' -d 'Open clipboard history' +complete -c caelestia -n $not_seen -a 'clipboard-delete' -d 'Delete from clipboard history' +complete -c caelestia -n $not_seen -a 'emoji-picker' -d 'Open the emoji picker' +complete -c caelestia -n $not_seen -a 'wallpaper' -d 'Change the wallpaper' +complete -c caelestia -n $not_seen -a 'pip' -d 'Picture in picture utilities' + +# Shell +set -l commands quit reload-css show brightness media +set -l not_seen "$seen shell && not $seen $commands" +complete -c caelestia -n $not_seen -a 'quit' -d 'Quit the shell' +complete -c caelestia -n $not_seen -a 'reload-css' -d 'Reload shell styles' +complete -c caelestia -n $not_seen -a 'show' -d 'Show a window' +complete -c caelestia -n $not_seen -a 'media' -d 'Media commands' +complete -c caelestia -n $not_seen -a 'brightness' -d 'Change brightness' + +set -l commands play-pause next previous stop +set -l not_seen "$seen shell && $seen media && not $seen $commands" +complete -c caelestia -n $not_seen -a 'play-pause' -d 'Play/pause media' +complete -c caelestia -n $not_seen -a 'next' -d 'Skip to next song' +complete -c caelestia -n $not_seen -a 'previous' -d 'Go to previous song' +complete -c caelestia -n $not_seen -a 'stop' -d 'Stop media' + +# Toggles +set -l commands communication music specialws sysmon +complete -c caelestia -n "$seen toggle && not $seen $commands" -a "$commands" + +# Workspace action +set -l commands workspace workspacegroup movetoworkspace movetoworkspacegroup +complete -c caelestia -n "$seen workspace-action && not $seen $commands" -a "$commands" + +# Scheme +set -l commands mocha macchiato frappe latte +complete -c caelestia -n "$seen scheme && not $seen $commands" -a "$commands" + +# Wallpaper +set -l not_seen "$seen wallpaper && not $has_opt -s h help && not $has_opt -s f file && not $has_opt -s d directory" +complete -c caelestia -n $not_seen -s 'h' -l 'help' -d 'Show help' +complete -c caelestia -n $not_seen -s 'f' -l 'file' -d 'The file to switch to' -r +complete -c caelestia -n $not_seen -s 'd' -l 'directory' -d 'The directory to select from' -r + +complete -c caelestia -n "$seen wallpaper && $has_opt -s f file" -F +complete -c caelestia -n "$seen wallpaper && $has_opt -s d directory" -F + +set -l not_seen "$seen wallpaper && $has_opt -s d directory && not $has_opt -s F no-filter && not $has_opt -s t threshold" +complete -c caelestia -n $not_seen -s 'F' -l 'no-filter' -d 'Do not filter by size' +complete -c caelestia -n $not_seen -s 't' -l 'threshold' -d 'The threshold to filter by' -r + +# Pip +set -l not_seen "$seen pip && not $has_opt -s h help && not $has_opt -s d daemon" +complete -c caelestia -n $not_seen -s 'h' -l 'help' -d 'Show help' +complete -c caelestia -n $not_seen -s 'd' -l 'daemon' -d 'Start in daemon mode' |