aboutsummaryrefslogtreecommitdiffstats
path: root/include/sway/commands.h
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 /include/sway/commands.h
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 'include/sway/commands.h')
-rw-r--r--include/sway/commands.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sway/commands.h b/include/sway/commands.h
index bbbdfc80..3fde0893 100644
--- a/include/sway/commands.h
+++ b/include/sway/commands.h
@@ -288,6 +288,7 @@ sway_cmd seat_cmd_idle_inhibit;
288sway_cmd seat_cmd_idle_wake; 288sway_cmd seat_cmd_idle_wake;
289sway_cmd seat_cmd_keyboard_grouping; 289sway_cmd seat_cmd_keyboard_grouping;
290sway_cmd seat_cmd_pointer_constraint; 290sway_cmd seat_cmd_pointer_constraint;
291sway_cmd seat_cmd_shortcuts_inhibitor;
291sway_cmd seat_cmd_xcursor_theme; 292sway_cmd seat_cmd_xcursor_theme;
292 293
293sway_cmd cmd_ipc_cmd; 294sway_cmd cmd_ipc_cmd;