diff --git a/completion/zsh/_libinput b/completion/zsh/_libinput index a2d351fa..003e2fba 100644 --- a/completion/zsh/_libinput +++ b/completion/zsh/_libinput @@ -56,6 +56,8 @@ __all_seats() lrm\:2-fingers\ right-click\ /\ 3-fingers\ middle-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-profile=[Set pointer acceleration profile]:accel-profile:(adaptive flat custom)' \ '--set-rotation-angle=[Set the rotation angle in degrees]' \ diff --git a/tools/shared.h b/tools/shared.h index 64ce325b..939df364 100644 --- a/tools/shared.h +++ b/tools/shared.h @@ -120,6 +120,8 @@ enum configuration_options { { "set-eraser-button-mode", required_argument, 0, OPT_ERASER_BUTTON_MODE }, \ { "set-eraser-button-button", required_argument, 0, OPT_ERASER_BUTTON_BUTTON } +/* Note: New arguments should be added to shell completions */ + static inline void tools_print_usage_option_list(struct option *opts) {