Allow some applications to inhibit shortcuts

Virtualization and remote desktop applications should be able to
inhibit keyboard shortcuts.
This commit is contained in:
Alexander Oakman 2024-08-19 22:31:17 +03:00
parent b4cef4847a
commit 34e6157757

View file

@ -64,3 +64,12 @@ for_window [con_mark="Browser"] {
# keyboard. Chrome currently abuses this by enabling it for all "--app=..."
# shortcuts.
seat * shortcuts_inhibitor disable
# mark applications for which shortcuts inhibition is allowed
for_window [class="[Vv]irt-"] mark Grabbing
for_window [class="[Rr]eminna"] mark Grabbing
for_window [app_id="[Vv]irt-"] mark Grabbing
for_window [app_id="[Rr]emmina"] mark Grabbing
# inhibit keyboard shortcuts for marked applications
for_window [con_mark="Grabbing"] shortcuts_inhibitor enable