aboutsummaryrefslogtreecommitdiffstats
path: root/sway/sway-input.5.scd
diff options
context:
space:
mode:
authorLibravatar Michael Weiser <michael.weiser@gmx.de>2020-02-16 00:40:18 +0100
committerLibravatar Brian Ashworth <bosrsf04@gmail.com>2020-03-11 23:51:37 -0400
commit3ee5aace33f1b5673ab372afba38480338ba8b90 (patch)
treea91724f17a916a6075c71f555968fa046973fddd /sway/sway-input.5.scd
parentinput: Add support for keyboard shortcuts inhibit (diff)
downloadsway-3ee5aace33f1b5673ab372afba38480338ba8b90.tar.gz
sway-3ee5aace33f1b5673ab372afba38480338ba8b90.tar.zst
sway-3ee5aace33f1b5673ab372afba38480338ba8b90.zip
commands: Add shortcuts_inhibitor command
Add a command to influence keyboard shortcuts inhibitors. In its current form it can be used to activate, deactivate or toggle an existing inhibitor on the surface currently receiving input. This can be used to define an escape shortcut such as: bindsym --inhibited $mod+Escape seat - shortcuts_inhibitor deactivate It also allows the user to configure a per-seat default of whether keyboard inhibitors are honoured by default (the default) or not. Using the activate/toggle command they can then enable the lingering inhibitor at a later time of their choosing. As a side effect this allows to specifically address a named seat for actions as well, whatever use-case that might serve. Signed-off-by: Michael Weiser <michael.weiser@gmx.de>
Diffstat (limited to 'sway/sway-input.5.scd')
-rw-r--r--sway/sway-input.5.scd19
1 files changed, 19 insertions, 0 deletions
diff --git a/sway/sway-input.5.scd b/sway/sway-input.5.scd
index 9edd9381..c0584241 100644
--- a/sway/sway-input.5.scd
+++ b/sway/sway-input.5.scd
@@ -243,6 +243,25 @@ correct seat.
243 by default) for the seat. This is primarily useful for video games. The 243 by default) for the seat. This is primarily useful for video games. The
244 "escape" command can be used at runtime to escape from a captured client. 244 "escape" command can be used at runtime to escape from a captured client.
245 245
246*seat* <name> shortcuts_inhibitor enable|disable|activate|deactivate|toggle
247 Enables or disables the ability of clients to inhibit keyboard
248 shortcuts for the seat. This is primarily useful for virtualization and
249 remote desktop software. Subcommands _enable_ and _disable_ affect
250 whether future inhibitors are honoured by default, i.e. activated
251 automatically, the default being _enable_. When used at runtime,
252 _disable_ also disables any currently active inhibitors. _activate_,
253 _deactivate_ and _toggle_ are only useable at runtime and change the
254 state of a potentially existing inhibitor on the currently focused
255 window. This can be used with the current seat alias (_-_) to affect
256 only the currently focused window of the current seat. Subcommand
257 _deactivate_ is particularly useful in an _--inhibited_ *bindsym* to
258 escape a state where shortcuts are inhibited and the client becomes
259 uncooperative. It is worth noting that whether disabled or deactivated
260 inhibitors are removed is entirely up to the client. Depending on the
261 client it may therefore be possible to (re-)activate them later. Any
262 visual indication that an inhibitor is present is currently left to the
263 client as well.
264
246*seat* <name> xcursor_theme <theme> [<size>] 265*seat* <name> xcursor_theme <theme> [<size>]
247 Override the system default XCursor theme. The default seat's 266 Override the system default XCursor theme. The default seat's
248 (_seat0_) theme is also used as the default cursor theme in 267 (_seat0_) theme is also used as the default cursor theme in