-
-
Notifications
You must be signed in to change notification settings - Fork 185
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
is it possible to set iconTheme in stylix? #458
Comments
Stylix doesn't have an option for this since |
@danth Alright happy to hear that it is actually, as simple as setting |
Absolutely: there are both benefits and drawbacks to this. |
I don't know if I am the only one but not sure if necessary but stylix could also set the qt icon theme together with gtk icon theme in one place. by the way, stylix has a polarity option right? Setting an icon theme through stylix could make it possible to automatically change the icon theme between dark and light variant depending on the polarity option. I can imagine such interface: stylix = {
polarity = "dark";
iconTheme = {
package = pkgs.papirus-icon-theme.override { color = "indigo"; };
dark = "Papirus-Dark"; # used
light = "Papirus-Light"; # unused
};
}; |
Closes: danth#458 Link: danth#603 Reviewed-by: NAHO <[email protected]> Tested-by: Kamron Bhavnagri <[email protected]>
Please bring this option to the stable release 24.11. |
Is this not already available with the following module: Lines 1 to 26 in 2c5104d
|
For some reason I am on master branch and despite that I am getting
Considering master is the default branch and I am running unstable I would assume
Is enough P.s. Ignore the |
@nonetrix It should work, but you can try: stylix = {
url = "https://github.com/danth/stylix/";
type = "git";
rev = "917e07af1451d7765be57c8b31bb3372c7b821a7";
}; The best guess I have off the top of my head, is if you have added stylix that way a while ago, it might have just never updated since the initial install, which was a problem for me way back in the day. Replacing |
Idk I have seen it update multiple times, so I'm pretty sure it should be updating? Should have done this before, but here is my config {pkgs, ...}: {
stylix = {
enable = true;
polarity = "dark";
image = ./image.jpg;
iconTheme.enable = true;
# TODO: Pretty sure I could put this in Nix store or something idk
base16Scheme = "/home/noah/Documents/projects/nix/nixdots/modules/user/graphical/avg.yaml";
opacity = {
terminal = 0.9;
popups = 0.9;
};
cursor = {
package = pkgs.rose-pine-cursor;
name = "BreezeX-RosePine-Linux";
};
};
} |
Huh weird, I'm getting a different error in this case. In any case I believe I trow it somewhere in the docs that if you enable icon theme but do not set the light, or dark variables, it would throw an error, which is just the behavior inherited from GTK. |
I set both doesn't do anything, likely got the name wrong but it should work but set it to something invalid I would imagine and be ignored. For good measure also set it to commit you mentioned
|
Wait I'm dumb |
Still no worky after removing the extra |
Alright then just to make sure try to duplicate my stylix config, just to make sure it isn't a problem with your config. stylix = {
enable = true;
image = ./image.jpg;
targets.rofi.enable = false;
targets.waybar.enable = false;
polarity = "dark";
iconTheme = {
enable = true;
package = pkgs.reversal-icon-theme;
light = "Reversal";
dark = "Reversal";
};
base16Scheme = {
base00 = "282828";
base01 = "3c3836";
base02 = "504945";
base03 = "665c54";
base04 = "bdae93";
base05 = "d5c4a1";
base06 = "ebdbb2";
base07 = "fbf1c7";
base08 = "fb4934";
base09 = "fe8019";
base0A = "fabd2f";
base0B = "b8bb26";
base0C = "8ec07c";
base0D = "83a598";
base0E = "d3869b";
base0F = "d65d0e";
};
cursor = {
package = pkgs.bibata-cursors;
name = "Bibata-Modern-Classic";
size = 24;
};
fonts = {
sizes = {
terminal = 14;
desktop = 12;
};
monospace = {
package = pkgs.nerd-fonts.jetbrains-mono;
name = "JetBrainsMono Nerd Font Mono";
};
sansSerif = {
package = pkgs.dejavu_fonts;
name = "DejaVu Sans";
};
serif = {
package = pkgs.dejavu_fonts;
name = "DejaVu Serif";
};
};
}; And, check if the terminal output has changed. Also preferably create a new issue, as it appears to only be tangentially related to this one. |
Same error I guess I'm just cursed |
iconTheme is in home-manager module: https://stylix.danth.me/options/hm.html#stylixiconthemeenable |
As @Familex suggests - check you're setting the option in Home Manager and not NixOS |
Oh... That's probably it I feel really dumb now 💀 Bit confusing though, maybe mild improvement could be throwing a error I guess |
This error seems impossible to implement |
#873 puts NixOS / Home Manager / Darwin options for the same target on the same page, with clearly labelled sections, which should hopefully make this a bit better |
Hello, I just started using stylix and I was wondering if there is anyway of setting an icon-theme trough it.
As of now I'm just using
gtk.iconTheme
to set it up and it works perfectly, but preferably I would like to do it trough stylix. I didn't find any information related to this feature so I just wanted to trow this question in case anyone else is having the same question.The text was updated successfully, but these errors were encountered: