diff options
author | Brian Ashworth <bosrsf04@gmail.com> | 2019-07-09 02:57:59 -0400 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2019-07-09 10:00:57 +0300 |
commit | 152e30c374382eecccb917e5c26d72a2ea53ef87 (patch) | |
tree | 9baab29c015d6246c0a00e1d596c54ced0e7384b /include/sway/config.h | |
parent | Make mouse drag in tiled mode swap containers if no edge is selected (diff) | |
download | sway-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 'include/sway/config.h')
-rw-r--r-- | include/sway/config.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sway/config.h b/include/sway/config.h index 4adce8ab..c5558c0d 100644 --- a/include/sway/config.h +++ b/include/sway/config.h | |||
@@ -39,6 +39,7 @@ enum binding_flags { | |||
39 | BINDING_CONTENTS=8, // mouse only; trigger on container contents | 39 | BINDING_CONTENTS=8, // mouse only; trigger on container contents |
40 | BINDING_TITLEBAR=16, // mouse only; trigger on container titlebar | 40 | BINDING_TITLEBAR=16, // mouse only; trigger on container titlebar |
41 | BINDING_CODE=32, // keyboard only; convert keysyms into keycodes | 41 | BINDING_CODE=32, // keyboard only; convert keysyms into keycodes |
42 | BINDING_RELOAD=62, // switch only; (re)trigger binding on reload | ||
42 | }; | 43 | }; |
43 | 44 | ||
44 | /** | 45 | /** |