diff options
author | Brian Ashworth <bosrsf04@gmail.com> | 2018-10-18 13:13:40 -0400 |
---|---|---|
committer | Brian Ashworth <bosrsf04@gmail.com> | 2018-10-18 13:42:01 -0400 |
commit | 2e637b7368de565a85f77fbd03408f33b763dd7b (patch) | |
tree | 00f3a082111e02dc2d7e7e54af60db4e58ebfc26 /sway/sway.5.scd | |
parent | Merge pull request #2874 from ianyfan/swaybar (diff) | |
download | sway-2e637b7368de565a85f77fbd03408f33b763dd7b.tar.gz sway-2e637b7368de565a85f77fbd03408f33b763dd7b.tar.zst sway-2e637b7368de565a85f77fbd03408f33b763dd7b.zip |
cmd_bind{sym,code}: Implement per-device bindings
bindsym --input-device=<identifier> ...
bindcode --input-device=<identifier> ...
Diffstat (limited to 'sway/sway.5.scd')
-rw-r--r-- | sway/sway.5.scd | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/sway/sway.5.scd b/sway/sway.5.scd index f6f0e859..e5e7918f 100644 --- a/sway/sway.5.scd +++ b/sway/sway.5.scd | |||
@@ -257,20 +257,22 @@ runtime. | |||
257 | 257 | ||
258 | for\_window <criteria> move container to output <output> | 258 | for\_window <criteria> move container to output <output> |
259 | 259 | ||
260 | *bindsym* [--release|--locked] <key combo> <command> | 260 | *bindsym* [--release|--locked] [--input-device=<device>] <key combo> <command> |
261 | Binds _key combo_ to execute the sway command _command_ when pressed. You | 261 | Binds _key combo_ to execute the sway command _command_ when pressed. You |
262 | may use XKB key names here (*xev*(1) is a good tool for discovering these). | 262 | may use XKB key names here (*xev*(1) is a good tool for discovering these). |
263 | With the flag _--release_, the command is executed when the key combo is | 263 | With the flag _--release_, the command is executed when the key combo is |
264 | released. Unless the flag _--locked_ is set, the command will not be run | 264 | released. Unless the flag _--locked_ is set, the command will not be run |
265 | when a screen locking program is active. | 265 | when a screen locking program is active. If _input-device_ is given, the |
266 | binding will only be executed for that input device and will be executed | ||
267 | instead of any binding that is generic to all devices. | ||
266 | 268 | ||
267 | Example: | 269 | Example: |
268 | 270 | ||
269 | # Execute firefox when alt, shift, and f are pressed together | 271 | # Execute firefox when alt, shift, and f are pressed together |
270 | bindsym Mod1+Shift+f exec firefox | 272 | bindsym Mod1+Shift+f exec firefox |
271 | 273 | ||
272 | *bindcode* [--release|--locked] <code> <command> is also available for | 274 | *bindcode* [--release|--locked] [--input-device=<device>] <code> <command> |
273 | binding with key codes instead of key names. | 275 | is also available for binding with key codes instead of key names. |
274 | 276 | ||
275 | *client.<class>* <border> <background> <text> <indicator> <child\_border> | 277 | *client.<class>* <border> <background> <text> <indicator> <child\_border> |
276 | Configures the color of window borders and title bars. All 5 colors are | 278 | Configures the color of window borders and title bars. All 5 colors are |