stylix icon indicating copy to clipboard operation
stylix copied to clipboard

Hyprpanel: add target

Open anotherhadi opened this issue 11 months ago • 2 comments

Add support for the Hyprpanel bar (Ags/Astal) I could try to implement it myself, but I’m unsure how to choose the colors for each module. Are they opinion-based?

anotherhadi avatar Jan 03 '25 16:01 anotherhadi

I’m unsure how to choose the colors for each module. Are they opinion-based?

Until https://github.com/danth/stylix/issues/249 is resolved, the Style Guide is the best we have.

Essentially, choose the colors you think look best and then verify them with various themes to make sure they are not unreadable in certain cases.

trueNAHO avatar Jan 03 '25 18:01 trueNAHO

Maybe not an ideal solution, but if you set your wallpaper through stylix you could just inherit the value to hyprpanel in it’s own configuration and enable matugen theming for it.

Like this you could at least get a matching color scheme far wallpapers.

{ config, … }:
programs.hyprpanel = {
    enable = true;
    settings = {
      wallpaper.image = "${config.stylix.image}";
      theme.matugen = true;
     };
};

For predefined themes, you might need to set the values manually though for each module. But you can easily do that by requesting the wanted value like so: config.stylix.image.base05 for example

MaySeikatsu avatar May 20 '25 00:05 MaySeikatsu

For predefined themes, you might need to set the values manually though for each module. But you can easily do that by requesting the wanted value like so: config.stylix.image.base05 for example

can we use that for writing the target?

repparw avatar Jul 02 '25 20:07 repparw

For predefined themes, you might need to set the values manually though for each module. But you can easily do that by requesting the wanted value like so: config.stylix.image.base05 for example

can we use that for writing the target?

If we are just setting programs.hyprpanel.settings.wallpaper.image, the target might not be very useful on its own. Also, is this even a desirable default behavior?

Otherwise, reasonable default declarations could be exposed, similar to:

  • https://github.com/nix-community/stylix/blob/f6c5aaa4f8b70ec0bf995be43311c38be3131776/modules/i3/hm.nix#L15-L32
  • https://github.com/nix-community/stylix/blob/f6c5aaa4f8b70ec0bf995be43311c38be3131776/modules/sway/hm.nix#L14-L31

trueNAHO avatar Jul 13 '25 18:07 trueNAHO