diff options
author | Michael Weiser <michael.weiser@gmx.de> | 2020-03-12 22:10:04 +0100 |
---|---|---|
committer | Brian Ashworth <bosrsf04@gmail.com> | 2020-05-13 21:22:16 -0400 |
commit | 0f11aa037ad8765abf66e0c90052f9e4c37d56db (patch) | |
tree | e78523c566a1a96d53098bfc7c1d1f104043d373 /sway/sway.5.scd | |
parent | Implement pointer simulation if client hasn't bound to touch (diff) | |
download | sway-0f11aa037ad8765abf66e0c90052f9e4c37d56db.tar.gz sway-0f11aa037ad8765abf66e0c90052f9e4c37d56db.tar.zst sway-0f11aa037ad8765abf66e0c90052f9e4c37d56db.zip |
commands: Add per-view shortcuts_inhibitor command
Add a separate per-view shortcuts_inhibitor command that can be used
with criteria to override the per-seat defaults. This allows to e.g.
disable shortcuts inhibiting globally but enable it for specific,
known-good virtualization and remote desktop software or, alternatively,
to blacklist that one slightly broken piece of software that just
doesn't seem to get it right but insists on trying.
Add a flag to sway_view and handling logic in the input manager that
respects that flag if configured but falls back to per-seat config
otherwise. Add the actual command but with just enable and disable
subcommands since there's no value in duplicating the per-seat
activate/deactivate/toggle logic here. Split the inhibitor retrieval
helper in two so we can use the backend half in the command to retrieve
inhibitors for a specific surface and not just the currently focused
one. Extend the manual page with documentation of the command and
references to its per-seat sibling and usefulness with criteria.
Signed-off-by: Michael Weiser <michael.weiser@gmx.de>
Diffstat (limited to 'sway/sway.5.scd')
-rw-r--r-- | sway/sway.5.scd | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/sway/sway.5.scd b/sway/sway.5.scd index febf749f..9e42d897 100644 --- a/sway/sway.5.scd +++ b/sway/sway.5.scd | |||
@@ -304,6 +304,17 @@ set|plus|minus <amount> | |||
304 | Shows a window from the scratchpad. Repeatedly using this command will | 304 | Shows a window from the scratchpad. Repeatedly using this command will |
305 | cycle through the windows in the scratchpad. | 305 | cycle through the windows in the scratchpad. |
306 | 306 | ||
307 | *shortcuts inhibitor* enable|disable | ||
308 | Enables or disables the ability of clients to inhibit keyboard | ||
309 | shortcuts for a view. This is primarily useful for virtualization and | ||
310 | remote desktop software. It affects either the currently focused view | ||
311 | or a set of views selected by criteria. Subcommand _disable_ | ||
312 | additionally deactivates any active inhibitors for the given view(s). | ||
313 | Criteria are particularly useful with the *for_window* command to | ||
314 | configure a class of views differently from the per-seat defaults | ||
315 | established by the *seat* subcommand of the same name. See | ||
316 | *sway-input*(5) for more ways to affect inhibitors. | ||
317 | |||
307 | *split* vertical|v|horizontal|h|toggle|t | 318 | *split* vertical|v|horizontal|h|toggle|t |
308 | Splits the current container, vertically or horizontally. When _toggle_ is | 319 | Splits the current container, vertically or horizontally. When _toggle_ is |
309 | specified, the current container is split opposite to the parent | 320 | specified, the current container is split opposite to the parent |