diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 1ae4b522e..d5c36c0a4 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -131,6 +131,7 @@ Improved prompts Completions ^^^^^^^^^^^ - Added completions for: +- Improved some completions Improved terminal support ^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/share/completions/brightnessctl.fish b/share/completions/brightnessctl.fish index 57d7a0b68..1d7ce55ee 100644 --- a/share/completions/brightnessctl.fish +++ b/share/completions/brightnessctl.fish @@ -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"