aboutsummaryrefslogtreecommitdiffstats
path: root/sway/sway.5.scd
diff options
context:
space:
mode:
authorLibravatar Linus Heckemann <git@sphalerite.org>2020-03-23 12:34:04 +0100
committerLibravatar Simon Ser <contact@emersion.fr>2020-03-30 14:18:27 +0200
commitdf48c48123de88a91362844881fa20eddc30f597 (patch)
tree307ec481503f0090519565dbf2c22b14e66ab5c0 /sway/sway.5.scd
parentChange focus_on_window_activation default to urgent (diff)
downloadsway-df48c48123de88a91362844881fa20eddc30f597.tar.gz
sway-df48c48123de88a91362844881fa20eddc30f597.tar.zst
sway-df48c48123de88a91362844881fa20eddc30f597.zip
add --no-repeat option for bindings
This allows e.g. triggering one command while a key is held, then triggering another to undo the change performed by it afterwards. One use case for this is triggering push-to-talk functionality for VoIP tools without granting them full access to all input events. Fixes #3151
Diffstat (limited to 'sway/sway.5.scd')
-rw-r--r--sway/sway.5.scd6
1 files changed, 5 insertions, 1 deletions
diff --git a/sway/sway.5.scd b/sway/sway.5.scd
index c9daba5d..1c396dfb 100644
--- a/sway/sway.5.scd
+++ b/sway/sway.5.scd
@@ -356,7 +356,7 @@ runtime.
356 for_window <criteria> move container to output <output> 356 for_window <criteria> move container to output <output>
357 357
358*bindsym* [--whole-window] [--border] [--exclude-titlebar] [--release] [--locked] \ 358*bindsym* [--whole-window] [--border] [--exclude-titlebar] [--release] [--locked] \
359[--to-code] [--input-device=<device>] [--no-warn] [Group<1-4>+]<key combo> \ 359[--to-code] [--input-device=<device>] [--no-warn] [--no-repeat] [Group<1-4>+]<key combo> \
360<command> 360<command>
361 Binds _key combo_ to execute the sway command _command_ when pressed. You 361 Binds _key combo_ to execute the sway command _command_ when pressed. You
362 may use XKB key names here (*xev*(1) is a good tool for discovering these). 362 may use XKB key names here (*xev*(1) is a good tool for discovering these).
@@ -382,6 +382,10 @@ runtime.
382 define bindings which will be exempt from pass-through to such 382 define bindings which will be exempt from pass-through to such
383 software. The same preference logic as for _--locked_ applies. 383 software. The same preference logic as for _--locked_ applies.
384 384
385 Unless the flag _--no-repeat_ is set, the command will be run
386 repeatedly when the key is held, according to the repeat
387 settings specified in the input configuration.
388
385 Bindings to keysyms are layout-dependent. This can be changed with the 389 Bindings to keysyms are layout-dependent. This can be changed with the
386 _--to-code_ flag. In this case, the keysyms will be translated into the 390 _--to-code_ flag. In this case, the keysyms will be translated into the
387 corresponding keycodes in the first configured layout. 391 corresponding keycodes in the first configured layout.