GTK Themes in Hyprland

I am using hyprland, but I do not know how to set up a GTK theme. I want to use the graphite gtk theme, and I have it in my environmental packages, but how do I set it up?

1 Like

That’s not how you install a GTK theme. Unsure of the way to do it without home-manager (if there is any), but with HM you can set:

gtk.theme.package = <theme package>;
gtk.theme.name = "Theme Name";

How do I install home manager for the theme?

1 Like

If using flakes:

If not:

Then you can set the gtk.theme settings under home-manager.users.<your-user>.

That said, it’s probably overkill for just a GTK theme, but I’m unaware of other ways to do it in Nix.
You can probably install it imperatively with ./install.sh if you don’t want other HM features (managing dotfiles, etc.), since it’s just a GTK theme, that’s much simpler than adding HM.

Got it working. thanks!

1 Like

Out of curiosity, did you end up using HM or just imperative GTK theme installing?

home-manager is a very reasonable way to do this, but FWIW, apparently one way this can be done using just the “native” NixOS modules is to define dconf settings directly.

Mostly matters if you really care about not having home-manager or really care about setting a system-wide default for all users. I think technically this could also probably be achieved “natively” with environment.etc to set the contents of files like /etc/gtk-3.0/settings.ini.

2 Likes