diff options
author | Linus Heckemann <[email protected]> | 2020-03-23 12:34:04 +0100 |
---|---|---|
committer | Simon Ser <[email protected]> | 2020-03-30 14:18:27 +0200 |
commit | df48c48123de88a91362844881fa20eddc30f597 (patch) | |
tree | 307ec481503f0090519565dbf2c22b14e66ab5c0 /sway/sway.5.scd | |
parent | 5e41e6600beb7e80b5c621021e0b61a2a1dc0ac0 (diff) |
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.scd | 6 |
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. for_window <criteria> move container to output <output> *bindsym* [--whole-window] [--border] [--exclude-titlebar] [--release] [--locked] \ -[--to-code] [--input-device=<device>] [--no-warn] [Group<1-4>+]<key combo> \ +[--to-code] [--input-device=<device>] [--no-warn] [--no-repeat] [Group<1-4>+]<key combo> \ <command> Binds _key combo_ to execute the sway command _command_ when pressed. You may use XKB key names here (*xev*(1) is a good tool for discovering these). @@ -382,6 +382,10 @@ runtime. define bindings which will be exempt from pass-through to such software. The same preference logic as for _--locked_ applies. + Unless the flag _--no-repeat_ is set, the command will be run + repeatedly when the key is held, according to the repeat + settings specified in the input configuration. + Bindings to keysyms are layout-dependent. This can be changed with the _--to-code_ flag. In this case, the keysyms will be translated into the corresponding keycodes in the first configured layout. |