mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-30 22:34:29 +08:00
25 lines
1.2 KiB
Fish
25 lines
1.2 KiB
Fish
# 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'
|