zsh: add shell completion for the eraser button

Plus a note in tools/shared.h so we don't keep forgetting about this.

Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1234>
This commit is contained in:
Peter Hutterer 2025-06-20 09:55:41 +10:00
parent 4336c0456f
commit 8f132481b3
2 changed files with 4 additions and 0 deletions

View file

@ -56,6 +56,8 @@ __all_seats()
lrm\:2-fingers\ right-click\ /\ 3-fingers\ middle-click \ lrm\:2-fingers\ right-click\ /\ 3-fingers\ middle-click \
lmr\:2-fingers\ middle-click\ /\ 3-fingers\ right-click \ lmr\:2-fingers\ middle-click\ /\ 3-fingers\ right-click \
))' \ ))' \
'--set-eraser-button-button=[Set button mapping for the eraser button]:eraser-button:(BTN_STYLUS BTN_STYLUS2 BTN_STYLUS3)' \
'--set-eraser-button-mode=[Set the eraser button mode]:eraser-mode:(default button)' \
'--set-pressure-range=[Set the tablet tool pressure range (within range \[0.0, 1.0\])]' \ '--set-pressure-range=[Set the tablet tool pressure range (within range \[0.0, 1.0\])]' \
'--set-profile=[Set pointer acceleration profile]:accel-profile:(adaptive flat custom)' \ '--set-profile=[Set pointer acceleration profile]:accel-profile:(adaptive flat custom)' \
'--set-rotation-angle=[Set the rotation angle in degrees]' \ '--set-rotation-angle=[Set the rotation angle in degrees]' \

View file

@ -120,6 +120,8 @@ enum configuration_options {
{ "set-eraser-button-mode", required_argument, 0, OPT_ERASER_BUTTON_MODE }, \ { "set-eraser-button-mode", required_argument, 0, OPT_ERASER_BUTTON_MODE }, \
{ "set-eraser-button-button", required_argument, 0, OPT_ERASER_BUTTON_BUTTON } { "set-eraser-button-button", required_argument, 0, OPT_ERASER_BUTTON_BUTTON }
/* Note: New arguments should be added to shell completions */
static inline void static inline void
tools_print_usage_option_list(struct option *opts) tools_print_usage_option_list(struct option *opts)
{ {