Andrey Burov 60384d446b Add coordinates relative to the current output in i3bar click events
Currently i3bar click events provide x and y coordinates relative to all monitors.
I've added coordinates relative to the current output.

+-----------+-----------+
|           |   i3bar   |
|           +-----------+
|   HDMI-0  |    DP-0   |
| 1920x1080 | 2560x1080 |
+-----------+-----------+

When you click in the top right corner of the DP-0,
i3bar will provide something like this:

{
  "x": 4480,
  "y": 10,
  "output_x": 2560,
  "output_y": 10,
}

This is useful for creating a rofi menu or something else.
rofi -show run -location 1 -xoffset ${I3_OUTPUT_X} -yoffset ${I3_OUTPUT_Y}
2020-10-23 12:51:21 +03:00
2020-05-06 17:25:28 +02:00
2020-10-19 23:41:16 +02:00
2020-05-06 17:25:52 +02:00
2020-04-20 04:25:06 +02:00
2020-06-16 22:27:39 +02:00
2020-10-20 09:36:44 +02:00
2020-10-20 09:36:44 +02:00
2020-05-19 14:45:06 +02:00
2020-10-20 09:36:44 +02:00
2020-10-20 09:36:44 +02:00
2020-05-19 14:45:06 +02:00
2020-05-19 14:45:06 +02:00
2020-10-19 23:17:05 +02:00
2020-10-19 23:17:05 +02:00
2020-09-15 13:41:34 +00:00
2020-10-19 23:16:56 +02:00

Logo i3: A tiling window manager

Build Status Issue Stats Pull Request Stats

Packages Packages

i3 is a tiling window manager for X11.

For more information about i3, please see the project's website and online documentation.

For information about contributing to i3, please see CONTRIBUTING.md.

Description
No description provided
Readme 18 MiB
Languages
C 58.4%
Perl 36%
Raku 2.6%
Ruby 1.2%
Shell 0.7%
Other 1.1%