Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mouse button code in INFO environment varaible (#356) #358

Merged
merged 2 commits into from
Apr 13, 2023

Conversation

fuyu0425
Copy link
Contributor

as discussed in #356.

Copy link
Owner

@FelixKratz FelixKratz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have changed the $INFO to a JSON that contains the full click info, including the modifier key codes (these can be used for detecting multiple modifiers pressed at the same time):

{
	"button": "right",
	"button_code": 1,
	"modifier": "alt",
	"modfier_code": 524320
}

You will get the "button_code" with jq:

echo "$INFO" | jq -r ".button_code"

@FelixKratz FelixKratz merged commit 3fcab88 into FelixKratz:master Apr 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants