diff options
author | frsfnrrg <frsfnrrg@users.noreply.github.com> | 2018-05-27 12:37:18 -0400 |
---|---|---|
committer | frsfnrrg <frsfnrrg@users.noreply.github.com> | 2018-05-27 13:28:02 -0400 |
commit | a78a5684ea8a19e54d797ab6cddd2f81f88360a5 (patch) | |
tree | 8870a8acc8d92d10d64e9d3d9bfdd28dedb6eea7 /sway/sway.5.scd | |
parent | Merge pull request #2052 from emersion/output-destroy-empty-workspace (diff) | |
download | sway-a78a5684ea8a19e54d797ab6cddd2f81f88360a5.tar.gz sway-a78a5684ea8a19e54d797ab6cddd2f81f88360a5.tar.zst sway-a78a5684ea8a19e54d797ab6cddd2f81f88360a5.zip |
Implement bindsym/bindcode --locked
Adds the --locked flag to bindsym and bindcode commands.
When a keyboard's associated seat has an exclusive client
(i.e, a screenlocker), then bindings are only executed if
they have the locked flag. When there is no such client,
this restriction is lifted.
Diffstat (limited to 'sway/sway.5.scd')
-rw-r--r-- | sway/sway.5.scd | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/sway/sway.5.scd b/sway/sway.5.scd index e6bc5a1e..5d99c9d6 100644 --- a/sway/sway.5.scd +++ b/sway/sway.5.scd | |||
@@ -186,17 +186,20 @@ runtime. | |||
186 | 186 | ||
187 | for\_window <criteria> move container to workspace <workspace> | 187 | for\_window <criteria> move container to workspace <workspace> |
188 | 188 | ||
189 | *bindsym* <key combo> <command> | 189 | *bindsym* [--release|--locked] <key combo> <command> |
190 | Binds _key combo_ to execute the sway command _command_ when pressed. You | 190 | Binds _key combo_ to execute the sway command _command_ when pressed. You |
191 | may use XKB key names here (*xev*(1) is a good tool for discovering these). | 191 | may use XKB key names here (*xev*(1) is a good tool for discovering these). |
192 | With the flag _--release_, the command is executed when the key combo is | ||
193 | released. Unless the flag _--locked_ is set, the command will not be run | ||
194 | when a screen locking program is active. | ||
192 | 195 | ||
193 | Example: | 196 | Example: |
194 | 197 | ||
195 | # Execute firefox when alt, shift, and f are pressed together | 198 | # Execute firefox when alt, shift, and f are pressed together |
196 | bindsym Mod1+Shift+f exec firefox | 199 | bindsym Mod1+Shift+f exec firefox |
197 | 200 | ||
198 | *bindcode* <code> <command> is also available for binding with key codes | 201 | *bindcode* [--release|--locked] <code> <command> is also available for |
199 | instead of key names. | 202 | binding with key codes instead of key names. |
200 | 203 | ||
201 | *client.<class>* <border> <background> <text> <indicator> <child\_border> | 204 | *client.<class>* <border> <background> <text> <indicator> <child\_border> |
202 | Configures the color of window borders and title bars. All 5 colors are | 205 | Configures the color of window borders and title bars. All 5 colors are |