nix-config/home/hyprland/default.nix

45 lines
1.3 KiB
Nix
Raw Normal View History

2025-03-25 01:59:21 +01:00
{ inputs, pkgs, ...}:
2025-03-24 12:11:44 +01:00
2025-03-24 23:01:13 +01:00
{
2025-03-24 23:15:10 +01:00
programs.kitty.enable = true;
2025-03-25 01:59:21 +01:00
wayland.windowManager.hyprland = {
enable = true;
package = null;
portalPackage = null;
systemd.variables = [ "--all" ];
plugins = [
inputs.hyprland-plugins.packages.${pkgs.stdenv.hostPlatform.system}.hyprbars
];
};
2025-03-24 23:15:10 +01:00
home.sessionVariables.NIXOS_OZONE_WL = "1";
2025-03-24 23:01:13 +01:00
2025-03-24 23:15:10 +01:00
wayland.windowManager.hyprland.settings = {
2025-03-25 01:59:21 +01:00
"$mod" = "SUPER";
"$terminal" = "kitty";
"$filemanager" = "dolphin";
bind = [
"$mod, F, exec, firefox"
"$mod, Q, exec, $terminal"
"$mod, C, killactive, "
"$mod, M, exit, "
"$mod, V, togglefloating, "
"$mod, R, exec, $menu"
"$mod, S, exec, $power"
"$mod, P, pseudo, "
"$mod, J, togglesplit, "
] ++ (
# workspaces
# binds $mod + [shift +] {1..9} to [move to] workspace {1..9}
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)
);
2025-03-24 23:15:10 +01:00
};
2025-03-24 12:11:44 +01:00
}