mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-23 02:12:08 +08:00
Add light completions
This commit is contained in:
parent
c111a65622
commit
082d4b5a7e
24
share/completions/light.fish
Normal file
24
share/completions/light.fish
Normal file
|
@ -0,0 +1,24 @@
|
|||
# Light is a program to control backlight controllers under GNU/Linux.
|
||||
# See: https://github.com/haikarainen/light
|
||||
|
||||
function __fish_print_light_controllers
|
||||
command light -L
|
||||
end
|
||||
|
||||
complete -c light -s h -d 'Print help and exit'
|
||||
complete -c light -s V -d 'Print version info and exit'
|
||||
complete -c light -s G -d 'Get value (default)'
|
||||
complete -c light -s S -x -d 'Set value'
|
||||
complete -c light -s A -x -d 'Add value'
|
||||
complete -c light -s U -x -d 'Subtract value'
|
||||
complete -c light -s L -d 'List controllers'
|
||||
complete -c light -s I -d 'Restore brightness'
|
||||
complete -c light -s O -d 'Save brightness'
|
||||
complete -c light -s b -d 'Brightness (default)'
|
||||
complete -c light -s m -d 'Maximum brightness'
|
||||
complete -c light -s c -d 'Minimum cap'
|
||||
complete -c light -s a -d 'Selects controller automatically (default)'
|
||||
complete -c light -s s -a '(__fish_print_light_controllers)' -x -d 'Specify controller to use'
|
||||
complete -c light -s p -d 'Interpret & output values in percent'
|
||||
complete -c light -s r -d 'Interpret & output values in raw mode'
|
||||
complete -c light -s v -x -d 'Sets the verbosity level' -a '0\tRead\ values 1\tRead\ values\ \&\ errors 2\tRead\ values,\ erros\ \&\ warnings 3\tRead\ values,\ errors,\ warnings\ \&\ notices'
|
Loading…
Reference in New Issue
Block a user