aboutsummaryrefslogtreecommitdiff
path: root/resources
diff options
context:
space:
mode:
authorKirill Chibisov <contact@kchibisov.com>2023-11-02 00:09:31 +0400
committerIvan Molodetskikh <yalterz@gmail.com>2023-11-08 19:09:11 +0400
commiteb7d20c638e8912747ee21a4b8de95dd27bb7aba (patch)
tree521ed085c5340a4297f3c3ee98b7b191a95800ef /resources
parent195ca80c3959c35819ef33d84efd5970321b7614 (diff)
downloadniri-eb7d20c638e8912747ee21a4b8de95dd27bb7aba.tar.gz
niri-eb7d20c638e8912747ee21a4b8de95dd27bb7aba.tar.bz2
niri-eb7d20c638e8912747ee21a4b8de95dd27bb7aba.zip
Add action to switch layouts
Allow users to trigger layout change with custom bindings.
Diffstat (limited to 'resources')
-rw-r--r--resources/default-config.kdl8
1 files changed, 8 insertions, 0 deletions
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; }