Add hyprland config

This commit is contained in:
2026-01-16 00:15:13 +01:00
parent a1026de8e1
commit 19cd15ebc5

View File

@@ -16,12 +16,84 @@
};
home.packages = with pkgs; [
kitty
wofi
];
programs.kitty = {
enable = true;
settings.confirm_quit = false;
};
programs.direnv = {
enable = true;
enableZshIntegration = true;
nix-direnv.enable = true;
};
wayland.windowManager.hyprland = {
enable = true;
settings = {
### MONITOR
monitor = [
",preferred,auto,1"
];
### VARIABLES
"$mod" = "SUPER";
"$terminal" = "kitty";
"$menu" = "wofi --show drun";
### BASIC LAYOUT
general = {
layout = "dwindle";
resize_on_border = true;
};
decoration = {
rounding = 5; # increase/decrease for more/less round
};
### INPUT
input = {
kb_layout = "us";
};
### KEYBINDINGS
bind = [
# Apps
"$mod, RETURN, exec, $terminal"
"$mod, D, exec, $menu"
"$mod, Q, killactive"
"$mod, F, fullscreen"
"$mod, M, exit"
# Focus
"$mod, LEFT, movefocus, l"
"$mod, RIGHT, movefocus, r"
"$mod, UP, movefocus, u"
"$mod, DOWN, movefocus, d"
# Workspaces
"$mod, 1, workspace, 1"
"$mod, 2, workspace, 2"
"$mod, 3, workspace, 3"
"$mod, 4, workspace, 4"
"$mod, 5, workspace, 5"
"$mod SHIFT, 1, movetoworkspace, 1"
"$mod SHIFT, 2, movetoworkspace, 2"
"$mod SHIFT, 3, movetoworkspace, 3"
"$mod SHIFT, 4, movetoworkspace, 4"
"$mod SHIFT, 5, movetoworkspace, 5"
];
bindm = [
"$mod, mouse:272, movewindow"
"$mod, mouse:273, resizewindow"
];
};
};
}