input: support scroll button lock config
This commit is contained in:
committed by
Isaac Freund
parent
26f599b56b
commit
fd55f51ba1
@ -99,6 +99,7 @@ function __riverctl_completion ()
|
||||
tap-button-map \
|
||||
scroll-method \
|
||||
scroll-button \
|
||||
scroll-button-lock \
|
||||
map-to-output"
|
||||
COMPREPLY=($(compgen -W "${OPTS}" -- "${COMP_WORDS[3]}"))
|
||||
elif [ "${COMP_WORDS[1]}" == "hide-cursor" ]
|
||||
@ -117,7 +118,7 @@ function __riverctl_completion ()
|
||||
"events") OPTS="enabled disabled disabled-on-external-mouse" ;;
|
||||
"accel-profile") OPTS="none flat adaptive" ;;
|
||||
"click-method") OPTS="none button-areas clickfinger" ;;
|
||||
"drag"|"drag-lock"|"disable-while-typing"|"middle-emulation"|"left-handed"|"tap") OPTS="enabled disabled" ;;
|
||||
"drag"|"drag-lock"|"disable-while-typing"|"middle-emulation"|"left-handed"|"tap"|"scroll-button-lock") OPTS="enabled disabled" ;;
|
||||
"tap-button-map") OPTS="left-right-middle left-middle-right" ;;
|
||||
"scroll-method") OPTS="none two-finger edge button" ;;
|
||||
*) return ;;
|
||||
|
@ -119,10 +119,11 @@ complete -c riverctl -n '__fish_seen_subcommand_from input; and __fish_riverctl_
|
||||
complete -c riverctl -n '__fish_seen_subcommand_from input; and __fish_riverctl_complete_arg 3' -a 'tap-button-map' -d 'Configure the button mapping for tapping'
|
||||
complete -c riverctl -n '__fish_seen_subcommand_from input; and __fish_riverctl_complete_arg 3' -a 'scroll-method' -d 'Set the scroll method'
|
||||
complete -c riverctl -n '__fish_seen_subcommand_from input; and __fish_riverctl_complete_arg 3' -a 'scroll-button' -d 'Set the scroll button'
|
||||
complete -c riverctl -n '__fish_seen_subcommand_from input; and __fish_riverctl_complete_arg 3' -a 'scroll-button-lock' -d 'Enable or disable the scroll button lock functionality'
|
||||
complete -c riverctl -n '__fish_seen_subcommand_from input; and __fish_riverctl_complete_arg 3' -a 'map-to-output' -d 'Map to a given output'
|
||||
|
||||
# Subcommands for the subcommands of 'input'
|
||||
complete -c riverctl -n '__fish_seen_subcommand_from input; and __fish_riverctl_complete_arg 4; and __fish_seen_subcommand_from drag drag-lock disable-while-typing disable-while-trackpointing middle-emulation natural-scroll left-handed tap' -a 'enabled disabled'
|
||||
complete -c riverctl -n '__fish_seen_subcommand_from input; and __fish_riverctl_complete_arg 4; and __fish_seen_subcommand_from drag drag-lock disable-while-typing disable-while-trackpointing middle-emulation natural-scroll left-handed tap scroll-button-lock' -a 'enabled disabled'
|
||||
complete -c riverctl -n '__fish_seen_subcommand_from input; and __fish_riverctl_complete_arg 4; and __fish_seen_subcommand_from events' -a 'enabled disabled disabled-on-external-mouse'
|
||||
complete -c riverctl -n '__fish_seen_subcommand_from input; and __fish_riverctl_complete_arg 4; and __fish_seen_subcommand_from accel-profile' -a 'none flat adaptive'
|
||||
complete -c riverctl -n '__fish_seen_subcommand_from input; and __fish_riverctl_complete_arg 4; and __fish_seen_subcommand_from click-method' -a 'none button-areas clickfinger'
|
||||
|
@ -126,6 +126,7 @@ _riverctl()
|
||||
'tap-button-map:Configure the button mapping for tapping'
|
||||
'scroll-method:Set the scroll method'
|
||||
'scroll-button:Set the scroll button'
|
||||
'scroll-button-lock:Enable or disable the scroll button lock functionality'
|
||||
'map-to-output:Map to a given output'
|
||||
)
|
||||
|
||||
@ -144,6 +145,7 @@ _riverctl()
|
||||
natural-scroll) _alternative 'input-cmds:args:(enabled disabled)' ;;
|
||||
left-handed) _alternative 'input-cmds:args:(enabled disabled)' ;;
|
||||
tap) _alternative 'input-cmds:args:(enabled disabled)' ;;
|
||||
scroll-button-lock) _alternative 'input-cmds:args:(enabled disabled)' ;;
|
||||
tap-button-map) _alternative 'input-cmds:args:(left-right-middle left-middle-right)' ;;
|
||||
scroll-method) _alternative 'input-cmds:args:(none two-finger edge button)' ;;
|
||||
*) return 0 ;;
|
||||
|
Reference in New Issue
Block a user