Merge pull request #3344 from RedSoxFan/bar-mouse-bindings-improved

Improve mouse button parsing: bar mouse bindings
This commit is contained in:
Drew DeVault 2019-01-13 20:41:05 -05:00 committed by GitHub
commit 81bb675274
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 208 additions and 114 deletions

View file

@ -71,10 +71,18 @@ Sway allows configuring swaybar in the sway configuration file.
*height* <height>
Sets the height of the bar. Default height (0) will match the font size.
*bindsym* [--release] button<n> <command>
Executes _command_ when mouse button _n_ has been pressed (or if _released_
is given, when mouse button _n_ has been released). To disable the default
behavior for a button, use the command _nop_.
*bindcode* [--release] <event-code> <command>
Executes _command_ when the mouse button has been pressed (or if _released_
is given, when the button has been released). The buttons can be given as
an event code, which can be obtaining from `libinput debug-events`. To
disable the default behavior for a button, use the command _nop_.
*bindsym* [--release] button[1-9]|<event-name> <command>
Executes _command_ when the mouse button has been pressed (or if _released_
is given, when the button has been released). The buttons can be given as a
x11 button number or an event name, which can be obtained from `libinput
debug-events`. To disable the default behavior for a button, use the
command _nop_.
*mode* dock|hide|invisible
Specifies the visibility of the bar. In _dock_ mode, it is permanently