Split hyprland config and add ly display manager

This commit is contained in:
2025-11-27 14:16:28 +01:00
parent 2c96b2cf0e
commit ce404f7be1
3 changed files with 17 additions and 10 deletions
+71
View File
@@ -0,0 +1,71 @@
{ pkgs, ... }:
{
services.displayManager.ly.enable = true;
programs.waybar.enable = true;
wayland.windowManager.hyprland =
let
# workspaces
# binds $mod + [shift +] {1..9} to [move to] workspace {1..9}
workspaces = builtins.concatLists (
builtins.genList (
i:
let
ws = toString (i + 1);
in
[
"ALT, ${ws}, workspace, ${ws}"
"ALTSHIFT, ${ws}, movetoworkspace, ${ws}"
]
) 9
);
in
{
enable = true;
package = pkgs.hyprland;
xwayland.enable = true;
settings = {
monitor = [
",1920x1080@60,0x0,1"
];
"$mod" = "SUPER";
bind = [
"ALTSHIFT,Q,killactive,"
"ALT,V,togglefloating,"
"ALT,F,fullscreen,1"
"ALTSHIFT,F,fullscreen,0"
"$mod,Return,exec,kitty"
"$mod,F,exec,firefox"
"ALT,H,movefocus,l"
"ALT,L,movefocus,r"
"ALT,K,movefocus,u"
"ALT,J,movefocus,d"
"ALTSHIFT,H,movewindow,l"
"ALTSHIFT,L,movewindow,r"
"ALTSHIFT,K,movewindow,u"
"ALTSHIFT,J,movewindow,d"
]
++ workspaces;
windowrule = "bordersize 0, fullscreen:1";
general = {
gaps_in = 2;
gaps_out = 2;
"col.active_border" = "0xff888888";
};
animations.animation = [
"windows,1,4,default"
"border,1,5,default"
"fadeIn,1,5,default"
"workspaces,1,3,default"
];
cursor.no_warps = true;
};
};
}