aboutsummaryrefslogtreecommitdiffstats
path: root/sway/sway.5.scd
diff options
context:
space:
mode:
authorLibravatar Brian Ashworth <bosrsf04@gmail.com>2019-07-09 02:57:59 -0400
committerLibravatar Simon Ser <contact@emersion.fr>2019-07-09 10:00:57 +0300
commit152e30c374382eecccb917e5c26d72a2ea53ef87 (patch)
tree9baab29c015d6246c0a00e1d596c54ced0e7384b /sway/sway.5.scd
parentMake mouse drag in tiled mode swap containers if no edge is selected (diff)
downloadsway-152e30c374382eecccb917e5c26d72a2ea53ef87.tar.gz
sway-152e30c374382eecccb917e5c26d72a2ea53ef87.tar.zst
sway-152e30c374382eecccb917e5c26d72a2ea53ef87.zip
cmd_bindswitch: add option to execute on reload
This adds a --reload flag to cmd_bindswitch that allows for the binding to be executed on reload. One possible use case for this is to allow users to disable outputs when the lid closes and enable them when the lid opens without having to open and re-close the lid after a reload.
Diffstat (limited to 'sway/sway.5.scd')
-rw-r--r--sway/sway.5.scd7
1 files changed, 6 insertions, 1 deletions
diff --git a/sway/sway.5.scd b/sway/sway.5.scd
index 90d7fed8..ca47c1f9 100644
--- a/sway/sway.5.scd
+++ b/sway/sway.5.scd
@@ -378,7 +378,7 @@ runtime.
378 *bindcode* [--whole-window] [--border] [--exclude-titlebar] [--release] [--locked] [--input-device=<device>] [--no-warn] <code> <command> 378 *bindcode* [--whole-window] [--border] [--exclude-titlebar] [--release] [--locked] [--input-device=<device>] [--no-warn] <code> <command>
379 is also available for binding with key/button codes instead of key/button names. 379 is also available for binding with key/button codes instead of key/button names.
380 380
381*bindswitch* [--locked] [--no-warn] <switch>:<state> <command> 381*bindswitch* [--locked] [--no-warn] [--reload] <switch>:<state> <command>
382 Binds <switch> to execute the sway command _command_ on state changes. 382 Binds <switch> to execute the sway command _command_ on state changes.
383 Supported switches are _lid_ (laptop lid) and _tablet_ (tablet mode) 383 Supported switches are _lid_ (laptop lid) and _tablet_ (tablet mode)
384 switches. Valid values for _state_ are _on_, _off_ and _toggle_. These 384 switches. Valid values for _state_ are _on_, _off_ and _toggle_. These
@@ -391,6 +391,11 @@ runtime.
391 and without _--locked_, the one with will be preferred when locked and the 391 and without _--locked_, the one with will be preferred when locked and the
392 one without will be preferred when unlocked. 392 one without will be preferred when unlocked.
393 393
394 If the _--reload_ flag is given, the binding will also be executed when
395 the config is reloaded. _toggle_ bindings will not be executed on reload.
396 The _--locked_ flag will operate as normal so if the config is reloaded
397 while locked and _--locked_ is not given, the binding will not be executed.
398
394 By default, if you overwrite a binding, swaynag will give you a warning. To 399 By default, if you overwrite a binding, swaynag will give you a warning. To
395 silence this, use the _--no-warn_ flag. 400 silence this, use the _--no-warn_ flag.
396 401