swayfx/sway/commands/bar
Brian Ashworth 3d6440ec26 bar_cmd_bind: utilize mouse button helpers
This modifies `bar_cmd_bindsym` to use `get_mouse_bindsym` for parsing
mouse buttons. This also introduces `cmd_bar_bindcode`, which will use
`get_mouse_bindcode` for parsing mouse buttons. Like sway bindings, the
two commands are encapsulated in a single file with shared code.

This also modifies swaybar to operate off of event codes rather than x11
button numbers, which allows for any mouse button to be used.

This introduces two new IPC properties:
- For `get_bar_config`, `event_code` has been added to the `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`.
- Likewise for `click_events`, `event` has been added and will include
the event code for the button clicked. If the event code can be mapped
to a x11 button, `button` will still be the x11 button number.
Otherwise, `button` will be `0`.
2019-01-10 12:43:10 -05:00
..
bind.c bar_cmd_bind: utilize mouse button helpers 2019-01-10 12:43:10 -05:00
binding_mode_indicator.c Use parse_boolean where possible. 2018-11-10 12:55:06 +00:00
colors.c swaybar: fix focused_statusline color parsing. 2018-12-29 13:34:52 +01:00
font.c Update for swaywm/wlroots#1126 2018-07-09 22:54:30 +01:00
gaps.c Implement bar gaps 2018-11-28 11:24:14 -05:00
height.c Update for swaywm/wlroots#1126 2018-07-09 22:54:30 +01:00
hidden_state.c Replace _XOPEN_SOURCE with _POSIX_C_SOURCE 2018-11-25 17:19:43 +01:00
icon_theme.c swaybar: implement tray config 2018-12-31 20:40:18 +00:00
id.c Replace _XOPEN_SOURCE with _POSIX_C_SOURCE 2018-11-25 17:19:43 +01:00
mode.c Replace _XOPEN_SOURCE with _POSIX_C_SOURCE 2018-11-25 17:19:43 +01:00
modifier.c list.c: rename free_flat_list to list_free_items_and_destroy 2018-12-09 01:15:38 +00:00
output.c Replace _XOPEN_SOURCE with _POSIX_C_SOURCE 2018-11-25 17:19:43 +01:00
pango_markup.c Use parse_boolean where possible. 2018-11-10 12:55:06 +00:00
position.c commands/bar: remove left and right from allowed positions 2018-10-20 08:21:44 +02:00
separator_symbol.c Replace _XOPEN_SOURCE with _POSIX_C_SOURCE 2018-11-25 17:19:43 +01:00
status_command.c bar_cmd_status_command: only reload current bar 2018-10-13 08:00:01 -04:00
strip_workspace_name.c Implement strip_workspace_name. 2018-11-17 16:11:28 +00:00
strip_workspace_numbers.c Implement strip_workspace_name. 2018-11-17 16:11:28 +00:00
swaybar_command.c Update for swaywm/wlroots#1126 2018-07-09 22:54:30 +01:00
tray_bindsym.c swaybar: implement tray config 2018-12-31 20:40:18 +00:00
tray_output.c swaybar: do not create tray if hidden 2018-12-31 20:40:18 +00:00
tray_padding.c swaybar: implement tray config 2018-12-31 20:40:18 +00:00
workspace_buttons.c Use parse_boolean where possible. 2018-11-10 12:55:06 +00:00
wrap_scroll.c Use parse_boolean where possible. 2018-11-10 12:55:06 +00:00