summaryrefslogtreecommitdiffstats
path: root/sway/sway-bar.5.scd
diff options
context:
space:
mode:
Diffstat (limited to 'sway/sway-bar.5.scd')
-rw-r--r--sway/sway-bar.5.scd20
1 files changed, 13 insertions, 7 deletions
diff --git a/sway/sway-bar.5.scd b/sway/sway-bar.5.scd
index 3f6b4298..9a6397e3 100644
--- a/sway/sway-bar.5.scd
+++ b/sway/sway-bar.5.scd
@@ -115,13 +115,19 @@ Sway allows configuring swaybar in the sway configuration file.
115Swaybar provides a system tray where third-party applications may place icons. 115Swaybar provides a system tray where third-party applications may place icons.
116The following commands configure the tray. 116The following commands configure the tray.
117 117
118The _button_ argument in all cases is a platform-specific button code. On Linux 118*tray\_bindcode* <event-code>
119you can find a list of these at linux/input-event-codes.h. 119ContextMenu|Activate|SecondaryActivate|ScrollDown|ScrollLeft|ScrollRight|ScrollUp|nop
120 120 Executes the action when the mouse button has been pressed. The buttons can
121*tray\_bindsym* button<n> ContextMenu|Activate|SecondaryActivate|ScrollDown|ScrollLeft|ScrollRight|ScrollUp|nop 121 be given as an event code, which can be obtained from `libinput debug-events`.
122 Binds mouse button _n_ (1 to 9) to the specified action. Use the command 122 To disable the default behavior for a button, use the command _nop_.
123 _nop_ to disable the default action (Activate for button 1, ContextMenu for 123
124 button 2 and SecondaryActivate for button 3). 124*tray\_bindsym* button[1-9]|<event-name>
125ContextMenu|Activate|SecondaryActivate|ScrollDown|ScrollLeft|ScrollRight|ScrollUp|nop
126 Executes the action when the mouse button has been pressed. The buttons can
127 be given as a x11 button number or an event name, which can be obtained
128 from `libinput debug-events`. Use the command _nop_ to disable the default
129 action (Activate for button1, ContextMenu for button2 and SecondaryActivate
130 for button3).
125 131
126*tray\_padding* <px> [px] 132*tray\_padding* <px> [px]
127 Sets the pixel padding of the system tray. This padding will surround the 133 Sets the pixel padding of the system tray. This padding will surround the