From eb7d20c638e8912747ee21a4b8de95dd27bb7aba Mon Sep 17 00:00:00 2001 From: Kirill Chibisov Date: Thu, 2 Nov 2023 00:09:31 +0400 Subject: Add action to switch layouts Allow users to trigger layout change with custom bindings. --- resources/default-config.kdl | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'resources') diff --git a/resources/default-config.kdl b/resources/default-config.kdl index 4878646c..cede85b5 100644 --- a/resources/default-config.kdl +++ b/resources/default-config.kdl @@ -230,6 +230,14 @@ binds { Mod+Shift+Minus { set-window-height "-10%"; } Mod+Shift+Equal { set-window-height "+10%"; } + // Actions to switch layouts. + // Note: if you uncomment these, make sure you do NOT have + // a matching layout switch hotkey configured in xkb options above. + // Having both at once on the same hotkey will break the switching, + // since it will switch twice upon pressing the hotkey (once by xkb, once by niri). + // Mod+Space { switch-layout "next"; } + // Mod+Shift+Space { switch-layout "prev"; } + Print { screenshot; } Ctrl+Print { screenshot-screen; } Alt+Print { screenshot-window; } -- cgit