diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-01-18 20:01:08 +1100 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-01-18 20:01:08 +1100 |
| commit | 8235701a66de2d81f74a700b9bb117910789628c (patch) | |
| tree | f0cd349077d87b9ba906279d073bd4f00e4f6bc5 /completions | |
| parent | fish completions (diff) | |
| download | caelestia-cli-8235701a66de2d81f74a700b9bb117910789628c.tar.gz caelestia-cli-8235701a66de2d81f74a700b9bb117910789628c.tar.bz2 caelestia-cli-8235701a66de2d81f74a700b9bb117910789628c.zip | |
record script
Diffstat (limited to 'completions')
| -rw-r--r-- | completions/caelestia.fish | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/completions/caelestia.fish b/completions/caelestia.fish index 93b6462..060d54d 100644 --- a/completions/caelestia.fish +++ b/completions/caelestia.fish @@ -1,6 +1,6 @@ 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 commands help shell toggle workspace-action scheme screenshot record clipboard clipboard-delete emoji-picker wallpaper pip set -l not_seen "not $seen $commands" # Disable file completions @@ -13,6 +13,7 @@ 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 'record' -d 'Take a screen recording' 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' @@ -47,6 +48,15 @@ complete -c caelestia -n "$seen workspace-action && not $seen $commands" -a "$co set -l commands mocha macchiato frappe latte complete -c caelestia -n "$seen scheme && not $seen $commands" -a "$commands" +# Record +set -l not_seen "$seen record && not $has_opt -s h help" +complete -c caelestia -n "$not_seen && not $has_opt -s s sound && not $has_opt -s r region && not $has_opt -s c compression && not $has_opt -s H hwaccel" \ + -s 'h' -l 'help' -d 'Show help' +complete -c caelestia -n "$not_seen && not $has_opt -s s sound" -s 's' -l 'sound' -d 'Capture sound' +complete -c caelestia -n "$not_seen && not $has_opt -s r region" -s 'r' -l 'region' -d 'Capture region' +complete -c caelestia -n "$not_seen && not $has_opt -s c compression" -s 'c' -l 'compression' -d 'Compression level of file' -r +complete -c caelestia -n "$not_seen && not $has_opt -s H hwaccel" -s 'H' -l 'hwaccel' -d 'Use hardware acceleration' + # 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' |