Changed: Hyprland
This commit is contained in:
		@@ -22,9 +22,16 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
  inputs = {
 | 
					  inputs = {
 | 
				
			||||||
    nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05";
 | 
					    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.url = "github:nix-community/home-manager/release-24.05";
 | 
				
			||||||
    home-manager.inputs.nixpkgs.follows = "nixpkgs";
 | 
					    home-manager.inputs.nixpkgs.follows = "nixpkgs";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    hyprland-plugins = {
 | 
				
			||||||
 | 
					        url = "github:hyprwm/hyprland-plugins";
 | 
				
			||||||
 | 
					        inputs.hyprland.follows = "hyprland";
 | 
				
			||||||
 | 
					    };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    catppuccin-bat = {
 | 
					    catppuccin-bat = {
 | 
				
			||||||
      url = "github:catppuccin/bat";
 | 
					      url = "github:catppuccin/bat";
 | 
				
			||||||
      flake = false;
 | 
					      flake = false;
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,25 +1,44 @@
 | 
				
			|||||||
{ pkgs, ...}:
 | 
					{ inputs, pkgs, ...}:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
    programs.kitty.enable = true;
 | 
					    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";
 | 
					    home.sessionVariables.NIXOS_OZONE_WL = "1";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    wayland.windowManager.hyprland.settings = {
 | 
					    wayland.windowManager.hyprland.settings = {
 | 
				
			||||||
	"$mod" = "SUPER";
 | 
					        "$mod" = "SUPER";
 | 
				
			||||||
    "$terminal" = "kitty";
 | 
					        "$terminal" = "kitty";
 | 
				
			||||||
    "$filemanager" = "dolphin";
 | 
					        "$filemanager" = "dolphin";
 | 
				
			||||||
    
 | 
					        
 | 
				
			||||||
	bind = [
 | 
					        bind = [
 | 
				
			||||||
		"$mod, F, exec, firefox"
 | 
					            "$mod, F, exec, firefox"
 | 
				
			||||||
	    "$mod, Q, exec, $terminal"
 | 
					            "$mod, Q, exec, $terminal"
 | 
				
			||||||
        "$mod, C, killactive, "
 | 
					            "$mod, C, killactive, "
 | 
				
			||||||
        "$mod, M, exit, "
 | 
					            "$mod, M, exit, "
 | 
				
			||||||
        "$mod, V, togglefloating, "
 | 
					            "$mod, V, togglefloating, "
 | 
				
			||||||
        "$mod, R, exec, $menu"
 | 
					            "$mod, R, exec, $menu"
 | 
				
			||||||
        "$mod, S, exec, $power"
 | 
					            "$mod, S, exec, $power"
 | 
				
			||||||
        "$mod, P, pseudo, "
 | 
					            "$mod, P, pseudo, "
 | 
				
			||||||
        "$mod, J, togglesplit, "
 | 
					            "$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)
 | 
				
			||||||
 | 
					        );
 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user