mirror of
https://github.com/caelestia-dots/cli.git
synced 2026-06-05 14:59:29 -05:00
feat: up to 3 options for dynamic scheme
Have up to 3 options for base colour for dynamic scheme Variants moved to new command Also remove parallel dependency
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
set -l seen '__fish_seen_subcommand_from'
|
||||
set -l has_opt '__fish_contains_opt'
|
||||
set -l commands help install shell toggle workspace-action scheme screenshot record clipboard clipboard-delete emoji-picker wallpaper pip
|
||||
set -l commands help install shell toggle workspace-action scheme variant 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 '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 'variant' -d 'Switch the current scheme variant'
|
||||
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'
|
||||
@@ -69,6 +70,10 @@ for scheme in $commands
|
||||
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"
|
||||
|
||||
# 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" \
|
||||
|
||||
Reference in New Issue
Block a user