From ce17d0f303a11a8eaaf1a78202002b111bec9008 Mon Sep 17 00:00:00 2001 From: choc Date: Mon, 2 Jan 2023 13:00:29 +0800 Subject: passthrough: allow pausing keybind handling also allows for bitcarrying-esque control of nested instances --- config.def.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'config.def.h') diff --git a/config.def.h b/config.def.h index 4ca65a9..59066f8 100644 --- a/config.def.h +++ b/config.def.h @@ -25,6 +25,9 @@ static const float fullscreen_bg[] = {0.1f, 0.1f, 0.1f, 1.0f}; /* You ca /* logging */ static int log_level = WLR_ERROR; +/* passthrough */ +static int passthrough = 0; + /* NOTE: ALWAYS keep a rule declared even if you don't use rules (e.g leave at least one example) */ static const Rule rules[] = { /* app_id title tags mask isfloating monitor */ @@ -174,6 +177,7 @@ static const Key keys[] = { TAGKEYS( XKB_KEY_7, XKB_KEY_ampersand, 6), TAGKEYS( XKB_KEY_8, XKB_KEY_asterisk, 7), TAGKEYS( XKB_KEY_9, XKB_KEY_parenleft, 8), + { WLR_MODIFIER_ALT|WLR_MODIFIER_LOGO|WLR_MODIFIER_CTRL|WLR_MODIFIER_SHIFT, XKB_KEY_Escape, togglepassthrough, {0} }, { MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_Q, quit, {0} }, /* Ctrl-Alt-Backspace and Ctrl-Alt-Fx used to be handled by X server */ -- cgit v1.2.1