Changed: Hyprland

This commit is contained in:
DerGrumpf 2025-03-25 01:59:21 +01:00
parent 4d29ca7b6d
commit ca52e2776f
2 changed files with 43 additions and 17 deletions

View File

@ -22,9 +22,16 @@
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05";
hyprland.url = "github:hyprwm/Hyprland";
home-manager.url = "github:nix-community/home-manager/release-24.05";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
hyprland-plugins = {
url = "github:hyprwm/hyprland-plugins";
inputs.hyprland.follows = "hyprland";
};
catppuccin-bat = {
url = "github:catppuccin/bat";
flake = false;

View File

@ -1,8 +1,16 @@
{ pkgs, ...}:
{ inputs, pkgs, ...}:
{
programs.kitty.enable = true;
wayland.windowManager.hyprland.enable = true;
wayland.windowManager.hyprland = {
enable = true;
package = null;
portalPackage = null;
systemd.variables = [ "--all" ];
plugins = [
inputs.hyprland-plugins.packages.${pkgs.stdenv.hostPlatform.system}.hyprbars
];
};
home.sessionVariables.NIXOS_OZONE_WL = "1";
wayland.windowManager.hyprland.settings = {
@ -20,6 +28,17 @@
"$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)
);
};
}