You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to take advantage of the mouse-clicks that are available now and would like to make a clickable block that behaves differently if clicked on the right side, the middle or the left side.
When reading the mouse-event you can get both the absolute coordinates as well as the relative coordinates of the click but in order to determine which part of a block has been clicked I would also need the dimensions of the block.
Is there any way to get these?
Many thanks!
The text was updated successfully, but these errors were encountered:
According to i3blocks#click and i3bar-protocol you can get all the needed values. On the bottom of the i3wm site you can see some variables that i3blocks passes as environment variables for scripts. For example echo w=$width x=$relative_x.
Hi,
I would like to take advantage of the mouse-clicks that are available now and would like to make a clickable block that behaves differently if clicked on the right side, the middle or the left side.
When reading the mouse-event you can get both the absolute coordinates as well as the relative coordinates of the click but in order to determine which part of a block has been clicked I would also need the dimensions of the block.
Is there any way to get these?
Many thanks!
The text was updated successfully, but these errors were encountered: