sway-patched-tray-menu/include/swaybar
Brian Ashworth 02bbefda20 bar_cmd_tray_bind: Use mouse button helpers
This modifies `bar_cmd_tray_bindsym` to use `get_mouse_bindsym` for
parsing mouse buttons. This also introduces `bar_cmd_tray_bindcode`,
which will use `get_mouse_bindcode` for parsing mouse buttons. Like with
sway bindings, the two commands are encapsulated in a single file to
maximize shared code.

This also modifies tray bindings to work off of events codes rather than
x11 buttons, which allows for any mouse buttons to be used.

For `get_bar_config`, `event_code` has been added to the `tray_bindings`
section and will include to event code for the button. If the event code
can be mapped to a x11 button, `input_code` will still be the x11 button
number. Otherwise, `input_code` will be `0`.
2019-01-16 11:12:45 +01:00
..
tray swaybar: handle SNI signals better 2019-01-08 12:18:59 +00:00
bar.h swaybar: allow identifiers for output and tray 2019-01-13 12:06:35 -05:00
config.h bar_cmd_tray_bind: Use mouse button helpers 2019-01-16 11:12:45 +01:00
i3bar.h bar_cmd_bind: utilize mouse button helpers 2019-01-10 12:43:10 -05:00
input.h bar_cmd_tray_bind: Use mouse button helpers 2019-01-16 11:12:45 +01:00
ipc.h swaybar: show hidden bar on urgency 2018-10-14 13:33:12 +01:00
render.h swaybar: synchronize rendering to output frames 2018-09-30 10:07:33 +01:00
status_line.h Move swaybar's event loop to common directory and refactor 2018-10-15 00:26:27 +10:00