2024-09-09 00:22:14 +00:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}:
|
2024-09-13 01:50:53 +00:00
|
|
|
with lib; let
|
2024-09-25 20:02:50 +00:00
|
|
|
hyprctl = "${config.programs.hyprland.package}/bin/hyprctl";
|
2024-09-09 00:22:14 +00:00
|
|
|
|
|
|
|
cfg = config.custom.desktops.hyprland.plugins;
|
2024-09-13 01:50:53 +00:00
|
|
|
in {
|
|
|
|
options.custom.desktops.hyprland.plugins.enable = mkOption {default = false;};
|
2024-09-09 00:22:14 +00:00
|
|
|
|
|
|
|
config.home-manager.users.${config.custom.username} = mkIf cfg.enable {
|
|
|
|
wayland.windowManager.hyprland = {
|
|
|
|
# https://github.com/hyprwm/hyprland-plugins/tree/main/hyprbars
|
|
|
|
# https://wiki.hyprland.org/Plugins/Using-Plugins
|
2024-09-13 01:50:53 +00:00
|
|
|
plugins = with pkgs.hyprlandPlugins; [hyprbars];
|
2024-09-09 00:22:14 +00:00
|
|
|
|
|
|
|
settings = {
|
|
|
|
#!! Static rules
|
|
|
|
windowrulev2 = [
|
|
|
|
"plugin:hyprbars:bar_color rgb(073642), focus:0"
|
|
|
|
"plugin:hyprbars:title_color rgb(586e75), focus:0"
|
|
|
|
|
|
|
|
"plugin:hyprbars:nobar, floating:0"
|
|
|
|
"plugin:hyprbars:nobar, class:^clipboard$"
|
|
|
|
"plugin:hyprbars:nobar, class:^discord$, title:^Discord Updater$"
|
|
|
|
"plugin:hyprbars:nobar, class:^dropdown$"
|
|
|
|
"plugin:hyprbars:nobar, class:^steam_app_.+$"
|
|
|
|
"plugin:hyprbars:nobar, title:^Picture.in.[Pp]icture$"
|
|
|
|
];
|
|
|
|
|
|
|
|
# Plugin settings
|
|
|
|
plugin = {
|
|
|
|
hyprbars = {
|
|
|
|
bar_button_padding = 10;
|
|
|
|
bar_color = "rgb(002b36)";
|
|
|
|
bar_height = 30;
|
|
|
|
bar_padding = 10;
|
|
|
|
bar_precedence_over_border = true; # Render borders around hyprbars
|
|
|
|
bar_text_align = "left";
|
2024-09-21 15:47:31 +00:00
|
|
|
bar_text_font = config.custom.font.monospace;
|
2024-09-09 00:22:14 +00:00
|
|
|
bar_text_size = 11;
|
|
|
|
#// bar_title_enabled = false;
|
|
|
|
"col.text" = "rgb(93a1a1)";
|
|
|
|
|
|
|
|
#?? hyprbars-button = COLOR, SIZE, ICON, EXEC
|
|
|
|
hyprbars-button = [
|
|
|
|
"rgb(dc322f), 16,, ${hyprctl} dispatch killactive" # Close
|
|
|
|
"rgb(d33682), 16,, ${hyprctl} dispatch fullscreen 1" # Maximize
|
|
|
|
"rgb(6c71c4), 16,, minimize" # Minimize
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|