flakes/navi/laniakea/hyprland.nix
2026-04-10 18:50:25 +03:00

142 lines
3.6 KiB
Nix

{pkgs, ...}: {
home.packages = with pkgs; [
rose-pine-hyprcursor
wpaperd
];
home.file.".config/wpaperd/config.toml".text = ''
[any]
path = "/home/laniakea/.glitch.png"
'';
wayland.windowManager.hyprland = {
enable = true;
systemd.enable = false;
settings = {
"$mod" = "SUPER";
"$terminal" = "kitty";
"$filemanager" = "nautilus";
"$launcher" = "anyrun";
monitor = [
"eDP-1,1920x1080@60,2560x0,1"
];
exec-once = [
"hyprctl setcursor rose-pine-hyprcursor 24"
"wpaperd -d"
"eww daemon"
"eww open bar"
];
input = {
kb_layout = "us,il";
};
general = {
gaps_in = "5";
gaps_out = "20";
border_size = "2";
"col.active_border" = "rgb(b4befe)";
"col.inactive_border" = "rgb(6c7086)";
layout = "dwindle";
};
dwindle = {
preserve_split = "true";
};
decoration = {
rounding = "5";
rounding_power = "2";
active_opacity = "0.95";
inactive_opacity = "0.80";
blur = {
enabled = "true";
size = "10";
passes = "3";
vibrancy = "0.0";
};
};
animations = {
enabled = "true";
};
layerrule = [
"no_anim on, match:namespace anyrun"
"blur on, ignore_alpha 1, match:namespace gtk-layer-shell"
];
windowrule = [
"float on, center on, match:class .*"
"size 800 500, match:class kitty"
"size 1000 650, match:class firefox"
"size 900 600, match:class org.gnome.Nautilus"
"workspace 5, match:class tidal-hifi"
"workspace 6, match:class vesktop"
];
bind =
[
"$mod, RETURN, exec, $terminal"
"$mod, E, exec, $filemanager"
", Print, exec, grimblast copy area"
"$mod, SPACE, exec, $launcher"
"$mod, M, exec, uwsm stop"
"$mod, Q, killactive"
"$mod, F, togglefloating"
"$mod, S, exec, grimblast copy area"
# Focus with arrows
"$mod, left, movefocus, l"
"$mod, right, movefocus, r"
"$mod, up, movefocus, u"
"$mod, down, movefocus, d"
"$mod, h, movefocus, l"
"$mod, l, movefocus, r"
"$mod, k, movefocus, u"
"$mod, j, movefocus, d"
"$mod SHIFT, h, resizeactive, -30 0"
"$mod SHIFT, l, resizeactive, 30 0"
"$mod SHIFT, k, resizeactive, 0 -30"
"$mod SHIFT, j, resizeactive, 0 30"
"$mod, mouse_down, workspace, e+1"
"$mod, mouse_up, workspace, e-1"
"$mod, escape, exec, hyprctl switchxkblayout josefadamcik-sofle next"
]
++ (
builtins.concatLists (builtins.genList (
i: let
ws = i + 1;
in [
"$mod, code:1${toString i}, workspace, ${toString ws}"
"$mod SHIFT, code:1${toString i}, movetoworkspace, ${toString ws}"
]
)
9)
);
bindm = [
"$mod, mouse:272, movewindow"
"$mod, mouse:273, resizewindow"
];
bindl = [
", XF86AudioNext, exec, playerctl next"
", XF86AudioPrev, exec, playerctl previous"
", XF86AudioPlay, exec, playerctl play-pause"
", XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"
];
bindel = [
", XF86AudioRaiseVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+"
", XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-"
];
};
};
}