mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-20 13:50:15 +01:00
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:
parent
4336c0456f
commit
8f132481b3
2 changed files with 4 additions and 0 deletions
|
|
@ -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]' \
|
||||||
|
|
|
||||||
|
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue