HM: add section detailing how to fix problems with themes not working (#371)

Co-authored-by: Mihai Fufezan <mihai@fufexan.net>
This commit is contained in:
Schweber 2023-10-17 06:04:44 +00:00 committed by GitHub
parent 5af6aa7028
commit 164dd2c880
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 44 additions and 0 deletions

View file

@ -126,3 +126,43 @@ wayland.windowManager.hyprland.plugins = [
For examples on how to build hyprland plugins using nix see the For examples on how to build hyprland plugins using nix see the
[official plugins](https://github.com/hyprwm/hyprland-plugins). [official plugins](https://github.com/hyprwm/hyprland-plugins).
## Fixing problems with themes
If your themes for mouse cursor, icons or windows don't load correctly, try setting them with `home.pointerCursor` and `gtk.theme`, which enable a bunch of compatibility options that should make the themes load in all situations.
Example configuration:
```
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
users.username = {
home = {
stateVersion = "23.05";
pointerCursor = {
gtk.enable = true;
# x11.enable = true;
package = pkgs.bibata-cursors;
name = "Bibata-Modern-Amber";
size = 32;
};
};
gtk = {
enable = true;
theme = {
package = pkgs.flat-remix-gtk;
name = "Flat-Remix-GTK-Grey-Darkest";
};
iconTheme = {
package = pkgs.libsForQt5.breeze-icons;
name = "breeze-dark";
};
font = {
name = "Sans";
size = 11;
};
};
};
};
```

View file

@ -94,3 +94,7 @@ in {
{{< /tab >}} {{< /tab >}}
{{< /tabs >}} {{< /tabs >}}
## Fixing problems with themes
If your themes for mouse cursor, icons or windows don't load correctly, see the relevant section in [Hyprland on Home Manager](./Hyprland-on-Home-Manager).