aboutsummaryrefslogtreecommitdiffstats
path: root/sway/sway.5.scd
diff options
context:
space:
mode:
authorLibravatar Brian Ashworth <bosrsf04@gmail.com>2019-07-26 12:02:18 -0400
committerLibravatar Simon Ser <contact@emersion.fr>2019-08-01 18:54:58 +0300
commit8ee054b1b95b7466c0dd89bfc9026f4083fb0016 (patch)
treebce2d4bfba93e6889c1aa57085297e4a997af2d8 /sway/sway.5.scd
parentinput/keyboard: don't reset layout for same keymap (diff)
downloadsway-8ee054b1b95b7466c0dd89bfc9026f4083fb0016.tar.gz
sway-8ee054b1b95b7466c0dd89bfc9026f4083fb0016.tar.zst
sway-8ee054b1b95b7466c0dd89bfc9026f4083fb0016.zip
bindsym/code: add group support
This adds support for specifying a binding for a specific group. Any binding without a group listed will be available in all groups. The priority for matching bindings is as follows: input device, group, and locked state. For full compatibility with i3, this also adds Mode_switch as an alias for Group2. Since i3 only supports this for backwards compatibility with older versions of i3, it is implemented here, but not documented.
Diffstat (limited to 'sway/sway.5.scd')
-rw-r--r--sway/sway.5.scd15
1 files changed, 11 insertions, 4 deletions
diff --git a/sway/sway.5.scd b/sway/sway.5.scd
index ac80de3c..3e445e0e 100644
--- a/sway/sway.5.scd
+++ b/sway/sway.5.scd
@@ -328,14 +328,17 @@ runtime.
328 328
329 for_window <criteria> move container to output <output> 329 for_window <criteria> move container to output <output>
330 330
331*bindsym* [--whole-window] [--border] [--exclude-titlebar] [--release] [--locked] [--to-code] [--input-device=<device>] [--no-warn] <key combo> <command> 331*bindsym* [--whole-window] [--border] [--exclude-titlebar] [--release] [--locked] \
332 [--to-code] [--input-device=<device>] [--no-warn] [Group<1-4>+]<key combo> \
333 <command>
332 Binds _key combo_ to execute the sway command _command_ when pressed. You 334 Binds _key combo_ to execute the sway command _command_ when pressed. You
333 may use XKB key names here (*xev*(1) is a good tool for discovering these). 335 may use XKB key names here (*xev*(1) is a good tool for discovering these).
334 With the flag _--release_, the command is executed when the key combo is 336 With the flag _--release_, the command is executed when the key combo is
335 released. If _input-device_ is given, the binding will only be executed for 337 released. If _input-device_ is given, the binding will only be executed for
336 that input device and will be executed instead of any binding that is 338 that input device and will be executed instead of any binding that is
337 generic to all devices. By default, if you overwrite a binding, swaynag 339 generic to all devices. If a group number is given, then the binding will
338 will give you a warning. To silence this, use the _--no-warn_ flag. 340 only be available for that group. By default, if you overwrite a binding,
341 swaynag will give you a warning. To silence this, use the _--no-warn_ flag.
339 342
340 Unless the flag _--locked_ is set, the command will not be run when a 343 Unless the flag _--locked_ is set, the command will not be run when a
341 screen locking program is active. If there is a matching binding with 344 screen locking program is active. If there is a matching binding with
@@ -356,6 +359,9 @@ runtime.
356 6=scroll left, 7=scroll right, 8=back, 9=forward). For the latter option, 359 6=scroll left, 7=scroll right, 8=back, 9=forward). For the latter option,
357 you can find the event names using _libinput debug-events_. 360 you can find the event names using _libinput debug-events_.
358 361
362 The priority for matching bindings is as follows: input device, group,
363 and locked state.
364
359 _--whole-window_, _--border_, and _--exclude-titlebar_ are mouse-only options 365 _--whole-window_, _--border_, and _--exclude-titlebar_ are mouse-only options
360 which affect the region in which the mouse bindings can be triggered. By 366 which affect the region in which the mouse bindings can be triggered. By
361 default, mouse bindings are only triggered when over the title bar. With the 367 default, mouse bindings are only triggered when over the title bar. With the
@@ -375,7 +381,8 @@ runtime.
375 bindsym Mod1+Shift+f exec firefox 381 bindsym Mod1+Shift+f exec firefox
376``` 382```
377 383
378 *bindcode* [--whole-window] [--border] [--exclude-titlebar] [--release] [--locked] [--input-device=<device>] [--no-warn] <code> <command> 384 *bindcode* [--whole-window] [--border] [--exclude-titlebar] [--release] \
385 [--locked] [--input-device=<device>] [--no-warn] [Group<1-4>+]<code> <command>
379 is also available for binding with key/button codes instead of key/button names. 386 is also available for binding with key/button codes instead of key/button names.
380 387
381*bindswitch* [--locked] [--no-warn] [--reload] <switch>:<state> <command> 388*bindswitch* [--locked] [--no-warn] [--reload] <switch>:<state> <command>