adjust gnome window management keymap

This commit is contained in:
Yan Lin 2025-10-27 15:33:38 +01:00
parent 968009bffb
commit af00015d69
2 changed files with 34 additions and 6 deletions

View file

@ -74,15 +74,15 @@ in
description = "AI for Material"; description = "AI for Material";
windows = [ windows = [
{ {
name = "agent"; name = "code";
path = homePath "Documents/Projects/Material AI Agent"; path = homePath "Documents/Projects/Material AI Agent/code";
ai = true; ai = true;
git = false; git = true;
shell = false; shell = true;
} }
{ {
name = "mds"; name = "";
path = homePath "Documents/Projects/Material Design Shortcut"; path = homePath "Documents/Projects/Material AI Agent";
ai = true; ai = true;
git = false; git = false;
shell = false; shell = false;

View file

@ -39,6 +39,7 @@ in
enabled-extensions = [ enabled-extensions = [
"hidetopbar@mathieu.bidon.ca" "hidetopbar@mathieu.bidon.ca"
"pano@elhan.io" "pano@elhan.io"
"tiling-assistant@leleat-on-github"
]; ];
favorite-apps = [ favorite-apps = [
"org.gnome.Nautilus.desktop" "org.gnome.Nautilus.desktop"
@ -102,6 +103,32 @@ in
"com/github/libpinyin/ibus-libpinyin/libpinyin" = { "com/github/libpinyin/ibus-libpinyin/libpinyin" = {
lookup-table-page-size = 7; # Number of candidates displayed (default: 5) lookup-table-page-size = 7; # Number of candidates displayed (default: 5)
}; };
# Window tiling keybindings - vim-style with Super+HJKL
"org/gnome/mutter/keybindings" = {
toggle-tiled-left = [ "<Super>h" ]; # Tile left: Super+H or Super+Left
toggle-tiled-right = [ "<Super>l" ]; # Tile right: Super+L or Super+Right
};
"org/gnome/desktop/wm/keybindings" = {
maximize = [ "<Super>k" ]; # Maximize: Super+K or Super+Up
unmaximize = [ "<Super>j" ]; # Unmaximize: Super+J or Super+Down
minimize = [ "<Super>m" ]; # Minimize: Super+M (was Super+H)
};
# Lock screen keybinding - moved from Super+L to Super+Escape to avoid conflict
"org/gnome/settings-daemon/plugins/media-keys" = {
screensaver = [ "<Super>Escape" ]; # Lock screen: Super+Escape (was Super+L)
};
# Tiling Assistant - quarter corner tiling keybindings
# Mapped to R/T/F/G keys to mirror their physical positions on keyboard
"org/gnome/shell/extensions/tiling-assistant" = {
tile-topleft-quarter = [ "<Super>r" ]; # Top-left: Super+R
tile-topright-quarter = [ "<Super>t" ]; # Top-right: Super+T
tile-bottomleft-quarter = [ "<Super>f" ]; # Bottom-left: Super+F
tile-bottomright-quarter = [ "<Super>g" ]; # Bottom-right: Super+G
};
}; };
# IBus Mozc (Japanese) configuration - default to Hiragana input mode # IBus Mozc (Japanese) configuration - default to Hiragana input mode
@ -159,6 +186,7 @@ in
home.packages = with pkgs; [ home.packages = with pkgs; [
gnomeExtensions.hide-top-bar gnomeExtensions.hide-top-bar
gnomeExtensions.pano gnomeExtensions.pano
gnomeExtensions.tiling-assistant
]; ];
# Custom desktop file for opening text files with Neovim in Ghostty # Custom desktop file for opening text files with Neovim in Ghostty