home/programs/niri: change prefix from Mod to Alt

This commit is contained in:
Anthony Rodriguez 2024-10-09 16:02:57 +02:00
parent 97eb5af13c
commit 9d4b0e9279
Signed by: nezia
GPG key ID: EE3BE97C040A86CE

View file

@ -6,119 +6,119 @@
}: let }: let
appLauncher = "fuzzel"; appLauncher = "fuzzel";
terminal = "foot"; terminal = "foot";
prefix = "Alt";
in { in {
programs.niri.settings.binds = { programs.niri.settings.binds = {
"Mod+D".action.spawn = appLauncher; "${prefix}+D".action.spawn = appLauncher;
"Mod+Return".action.spawn = terminal; "${prefix}+Return".action.spawn = terminal;
"Mod+Shift+E".action.quit.skip-confirmation = true; "${prefix}+Shift+E".action.quit.skip-confirmation = true;
"Mod+Shift+Slash".action = config.lib.niri.actions.show-hotkey-overlay; "${prefix}+Shift+Slash".action = config.lib.niri.actions.show-hotkey-overlay;
"Mod+Q".action = config.lib.niri.actions.close-window; "${prefix}+Q".action = config.lib.niri.actions.close-window;
"Mod+F".action = config.lib.niri.actions.maximize-column; "${prefix}+F".action = config.lib.niri.actions.maximize-column;
"Mod+Shift+F".action = config.lib.niri.actions.fullscreen-window; "${prefix}+Shift+F".action = config.lib.niri.actions.fullscreen-window;
"Mod+C".action = config.lib.niri.actions.center-column; "${prefix}+C".action = config.lib.niri.actions.center-column;
# Focus # Focus
"Mod+Left".action = config.lib.niri.actions.focus-column-left; "${prefix}+Left".action = config.lib.niri.actions.focus-column-left;
"Mod+Down".action = config.lib.niri.actions.focus-window-down; "${prefix}+Down".action = config.lib.niri.actions.focus-window-down;
"Mod+Up".action = config.lib.niri.actions.focus-window-up; "${prefix}+Up".action = config.lib.niri.actions.focus-window-up;
"Mod+Right".action = config.lib.niri.actions.focus-column-right; "${prefix}+Right".action = config.lib.niri.actions.focus-column-right;
"Mod+H".action = config.lib.niri.actions.focus-column-left; "${prefix}+H".action = config.lib.niri.actions.focus-column-left;
"Mod+J".action = config.lib.niri.actions.focus-window-down; "${prefix}+J".action = config.lib.niri.actions.focus-window-down;
"Mod+K".action = config.lib.niri.actions.focus-window-up; "${prefix}+K".action = config.lib.niri.actions.focus-window-up;
"Mod+L".action = config.lib.niri.actions.focus-column-right; "${prefix}+L".action = config.lib.niri.actions.focus-column-right;
"Mod+Home".action = config.lib.niri.actions.focus-column-first; "${prefix}+Home".action = config.lib.niri.actions.focus-column-first;
"Mod+End".action = config.lib.niri.actions.focus-column-last; "${prefix}+End".action = config.lib.niri.actions.focus-column-last;
# Move # Move
"Mod+Ctrl+Left".action = config.lib.niri.actions.move-column-left; "${prefix}+Ctrl+Left".action = config.lib.niri.actions.move-column-left;
"Mod+Ctrl+Down".action = config.lib.niri.actions.move-window-down; "${prefix}+Ctrl+Down".action = config.lib.niri.actions.move-window-down;
"Mod+Ctrl+Up".action = config.lib.niri.actions.move-window-up; "${prefix}+Ctrl+Up".action = config.lib.niri.actions.move-window-up;
"Mod+Ctrl+Right".action = config.lib.niri.actions.move-column-right; "${prefix}+Ctrl+Right".action = config.lib.niri.actions.move-column-right;
"Mod+Ctrl+H".action = config.lib.niri.actions.move-column-left; "${prefix}+Ctrl+H".action = config.lib.niri.actions.move-column-left;
"Mod+Ctrl+J".action = config.lib.niri.actions.move-window-down; "${prefix}+Ctrl+J".action = config.lib.niri.actions.move-window-down;
"Mod+Ctrl+K".action = config.lib.niri.actions.move-window-up; "${prefix}+Ctrl+K".action = config.lib.niri.actions.move-window-up;
"Mod+Ctrl+L".action = config.lib.niri.actions.move-column-right; "${prefix}+Ctrl+L".action = config.lib.niri.actions.move-column-right;
"Mod+Ctrl+Home".action = config.lib.niri.actions.move-column-to-first; "${prefix}+Ctrl+Home".action = config.lib.niri.actions.move-column-to-first;
"Mod+Ctrl+End".action = config.lib.niri.actions.move-column-to-last; "${prefix}+Ctrl+End".action = config.lib.niri.actions.move-column-to-last;
# Monitor focus # Monitor focus
"Mod+Shift+Left".action = config.lib.niri.actions.focus-monitor-left; "${prefix}+Shift+Left".action = config.lib.niri.actions.focus-monitor-left;
"Mod+Shift+Down".action = config.lib.niri.actions.focus-monitor-down; "${prefix}+Shift+Down".action = config.lib.niri.actions.focus-monitor-down;
"Mod+Shift+Up".action = config.lib.niri.actions.focus-monitor-up; "${prefix}+Shift+Up".action = config.lib.niri.actions.focus-monitor-up;
"Mod+Shift+Right".action = config.lib.niri.actions.focus-monitor-right; "${prefix}+Shift+Right".action = config.lib.niri.actions.focus-monitor-right;
"Mod+Shift+H".action = config.lib.niri.actions.focus-monitor-left; "${prefix}+Shift+H".action = config.lib.niri.actions.focus-monitor-left;
"Mod+Shift+J".action = config.lib.niri.actions.focus-monitor-down; "${prefix}+Shift+J".action = config.lib.niri.actions.focus-monitor-down;
"Mod+Shift+K".action = config.lib.niri.actions.focus-monitor-up; "${prefix}+Shift+K".action = config.lib.niri.actions.focus-monitor-up;
"Mod+Shift+L".action = config.lib.niri.actions.focus-monitor-right; "${prefix}+Shift+L".action = config.lib.niri.actions.focus-monitor-right;
# Move to monitor # Move to monitor
"Mod+Shift+Ctrl+Left".action = config.lib.niri.actions.move-column-to-monitor-left; "${prefix}+Shift+Ctrl+Left".action = config.lib.niri.actions.move-column-to-monitor-left;
"Mod+Shift+Ctrl+Down".action = config.lib.niri.actions.move-column-to-monitor-down; "${prefix}+Shift+Ctrl+Down".action = config.lib.niri.actions.move-column-to-monitor-down;
"Mod+Shift+Ctrl+Up".action = config.lib.niri.actions.move-column-to-monitor-up; "${prefix}+Shift+Ctrl+Up".action = config.lib.niri.actions.move-column-to-monitor-up;
"Mod+Shift+Ctrl+Right".action = config.lib.niri.actions.move-column-to-monitor-right; "${prefix}+Shift+Ctrl+Right".action = config.lib.niri.actions.move-column-to-monitor-right;
"Mod+Shift+Ctrl+H".action = config.lib.niri.actions.move-column-to-monitor-left; "${prefix}+Shift+Ctrl+H".action = config.lib.niri.actions.move-column-to-monitor-left;
"Mod+Shift+Ctrl+J".action = config.lib.niri.actions.move-column-to-monitor-down; "${prefix}+Shift+Ctrl+J".action = config.lib.niri.actions.move-column-to-monitor-down;
"Mod+Shift+Ctrl+K".action = config.lib.niri.actions.move-column-to-monitor-up; "${prefix}+Shift+Ctrl+K".action = config.lib.niri.actions.move-column-to-monitor-up;
"Mod+Shift+Ctrl+L".action = config.lib.niri.actions.move-column-to-monitor-right; "${prefix}+Shift+Ctrl+L".action = config.lib.niri.actions.move-column-to-monitor-right;
# Workspace navigation # Workspace navigation
"Mod+Page_Down".action = config.lib.niri.actions.focus-workspace-down; "${prefix}+Page_Down".action = config.lib.niri.actions.focus-workspace-down;
"Mod+Page_Up".action = config.lib.niri.actions.focus-workspace-up; "${prefix}+Page_Up".action = config.lib.niri.actions.focus-workspace-up;
"Mod+U".action = config.lib.niri.actions.focus-workspace-down; "${prefix}+U".action = config.lib.niri.actions.focus-workspace-down;
"Mod+I".action = config.lib.niri.actions.focus-workspace-up; "${prefix}+I".action = config.lib.niri.actions.focus-workspace-up;
"Mod+Ctrl+Page_Down".action = config.lib.niri.actions.move-column-to-workspace-down; "${prefix}+Ctrl+Page_Down".action = config.lib.niri.actions.move-column-to-workspace-down;
"Mod+Ctrl+Page_Up".action = config.lib.niri.actions.move-column-to-workspace-up; "${prefix}+Ctrl+Page_Up".action = config.lib.niri.actions.move-column-to-workspace-up;
"Mod+Ctrl+U".action = config.lib.niri.actions.move-column-to-workspace-down; "${prefix}+Ctrl+U".action = config.lib.niri.actions.move-column-to-workspace-down;
"Mod+Ctrl+I".action = config.lib.niri.actions.move-column-to-workspace-up; "${prefix}+Ctrl+I".action = config.lib.niri.actions.move-column-to-workspace-up;
"Mod+Shift+Page_Down".action = config.lib.niri.actions.move-workspace-down; "${prefix}+Shift+Page_Down".action = config.lib.niri.actions.move-workspace-down;
"Mod+Shift+Page_Up".action = config.lib.niri.actions.move-workspace-up; "${prefix}+Shift+Page_Up".action = config.lib.niri.actions.move-workspace-up;
"Mod+Shift+U".action = config.lib.niri.actions.move-workspace-down; "${prefix}+Shift+U".action = config.lib.niri.actions.move-workspace-down;
# Workspace focus # Workspace focus
"Mod+1".action.focus-workspace = 1; "${prefix}+1".action.focus-workspace = 1;
"Mod+2".action.focus-workspace = 2; "${prefix}+2".action.focus-workspace = 2;
"Mod+3".action.focus-workspace = 3; "${prefix}+3".action.focus-workspace = 3;
"Mod+4".action.focus-workspace = 4; "${prefix}+4".action.focus-workspace = 4;
"Mod+5".action.focus-workspace = 5; "${prefix}+5".action.focus-workspace = 5;
"Mod+6".action.focus-workspace = 6; "${prefix}+6".action.focus-workspace = 6;
"Mod+7".action.focus-workspace = 7; "${prefix}+7".action.focus-workspace = 7;
"Mod+8".action.focus-workspace = 8; "${prefix}+8".action.focus-workspace = 8;
"Mod+9".action.focus-workspace = 9; "${prefix}+9".action.focus-workspace = 9;
# Move to workspace # Move to workspace
"Mod+Ctrl+1".action.move-column-to-workspace = 1; "${prefix}+Ctrl+1".action.move-column-to-workspace = 1;
"Mod+Ctrl+2".action.move-column-to-workspace = 2; "${prefix}+Ctrl+2".action.move-column-to-workspace = 2;
"Mod+Ctrl+3".action.move-column-to-workspace = 3; "${prefix}+Ctrl+3".action.move-column-to-workspace = 3;
"Mod+Ctrl+4".action.move-column-to-workspace = 4; "${prefix}+Ctrl+4".action.move-column-to-workspace = 4;
"Mod+Ctrl+5".action.move-column-to-workspace = 5; "${prefix}+Ctrl+5".action.move-column-to-workspace = 5;
"Mod+Ctrl+6".action.move-column-to-workspace = 6; "${prefix}+Ctrl+6".action.move-column-to-workspace = 6;
"Mod+Ctrl+7".action.move-column-to-workspace = 7; "${prefix}+Ctrl+7".action.move-column-to-workspace = 7;
"Mod+Ctrl+8".action.move-column-to-workspace = 8; "${prefix}+Ctrl+8".action.move-column-to-workspace = 8;
"Mod+Ctrl+9".action.move-column-to-workspace = 9; "${prefix}+Ctrl+9".action.move-column-to-workspace = 9;
"Mod+Shift+I".action = config.lib.niri.actions.move-workspace-up; "${prefix}+Shift+I".action = config.lib.niri.actions.move-workspace-up;
# Window management # Window management
"Mod+Comma".action = config.lib.niri.actions.consume-window-into-column; "${prefix}+Comma".action = config.lib.niri.actions.consume-window-into-column;
"Mod+Period".action = config.lib.niri.actions.expel-window-from-column; "${prefix}+Period".action = config.lib.niri.actions.expel-window-from-column;
"Mod+BracketLeft".action = config.lib.niri.actions.consume-or-expel-window-left; "${prefix}+BracketLeft".action = config.lib.niri.actions.consume-or-expel-window-left;
"Mod+BracketRight".action = config.lib.niri.actions.consume-or-expel-window-right; "${prefix}+BracketRight".action = config.lib.niri.actions.consume-or-expel-window-right;
# Column management # Column management
"Mod+R".action = config.lib.niri.actions.switch-preset-column-width; "${prefix}+R".action = config.lib.niri.actions.switch-preset-column-width;
"Mod+Shift+R".action = config.lib.niri.actions.switch-preset-window-height; "${prefix}+Shift+R".action = config.lib.niri.actions.switch-preset-window-height;
"Mod+Ctrl+R".action = config.lib.niri.actions.reset-window-height; "${prefix}+Ctrl+R".action = config.lib.niri.actions.reset-window-height;
"Mod+Minus".action = config.lib.niri.actions.set-column-width "-10%"; "${prefix}+Minus".action = config.lib.niri.actions.set-column-width "-10%";
"Mod+Equal".action = config.lib.niri.actions.set-column-width "+10%"; "${prefix}+Equal".action = config.lib.niri.actions.set-column-width "+10%";
"Mod+Shift+Minus".action = config.lib.niri.actions.set-window-height "-10%"; "${prefix}+Shift+Minus".action = config.lib.niri.actions.set-window-height "-10%";
"Mod+Shift+Equal".action = config.lib.niri.actions.set-window-height "+10%"; "${prefix}+Shift+Equal".action = config.lib.niri.actions.set-window-height "+10%";
# Screenshots # Screenshots
"Print".action = config.lib.niri.actions.screenshot; "Print".action = config.lib.niri.actions.screenshot-screen;
"Ctrl+Print".action = config.lib.niri.actions.screenshot-screen; "Ctrl+Print".action = config.lib.niri.actions.screenshot;
"Alt+Print".action = config.lib.niri.actions.screenshot-window;
# System # System
"Mod+Alt+L".action.spawn = [ "${prefix}+Mod+L".action.spawn = [
"${lib.getExe' pkgs.systemd "loginctl"}" "${lib.getExe' pkgs.systemd "loginctl"}"
"lock-session" "lock-session"
]; ];