diff --git a/support/shell/completions/en_US/eruptionctl.bash-completion b/support/shell/completions/en_US/eruptionctl.bash-completion index c6c0c2e49..12a6cffc4 100644 --- a/support/shell/completions/en_US/eruptionctl.bash-completion +++ b/support/shell/completions/en_US/eruptionctl.bash-completion @@ -13,6 +13,9 @@ _eruptionctl() { cmd="eruptionctl" ;; + angle-snapping) + cmd+="__angle__snapping" + ;; bash) cmd+="__bash" ;; @@ -25,6 +28,18 @@ _eruptionctl() { config) cmd+="__config" ;; + debounce) + cmd+="__debounce" + ;; + devices) + cmd+="__devices" + ;; + distance) + cmd+="__distance" + ;; + dpi) + cmd+="__dpi" + ;; edit) cmd+="__edit" ;; @@ -89,7 +104,7 @@ _eruptionctl() { case "${cmd}" in eruptionctl) - opts=" -v -c -h -V --verbose --config --help --version config status switch profiles names scripts param completions help" + opts=" -v -c -h -V --verbose --config --help --version config devices status switch profiles names scripts param completions help" if [[ ${cur} == -* || ${COMP_CWORD} -eq 1 ]] ; then COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) return 0 @@ -247,6 +262,126 @@ _eruptionctl() { COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) return 0 ;; + eruptionctl__devices) + opts=" -h -V --help --version list info dpi distance angle-snapping debounce brightness" + if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + eruptionctl__devices__angle__snapping) + opts=" -h -V --help --version " + if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + eruptionctl__devices__brightness) + opts=" -h -V --help --version " + if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + eruptionctl__devices__debounce) + opts=" -h -V --help --version " + if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + eruptionctl__devices__distance) + opts=" -h -V --help --version " + if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + eruptionctl__devices__dpi) + opts=" -h -V --help --version " + if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + eruptionctl__devices__info) + opts=" -h -V --help --version " + if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + eruptionctl__devices__list) + opts=" -h -V --help --version " + if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; eruptionctl__help) opts=" -h -V --help --version " if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then diff --git a/support/shell/completions/en_US/eruptionctl.elvish-completion b/support/shell/completions/en_US/eruptionctl.elvish-completion index 2e4fa3d87..f34f98890 100644 --- a/support/shell/completions/en_US/eruptionctl.elvish-completion +++ b/support/shell/completions/en_US/eruptionctl.elvish-completion @@ -24,6 +24,7 @@ edit:completion:arg-completer[eruptionctl] = [@words]{ cand -V 'Prints version information' cand --version 'Prints version information' cand config 'Configuration related sub-commands' + cand devices 'Get or set some device specific configuration parameters' cand status 'Shows the currently active profile or slot' cand switch 'Switch to a different profile or slot' cand profiles 'Profile related sub-commands' @@ -38,7 +39,7 @@ edit:completion:arg-completer[eruptionctl] = [@words]{ cand --help 'Prints help information' cand -V 'Prints version information' cand --version 'Prints version information' - cand brightness 'Get or set the brightness of the LEDs' + cand brightness 'Get or set the global brightness of the LEDs' cand soundfx 'Get or set the state of SoundFX' } &'eruptionctl;config;brightness'= { @@ -53,6 +54,61 @@ edit:completion:arg-completer[eruptionctl] = [@words]{ cand -V 'Prints version information' cand --version 'Prints version information' } + &'eruptionctl;devices'= { + cand -h 'Prints help information' + cand --help 'Prints help information' + cand -V 'Prints version information' + cand --version 'Prints version information' + cand list 'List connected devices and their indices (run this first)' + cand info 'Get information about a specific device' + cand dpi 'Get or set the DPI parameter (applicable for some mice)' + cand distance 'Get or set the DCU parameter (applicable for some mice)' + cand angle-snapping 'Get or set the angle-snapping parameter (applicable for some mice)' + cand debounce 'Get or set the debounce parameter (applicable for some mice)' + cand brightness 'Get or set the device specific brightness of the LEDs' + } + &'eruptionctl;devices;list'= { + cand -h 'Prints help information' + cand --help 'Prints help information' + cand -V 'Prints version information' + cand --version 'Prints version information' + } + &'eruptionctl;devices;info'= { + cand -h 'Prints help information' + cand --help 'Prints help information' + cand -V 'Prints version information' + cand --version 'Prints version information' + } + &'eruptionctl;devices;dpi'= { + cand -h 'Prints help information' + cand --help 'Prints help information' + cand -V 'Prints version information' + cand --version 'Prints version information' + } + &'eruptionctl;devices;distance'= { + cand -h 'Prints help information' + cand --help 'Prints help information' + cand -V 'Prints version information' + cand --version 'Prints version information' + } + &'eruptionctl;devices;angle-snapping'= { + cand -h 'Prints help information' + cand --help 'Prints help information' + cand -V 'Prints version information' + cand --version 'Prints version information' + } + &'eruptionctl;devices;debounce'= { + cand -h 'Prints help information' + cand --help 'Prints help information' + cand -V 'Prints version information' + cand --version 'Prints version information' + } + &'eruptionctl;devices;brightness'= { + cand -h 'Prints help information' + cand --help 'Prints help information' + cand -V 'Prints version information' + cand --version 'Prints version information' + } &'eruptionctl;status'= { cand -h 'Prints help information' cand --help 'Prints help information' diff --git a/support/shell/completions/en_US/eruptionctl.fish-completion b/support/shell/completions/en_US/eruptionctl.fish-completion index 628a2c640..1e1cf3611 100644 --- a/support/shell/completions/en_US/eruptionctl.fish-completion +++ b/support/shell/completions/en_US/eruptionctl.fish-completion @@ -3,6 +3,7 @@ complete -c eruptionctl -n "__fish_use_subcommand" -s v -l verbose -d 'Verbose m complete -c eruptionctl -n "__fish_use_subcommand" -s h -l help -d 'Prints help information' complete -c eruptionctl -n "__fish_use_subcommand" -s V -l version -d 'Prints version information' complete -c eruptionctl -n "__fish_use_subcommand" -f -a "config" -d 'Configuration related sub-commands' +complete -c eruptionctl -n "__fish_use_subcommand" -f -a "devices" -d 'Get or set some device specific configuration parameters' complete -c eruptionctl -n "__fish_use_subcommand" -f -a "status" -d 'Shows the currently active profile or slot' complete -c eruptionctl -n "__fish_use_subcommand" -f -a "switch" -d 'Switch to a different profile or slot' complete -c eruptionctl -n "__fish_use_subcommand" -f -a "profiles" -d 'Profile related sub-commands' @@ -13,7 +14,7 @@ complete -c eruptionctl -n "__fish_use_subcommand" -f -a "completions" -d 'Gener complete -c eruptionctl -n "__fish_use_subcommand" -f -a "help" -d 'Prints this message or the help of the given subcommand(s)' complete -c eruptionctl -n "__fish_seen_subcommand_from config" -s h -l help -d 'Prints help information' complete -c eruptionctl -n "__fish_seen_subcommand_from config" -s V -l version -d 'Prints version information' -complete -c eruptionctl -n "__fish_seen_subcommand_from config" -f -a "brightness" -d 'Get or set the brightness of the LEDs' +complete -c eruptionctl -n "__fish_seen_subcommand_from config" -f -a "brightness" -d 'Get or set the global brightness of the LEDs' complete -c eruptionctl -n "__fish_seen_subcommand_from config" -f -a "soundfx" -d 'Get or set the state of SoundFX' complete -c eruptionctl -n "__fish_seen_subcommand_from brightness" -r complete -c eruptionctl -n "__fish_seen_subcommand_from brightness" -s h -l help -d 'Prints help information' @@ -21,6 +22,40 @@ complete -c eruptionctl -n "__fish_seen_subcommand_from brightness" -s V -l vers complete -c eruptionctl -n "__fish_seen_subcommand_from soundfx" -r complete -c eruptionctl -n "__fish_seen_subcommand_from soundfx" -s h -l help -d 'Prints help information' complete -c eruptionctl -n "__fish_seen_subcommand_from soundfx" -s V -l version -d 'Prints version information' +complete -c eruptionctl -n "__fish_seen_subcommand_from devices" -s h -l help -d 'Prints help information' +complete -c eruptionctl -n "__fish_seen_subcommand_from devices" -s V -l version -d 'Prints version information' +complete -c eruptionctl -n "__fish_seen_subcommand_from devices" -f -a "list" -d 'List connected devices and their indices (run this first)' +complete -c eruptionctl -n "__fish_seen_subcommand_from devices" -f -a "info" -d 'Get information about a specific device' +complete -c eruptionctl -n "__fish_seen_subcommand_from devices" -f -a "dpi" -d 'Get or set the DPI parameter (applicable for some mice)' +complete -c eruptionctl -n "__fish_seen_subcommand_from devices" -f -a "distance" -d 'Get or set the DCU parameter (applicable for some mice)' +complete -c eruptionctl -n "__fish_seen_subcommand_from devices" -f -a "angle-snapping" -d 'Get or set the angle-snapping parameter (applicable for some mice)' +complete -c eruptionctl -n "__fish_seen_subcommand_from devices" -f -a "debounce" -d 'Get or set the debounce parameter (applicable for some mice)' +complete -c eruptionctl -n "__fish_seen_subcommand_from devices" -f -a "brightness" -d 'Get or set the device specific brightness of the LEDs' +complete -c eruptionctl -n "__fish_seen_subcommand_from list" -s h -l help -d 'Prints help information' +complete -c eruptionctl -n "__fish_seen_subcommand_from list" -s V -l version -d 'Prints version information' +complete -c eruptionctl -n "__fish_seen_subcommand_from info" -r +complete -c eruptionctl -n "__fish_seen_subcommand_from info" -s h -l help -d 'Prints help information' +complete -c eruptionctl -n "__fish_seen_subcommand_from info" -s V -l version -d 'Prints version information' +complete -c eruptionctl -n "__fish_seen_subcommand_from dpi" -r +complete -c eruptionctl -n "__fish_seen_subcommand_from dpi" -r +complete -c eruptionctl -n "__fish_seen_subcommand_from dpi" -s h -l help -d 'Prints help information' +complete -c eruptionctl -n "__fish_seen_subcommand_from dpi" -s V -l version -d 'Prints version information' +complete -c eruptionctl -n "__fish_seen_subcommand_from distance" -r +complete -c eruptionctl -n "__fish_seen_subcommand_from distance" -r +complete -c eruptionctl -n "__fish_seen_subcommand_from distance" -s h -l help -d 'Prints help information' +complete -c eruptionctl -n "__fish_seen_subcommand_from distance" -s V -l version -d 'Prints version information' +complete -c eruptionctl -n "__fish_seen_subcommand_from angle-snapping" -r +complete -c eruptionctl -n "__fish_seen_subcommand_from angle-snapping" -r +complete -c eruptionctl -n "__fish_seen_subcommand_from angle-snapping" -s h -l help -d 'Prints help information' +complete -c eruptionctl -n "__fish_seen_subcommand_from angle-snapping" -s V -l version -d 'Prints version information' +complete -c eruptionctl -n "__fish_seen_subcommand_from debounce" -r +complete -c eruptionctl -n "__fish_seen_subcommand_from debounce" -r +complete -c eruptionctl -n "__fish_seen_subcommand_from debounce" -s h -l help -d 'Prints help information' +complete -c eruptionctl -n "__fish_seen_subcommand_from debounce" -s V -l version -d 'Prints version information' +complete -c eruptionctl -n "__fish_seen_subcommand_from brightness" -r +complete -c eruptionctl -n "__fish_seen_subcommand_from brightness" -r +complete -c eruptionctl -n "__fish_seen_subcommand_from brightness" -s h -l help -d 'Prints help information' +complete -c eruptionctl -n "__fish_seen_subcommand_from brightness" -s V -l version -d 'Prints version information' complete -c eruptionctl -n "__fish_seen_subcommand_from status" -s h -l help -d 'Prints help information' complete -c eruptionctl -n "__fish_seen_subcommand_from status" -s V -l version -d 'Prints version information' complete -c eruptionctl -n "__fish_seen_subcommand_from status" -f -a "profile" -d 'Shows the currently active profile' diff --git a/support/shell/completions/en_US/eruptionctl.powershell-completion b/support/shell/completions/en_US/eruptionctl.powershell-completion index 4fff35ef8..e77914606 100644 --- a/support/shell/completions/en_US/eruptionctl.powershell-completion +++ b/support/shell/completions/en_US/eruptionctl.powershell-completion @@ -29,6 +29,7 @@ Register-ArgumentCompleter -Native -CommandName 'eruptionctl' -ScriptBlock { [CompletionResult]::new('-V', 'V', [CompletionResultType]::ParameterName, 'Prints version information') [CompletionResult]::new('--version', 'version', [CompletionResultType]::ParameterName, 'Prints version information') [CompletionResult]::new('config', 'config', [CompletionResultType]::ParameterValue, 'Configuration related sub-commands') + [CompletionResult]::new('devices', 'devices', [CompletionResultType]::ParameterValue, 'Get or set some device specific configuration parameters') [CompletionResult]::new('status', 'status', [CompletionResultType]::ParameterValue, 'Shows the currently active profile or slot') [CompletionResult]::new('switch', 'switch', [CompletionResultType]::ParameterValue, 'Switch to a different profile or slot') [CompletionResult]::new('profiles', 'profiles', [CompletionResultType]::ParameterValue, 'Profile related sub-commands') @@ -44,7 +45,7 @@ Register-ArgumentCompleter -Native -CommandName 'eruptionctl' -ScriptBlock { [CompletionResult]::new('--help', 'help', [CompletionResultType]::ParameterName, 'Prints help information') [CompletionResult]::new('-V', 'V', [CompletionResultType]::ParameterName, 'Prints version information') [CompletionResult]::new('--version', 'version', [CompletionResultType]::ParameterName, 'Prints version information') - [CompletionResult]::new('brightness', 'brightness', [CompletionResultType]::ParameterValue, 'Get or set the brightness of the LEDs') + [CompletionResult]::new('brightness', 'brightness', [CompletionResultType]::ParameterValue, 'Get or set the global brightness of the LEDs') [CompletionResult]::new('soundfx', 'soundfx', [CompletionResultType]::ParameterValue, 'Get or set the state of SoundFX') break } @@ -62,6 +63,69 @@ Register-ArgumentCompleter -Native -CommandName 'eruptionctl' -ScriptBlock { [CompletionResult]::new('--version', 'version', [CompletionResultType]::ParameterName, 'Prints version information') break } + 'eruptionctl;devices' { + [CompletionResult]::new('-h', 'h', [CompletionResultType]::ParameterName, 'Prints help information') + [CompletionResult]::new('--help', 'help', [CompletionResultType]::ParameterName, 'Prints help information') + [CompletionResult]::new('-V', 'V', [CompletionResultType]::ParameterName, 'Prints version information') + [CompletionResult]::new('--version', 'version', [CompletionResultType]::ParameterName, 'Prints version information') + [CompletionResult]::new('list', 'list', [CompletionResultType]::ParameterValue, 'List connected devices and their indices (run this first)') + [CompletionResult]::new('info', 'info', [CompletionResultType]::ParameterValue, 'Get information about a specific device') + [CompletionResult]::new('dpi', 'dpi', [CompletionResultType]::ParameterValue, 'Get or set the DPI parameter (applicable for some mice)') + [CompletionResult]::new('distance', 'distance', [CompletionResultType]::ParameterValue, 'Get or set the DCU parameter (applicable for some mice)') + [CompletionResult]::new('angle-snapping', 'angle-snapping', [CompletionResultType]::ParameterValue, 'Get or set the angle-snapping parameter (applicable for some mice)') + [CompletionResult]::new('debounce', 'debounce', [CompletionResultType]::ParameterValue, 'Get or set the debounce parameter (applicable for some mice)') + [CompletionResult]::new('brightness', 'brightness', [CompletionResultType]::ParameterValue, 'Get or set the device specific brightness of the LEDs') + break + } + 'eruptionctl;devices;list' { + [CompletionResult]::new('-h', 'h', [CompletionResultType]::ParameterName, 'Prints help information') + [CompletionResult]::new('--help', 'help', [CompletionResultType]::ParameterName, 'Prints help information') + [CompletionResult]::new('-V', 'V', [CompletionResultType]::ParameterName, 'Prints version information') + [CompletionResult]::new('--version', 'version', [CompletionResultType]::ParameterName, 'Prints version information') + break + } + 'eruptionctl;devices;info' { + [CompletionResult]::new('-h', 'h', [CompletionResultType]::ParameterName, 'Prints help information') + [CompletionResult]::new('--help', 'help', [CompletionResultType]::ParameterName, 'Prints help information') + [CompletionResult]::new('-V', 'V', [CompletionResultType]::ParameterName, 'Prints version information') + [CompletionResult]::new('--version', 'version', [CompletionResultType]::ParameterName, 'Prints version information') + break + } + 'eruptionctl;devices;dpi' { + [CompletionResult]::new('-h', 'h', [CompletionResultType]::ParameterName, 'Prints help information') + [CompletionResult]::new('--help', 'help', [CompletionResultType]::ParameterName, 'Prints help information') + [CompletionResult]::new('-V', 'V', [CompletionResultType]::ParameterName, 'Prints version information') + [CompletionResult]::new('--version', 'version', [CompletionResultType]::ParameterName, 'Prints version information') + break + } + 'eruptionctl;devices;distance' { + [CompletionResult]::new('-h', 'h', [CompletionResultType]::ParameterName, 'Prints help information') + [CompletionResult]::new('--help', 'help', [CompletionResultType]::ParameterName, 'Prints help information') + [CompletionResult]::new('-V', 'V', [CompletionResultType]::ParameterName, 'Prints version information') + [CompletionResult]::new('--version', 'version', [CompletionResultType]::ParameterName, 'Prints version information') + break + } + 'eruptionctl;devices;angle-snapping' { + [CompletionResult]::new('-h', 'h', [CompletionResultType]::ParameterName, 'Prints help information') + [CompletionResult]::new('--help', 'help', [CompletionResultType]::ParameterName, 'Prints help information') + [CompletionResult]::new('-V', 'V', [CompletionResultType]::ParameterName, 'Prints version information') + [CompletionResult]::new('--version', 'version', [CompletionResultType]::ParameterName, 'Prints version information') + break + } + 'eruptionctl;devices;debounce' { + [CompletionResult]::new('-h', 'h', [CompletionResultType]::ParameterName, 'Prints help information') + [CompletionResult]::new('--help', 'help', [CompletionResultType]::ParameterName, 'Prints help information') + [CompletionResult]::new('-V', 'V', [CompletionResultType]::ParameterName, 'Prints version information') + [CompletionResult]::new('--version', 'version', [CompletionResultType]::ParameterName, 'Prints version information') + break + } + 'eruptionctl;devices;brightness' { + [CompletionResult]::new('-h', 'h', [CompletionResultType]::ParameterName, 'Prints help information') + [CompletionResult]::new('--help', 'help', [CompletionResultType]::ParameterName, 'Prints help information') + [CompletionResult]::new('-V', 'V', [CompletionResultType]::ParameterName, 'Prints version information') + [CompletionResult]::new('--version', 'version', [CompletionResultType]::ParameterName, 'Prints version information') + break + } 'eruptionctl;status' { [CompletionResult]::new('-h', 'h', [CompletionResultType]::ParameterName, 'Prints help information') [CompletionResult]::new('--help', 'help', [CompletionResultType]::ParameterName, 'Prints help information') diff --git a/support/shell/completions/en_US/eruptionctl.zsh-completion b/support/shell/completions/en_US/eruptionctl.zsh-completion index b7c2aa5ba..161204ff9 100644 --- a/support/shell/completions/en_US/eruptionctl.zsh-completion +++ b/support/shell/completions/en_US/eruptionctl.zsh-completion @@ -69,6 +69,92 @@ _arguments "${_arguments_options[@]}" \ ;; esac ;; +(devices) +_arguments "${_arguments_options[@]}" \ +'-h[Prints help information]' \ +'--help[Prints help information]' \ +'-V[Prints version information]' \ +'--version[Prints version information]' \ +":: :_eruptionctl__devices_commands" \ +"*::: :->devices" \ +&& ret=0 +case $state in + (devices) + words=($line[1] "${words[@]}") + (( CURRENT += 1 )) + curcontext="${curcontext%:*:*}:eruptionctl-devices-command-$line[1]:" + case $line[1] in + (list) +_arguments "${_arguments_options[@]}" \ +'-h[Prints help information]' \ +'--help[Prints help information]' \ +'-V[Prints version information]' \ +'--version[Prints version information]' \ +&& ret=0 +;; +(info) +_arguments "${_arguments_options[@]}" \ +'-h[Prints help information]' \ +'--help[Prints help information]' \ +'-V[Prints version information]' \ +'--version[Prints version information]' \ +':device:' \ +&& ret=0 +;; +(dpi) +_arguments "${_arguments_options[@]}" \ +'-h[Prints help information]' \ +'--help[Prints help information]' \ +'-V[Prints version information]' \ +'--version[Prints version information]' \ +':device:' \ +'::dpi:' \ +&& ret=0 +;; +(distance) +_arguments "${_arguments_options[@]}" \ +'-h[Prints help information]' \ +'--help[Prints help information]' \ +'-V[Prints version information]' \ +'--version[Prints version information]' \ +':device:' \ +'::param:' \ +&& ret=0 +;; +(angle-snapping) +_arguments "${_arguments_options[@]}" \ +'-h[Prints help information]' \ +'--help[Prints help information]' \ +'-V[Prints version information]' \ +'--version[Prints version information]' \ +':device:' \ +'::enable:' \ +&& ret=0 +;; +(debounce) +_arguments "${_arguments_options[@]}" \ +'-h[Prints help information]' \ +'--help[Prints help information]' \ +'-V[Prints version information]' \ +'--version[Prints version information]' \ +':device:' \ +'::enable:' \ +&& ret=0 +;; +(brightness) +_arguments "${_arguments_options[@]}" \ +'-h[Prints help information]' \ +'--help[Prints help information]' \ +'-V[Prints version information]' \ +'--version[Prints version information]' \ +':device:' \ +'::brightness:' \ +&& ret=0 +;; + esac + ;; +esac +;; (status) _arguments "${_arguments_options[@]}" \ '-h[Prints help information]' \ @@ -364,6 +450,7 @@ esac _eruptionctl_commands() { local commands; commands=( "config:Configuration related sub-commands" \ +"devices:Get or set some device specific configuration parameters" \ "status:Shows the currently active profile or slot" \ "switch:Switch to a different profile or slot" \ "profiles:Profile related sub-commands" \ @@ -375,6 +462,13 @@ _eruptionctl_commands() { ) _describe -t commands 'eruptionctl commands' commands "$@" } +(( $+functions[_eruptionctl__devices__angle-snapping_commands] )) || +_eruptionctl__devices__angle-snapping_commands() { + local commands; commands=( + + ) + _describe -t commands 'eruptionctl devices angle-snapping commands' commands "$@" +} (( $+functions[_eruptionctl__completions__bash_commands] )) || _eruptionctl__completions__bash_commands() { local commands; commands=( @@ -389,6 +483,13 @@ _eruptionctl__config__brightness_commands() { ) _describe -t commands 'eruptionctl config brightness commands' commands "$@" } +(( $+functions[_eruptionctl__devices__brightness_commands] )) || +_eruptionctl__devices__brightness_commands() { + local commands; commands=( + + ) + _describe -t commands 'eruptionctl devices brightness commands' commands "$@" +} (( $+functions[_eruptionctl__completions_commands] )) || _eruptionctl__completions_commands() { local commands; commands=( @@ -403,11 +504,45 @@ _eruptionctl__completions_commands() { (( $+functions[_eruptionctl__config_commands] )) || _eruptionctl__config_commands() { local commands; commands=( - "brightness:Get or set the brightness of the LEDs" \ + "brightness:Get or set the global brightness of the LEDs" \ "soundfx:Get or set the state of SoundFX" \ ) _describe -t commands 'eruptionctl config commands' commands "$@" } +(( $+functions[_eruptionctl__devices__debounce_commands] )) || +_eruptionctl__devices__debounce_commands() { + local commands; commands=( + + ) + _describe -t commands 'eruptionctl devices debounce commands' commands "$@" +} +(( $+functions[_eruptionctl__devices_commands] )) || +_eruptionctl__devices_commands() { + local commands; commands=( + "list:List connected devices and their indices (run this first)" \ +"info:Get information about a specific device" \ +"dpi:Get or set the DPI parameter (applicable for some mice)" \ +"distance:Get or set the DCU parameter (applicable for some mice)" \ +"angle-snapping:Get or set the angle-snapping parameter (applicable for some mice)" \ +"debounce:Get or set the debounce parameter (applicable for some mice)" \ +"brightness:Get or set the device specific brightness of the LEDs" \ + ) + _describe -t commands 'eruptionctl devices commands' commands "$@" +} +(( $+functions[_eruptionctl__devices__distance_commands] )) || +_eruptionctl__devices__distance_commands() { + local commands; commands=( + + ) + _describe -t commands 'eruptionctl devices distance commands' commands "$@" +} +(( $+functions[_eruptionctl__devices__dpi_commands] )) || +_eruptionctl__devices__dpi_commands() { + local commands; commands=( + + ) + _describe -t commands 'eruptionctl devices dpi commands' commands "$@" +} (( $+functions[_eruptionctl__profiles__edit_commands] )) || _eruptionctl__profiles__edit_commands() { local commands; commands=( @@ -443,6 +578,13 @@ _eruptionctl__help_commands() { ) _describe -t commands 'eruptionctl help commands' commands "$@" } +(( $+functions[_eruptionctl__devices__info_commands] )) || +_eruptionctl__devices__info_commands() { + local commands; commands=( + + ) + _describe -t commands 'eruptionctl devices info commands' commands "$@" +} (( $+functions[_eruptionctl__profiles__info_commands] )) || _eruptionctl__profiles__info_commands() { local commands; commands=( @@ -457,6 +599,13 @@ _eruptionctl__scripts__info_commands() { ) _describe -t commands 'eruptionctl scripts info commands' commands "$@" } +(( $+functions[_eruptionctl__devices__list_commands] )) || +_eruptionctl__devices__list_commands() { + local commands; commands=( + + ) + _describe -t commands 'eruptionctl devices list commands' commands "$@" +} (( $+functions[_eruptionctl__names__list_commands] )) || _eruptionctl__names__list_commands() { local commands; commands=(