feat(hyprland): add hyprbar plugin

This commit is contained in:
Mohammad Rafiq 2025-03-17 23:14:21 +08:00
parent 5ba48b939a
commit 92c962c5ac
No known key found for this signature in database
3 changed files with 57 additions and 0 deletions

View file

@ -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
# ...
];
};
}