diff --git a/flake.lock b/flake.lock index 54e94c5..2bbdb10 100644 --- a/flake.lock +++ b/flake.lock @@ -547,6 +547,36 @@ "type": "github" } }, + "hyprland-plugins": { + "inputs": { + "hyprland": [ + "hyprland" + ], + "nixpkgs": [ + "hyprland-plugins", + "hyprland", + "nixpkgs" + ], + "systems": [ + "hyprland-plugins", + "hyprland", + "systems" + ] + }, + "locked": { + "lastModified": 1742164373, + "narHash": "sha256-O0SmKvUf5rnDczzVZbhImDzSvrsPwONI3GcWgLdsdzg=", + "owner": "hyprwm", + "repo": "hyprland-plugins", + "rev": "0eb996c3ed89eeed3d493a310acd8eccb62838d9", + "type": "github" + }, + "original": { + "owner": "hyprwm", + "repo": "hyprland-plugins", + "type": "github" + } + }, "hyprland-protocols": { "inputs": { "nixpkgs": [ @@ -1114,6 +1144,7 @@ "inputs": { "home-manager": "home-manager", "hyprland": "hyprland", + "hyprland-plugins": "hyprland-plugins", "nixd": "nixd", "nixos-hardware": "nixos-hardware", "nixpkgs": "nixpkgs_3", diff --git a/flake.nix b/flake.nix index ec9aa09..c87de86 100644 --- a/flake.nix +++ b/flake.nix @@ -57,5 +57,9 @@ stylix.url = "github:danth/stylix"; spicetify-nix.url = "github:Gerg-L/spicetify-nix"; sops-nix.url = "github:Mic92/sops-nix"; + hyprland-plugins = { + url = "github:hyprwm/hyprland-plugins"; + inputs.hyprland.follows = "hyprland"; + }; }; } diff --git a/users/modules/programs/hyprland.nix b/users/modules/programs/hyprland.nix index ce06ffc..150dbed 100644 --- a/users/modules/programs/hyprland.nix +++ b/users/modules/programs/hyprland.nix @@ -1,4 +1,8 @@ { + inputs, + pkgs, + ... +}: { home.sessionVariables.NIXOS_OZONE_WL = "1"; wayland.windowManager.hyprland = { enable = true; @@ -94,6 +98,24 @@ numlock_by_default = true; follow_mouse = 2; # Click on a window to change focus }; + plugin = { + hyprbars = { + # example config + bar_height = 20; + + # example buttons (R -> L) + # hyprbars-button = color, size, on-click + hyprbars-button = [ + "rgb(ff4040), 10, 󰖭, hyprctl dispatch killactive" + "rgb(eeee11), 10, , hyprctl dispatch fullscreen 1" + ]; + }; + }; + # Hyprbars }; + plugins = [ + inputs.hyprland-plugins.packages.${pkgs.system}.hyprbars + # ... + ]; }; }