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"
|
2024-10-13 22:15:40 +00:00
|
|
|
"plugin:hyprbars:nobar, class:^1Password$, title:^1Password$"
|
2024-09-09 00:22:14 +00:00
|
|
|
"plugin:hyprbars:nobar, class:^clipboard$"
|
|
|
|
"plugin:hyprbars:nobar, class:^discord$, title:^Discord Updater$"
|
|
|
|
"plugin:hyprbars:nobar, class:^dropdown$"
|
2024-10-13 22:15:40 +00:00
|
|
|
"plugin:hyprbars:nobar, class:^org\\.gnome\\.Nautilus$, title:^New Folder$"
|
2024-11-08 20:34:18 +00:00
|
|
|
"plugin:hyprbars:nobar, class:^org\\.gnome\\.NautilusPreviewer$"
|
2024-10-29 22:08:26 +00:00
|
|
|
"plugin:hyprbars:nobar, class:^steam$"
|
2024-09-09 00:22:14 +00:00
|
|
|
"plugin:hyprbars:nobar, class:^steam_app_.+$"
|
2024-10-29 22:02:07 +00:00
|
|
|
"plugin:hyprbars:nobar, class:^[Ww]aydroid.*$"
|
2024-09-26 02:34:20 +00:00
|
|
|
"plugin:hyprbars:nobar, class:^Xdg-desktop-portal-gtk$"
|
2024-09-09 00:22:14 +00:00
|
|
|
"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
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|