From ebf51040e1965539e71d010794d447942e45c94e Mon Sep 17 00:00:00 2001 From: Yan Lin Date: Fri, 31 Oct 2025 16:03:06 +0100 Subject: [PATCH] adjust gnome tiling keymapping --- modules/gnome.nix | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/modules/gnome.nix b/modules/gnome.nix index 9448e85..0691d1c 100644 --- a/modules/gnome.nix +++ b/modules/gnome.nix @@ -120,6 +120,28 @@ in tile-bottomright-quarter = [ "g" ]; # Bottom-right: Super+G }; + # Mutter keybindings - window tiling (vim-style hjkl) + "org/gnome/mutter/keybindings" = { + toggle-tiled-left = [ "h" ]; # Tile left: Super+h (replaces Super+Left) + toggle-tiled-right = [ "l" ]; # Tile right: Super+l (replaces Super+Right) + }; + + # Window manager keybindings (vim-style hjkl) + "org/gnome/desktop/wm/keybindings" = { + # Window maximize/restore + maximize = [ "k" ]; # Maximize: Super+k (replaces Super+Up) + unmaximize = [ "j" ]; # Restore: Super+j (replaces Super+Down) + + # Move window between monitors + move-to-monitor-left = [ "h" ]; # Move left: Super+Shift+h + move-to-monitor-right = [ "l" ]; # Move right: Super+Shift+l + move-to-monitor-up = [ "k" ]; # Move up: Super+Shift+k + move-to-monitor-down = [ "j" ]; # Move down: Super+Shift+j + + # Disable conflicting keybindings + minimize = []; # Disable Super+h conflict + }; + }; # IBus Mozc (Japanese) configuration - default to Hiragana input mode