mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 13:23:09 +00:00
complete brightnessctl flags
This commit is contained in:
parent
13b5322bef
commit
90cffb18a1
2 changed files with 18 additions and 2 deletions
|
@ -131,6 +131,7 @@ Improved prompts
|
|||
Completions
|
||||
^^^^^^^^^^^
|
||||
- Added completions for:
|
||||
- Improved some completions
|
||||
|
||||
Improved terminal support
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
|
@ -1,3 +1,18 @@
|
|||
complete -f brightnessctl
|
||||
complete -c brightnessctl -n "test (__fish_number_of_cmd_args_wo_opts) = 1" \
|
||||
-xa "info get set max"
|
||||
complete -c brightnessctl -n "test (__fish_number_of_cmd_args_wo_opts) = 1" -a "info" -d "Get device info"
|
||||
complete -c brightnessctl -n "test (__fish_number_of_cmd_args_wo_opts) = 1" -a "get" -d "Get current brightness of device"
|
||||
complete -c brightnessctl -n "test (__fish_number_of_cmd_args_wo_opts) = 1" -a "set" -d "Get maximum brightness of device"
|
||||
complete -c brightnessctl -n "test (__fish_number_of_cmd_args_wo_opts) = 1" -a "max" -d "Set brightness of device"
|
||||
|
||||
complete -c brightnessctl -s h -l help -d "Print help and exit"
|
||||
complete -c brightnessctl -s l -l list -d "List devices with available brightness controls"
|
||||
complete -c brightnessctl -s q -l quiet -d "Supress output"
|
||||
complete -c brightnessctl -s p -l pretend -d "Do not perform write operations"
|
||||
complete -c brightnessctl -s m -l machine-readable -d "Produce machine-readable output"
|
||||
complete -c brightnessctl -s n -l min-value -x -d "Set minimum brightness when using delta values"
|
||||
complete -c brightnessctl -s e -l exponent -x -d "Set exponent for exponential scaling curve"
|
||||
complete -c brightnessctl -s s -l save -d "Save state in a temporary file"
|
||||
complete -c brightnessctl -s r -l restore -d "Restore previously-saved state"
|
||||
complete -c brightnessctl -s d -l device -xa '(brightnessctl -lm | string replace -rf "([^,]*).*" \'$1\')' -d "Device Name"
|
||||
complete -c brightnessctl -s c -l class -xa "backlight leds" -d "Specify device class"
|
||||
complete -c brightnessctl -s v -l version -x -d "Print version and exit"
|
||||
|
|
Loading…
Reference in a new issue