From 164dd2c8806b93c19f39a4926b8f1d7f73aeea24 Mon Sep 17 00:00:00 2001 From: Schweber <64630479+Schweber@users.noreply.github.com> Date: Tue, 17 Oct 2023 06:04:44 +0000 Subject: [PATCH] HM: add section detailing how to fix problems with themes not working (#371) Co-authored-by: Mihai Fufezan --- pages/Nix/Hyprland on Home Manager.md | 40 +++++++++++++++++++++++++++ pages/Nix/Hyprland on NixOS.md | 4 +++ 2 files changed, 44 insertions(+) diff --git a/pages/Nix/Hyprland on Home Manager.md b/pages/Nix/Hyprland on Home Manager.md index 887dd9d1..f62498af 100644 --- a/pages/Nix/Hyprland on Home Manager.md +++ b/pages/Nix/Hyprland on Home Manager.md @@ -126,3 +126,43 @@ wayland.windowManager.hyprland.plugins = [ For examples on how to build hyprland plugins using nix see the [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; + }; + }; + }; + }; + +``` diff --git a/pages/Nix/Hyprland on NixOS.md b/pages/Nix/Hyprland on NixOS.md index 6b90b1ca..cf43c573 100644 --- a/pages/Nix/Hyprland on NixOS.md +++ b/pages/Nix/Hyprland on NixOS.md @@ -94,3 +94,7 @@ in { {{< /tab >}} {{< /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).