Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(nix): add theme settings to nix module #632

Closed
emsquid opened this issue Dec 26, 2024 · 4 comments
Closed

feat(nix): add theme settings to nix module #632

emsquid opened this issue Dec 26, 2024 · 4 comments

Comments

@emsquid
Copy link
Contributor

emsquid commented Dec 26, 2024

As of now the only way to set a theme through the new hyprpanel nix module is with predesigned theme, it would be great if all options were added to settings ! @benvonh

@benvonh
Copy link
Contributor

benvonh commented Dec 26, 2024

Can you try my fork? Option is override = {}

{
  inputs = {
    hyprpanel.url = "github:benvonh/hyprpanel";
  };
  # ...
}
{ inputs, ... }:
{
  # ...

  programs.hyprpanel = {
    # ...
    override = {
      theme.bar = {
        buttons.media = {
          text = "#123456";
          icon = "#987654";
        };
        menus.text = "#123ABC";
      };
    };
  };
}

edit: We could just chuck in every single option into settings. I don't really see a problem other than scalability. Would be nice to auto-generate the options with proper example / description. For now, override is the easiest way as it can add arbitrary stuff to config.json with precedence.

@emsquid
Copy link
Contributor Author

emsquid commented Dec 26, 2024

Yeah that seems like a good temporary fix for now !!
I tried the same on my own and it seems to work 👍

@benvonh
Copy link
Contributor

benvonh commented Dec 26, 2024

#633

@benvonh
Copy link
Contributor

benvonh commented Dec 27, 2024

You can close this

@emsquid emsquid closed this as completed Dec 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants