add niri config with most keybinds

some of the keybinds are a little insane at this point but thats because
im moving from a non-scrolling setup
This commit is contained in:
Gabriella Bere 2025-10-12 02:12:17 +01:00
parent c83b8ab6bf
commit 76a2f0daec
2 changed files with 29 additions and 24 deletions

View file

@ -24,6 +24,7 @@
./packages.nix ./packages.nix
./plasma.nix ./plasma.nix
./thunderbird.nix ./thunderbird.nix
./niri.nix
]; ];
home.stateVersion = "24.05"; home.stateVersion = "24.05";

View file

@ -1,30 +1,34 @@
{...}: { { pkgs, config, ... }: {
programs.niri = { programs.niri = {
enable = true; enable = true;
package = pkgs.niri;
settings = { settings = {
outputs = { input.mod-key = "SUPER";
"eDP-2" = { binds = with config.lib.niri.actions; {
position = { "Mod+1".action = spawn "kitty";
x = 0; "Mod+2".action = show-hotkey-overlay;
y = 0; "Mod+F11".action = fullscreen-window;
}; "Mod+F".action = spawn "librewolf";
}; "Mod+D".action = spawn "vesktop";
# "lenovo-1" = { "Mod+Space".action = spawn "sh -c 'wofi --show drun, run'";
# position = { "Print".action = screenshot;
# x = -960; "Mod+Alt+L".action = spawn "hyprlock";
# y = -1080; "Mod+x".action = close-window;
# }; "Mod+Tab".action = toggle-window-floating;
# }; "Mod+h".action = focus-column-or-monitor-left;
# "lenovo-2" = { "Mod+j".action = focus-window-or-monitor-down;
# position = { "Mod+k".action = focus-window-or-monitor-up;
# x = 960; "Mod+l".action = focus-column-or-monitor-right;
# y = 1080; "Mod+Shift+h".action = consume-or-expel-window-left; # no idea if this should be swap-window-left instead
# }; "Mod+Shift+j".action = move-window-down-or-to-workspace-down;
# }; "Mod+Shift+k".action = move-window-up-or-to-workspace-up;
}; "Mod+Shift+l".action = consume-or-expel-window-right; # see above comment
binds = { "Mod+WheelScrollUp".action = focus-workspace-up;
"Mod+1".action.spawn = "alacritty"; "Mod+WheelScrollDown".action = focus-workspace-down; # not sure if these mouse scroll keybinds are in the right direction
"Mod+1".hotkey-overlay.hidden = false; "Mod+Up".action = focus-workspace-up;
"Mod+Down".action = focus-workspace-down;
# not sure how to do the "send window to workspace" keybinds from the hyprland config
}; };
}; };
}; };