Hyprland: Difference between revisions
→Troubleshooting: Add section for electron applications to use a wayland backend instead of x11. |
→Troubleshooting: Add section dealing with theming consistency. |
||
| Line 225: | Line 225: | ||
environment.sessionVariables.NIXOS_OZONE_WL = "1"; | environment.sessionVariables.NIXOS_OZONE_WL = "1"; | ||
} | } | ||
</nowiki>}} | |||
=== Theme support === | |||
To make themes consistent in Hyprland, you can either use Home Manager like this: | |||
{{file|/etc/nixos/home.nix or ~/.config/home-manager/home.nix|nix|<nowiki> | |||
{ | |||
home.pointerCursor = { | |||
gtk.enable = true; | |||
# x11.enable = true; | |||
package = pkgs.bibata-cursors; | |||
name = "Bibata-Modern-Classic"; | |||
size = 16; | |||
}; | |||
gtk = { | |||
enable = true; | |||
theme = { | |||
package = pkgs.flat-remix-gtk; | |||
name = "Flat-Remix-GTK-Grey-Darkest"; | |||
}; | |||
iconTheme = { | |||
package = pkgs.gnome.adwaita-icon-theme; | |||
name = "Adwaita"; | |||
}; | |||
font = { | |||
name = "Sans"; | |||
size = 11; | |||
}; | |||
}; | |||
} | |||
</nowiki>}} | |||
or use set themes using dconf in your Hyprland configuration file: | |||
{{file|hyprland.conf|conf|<nowiki> | |||
exec-once = dconf write /org/gnome/desktop/interface/gtk-theme "'Adwaita'" | |||
exec-once = dconf write /org/gnome/desktop/interface/icon-theme "'Flat-Remix-Red-Dark'" | |||
exec-once = dconf write /org/gnome/desktop/interface/document-font-name "'Noto Sans Medium 11'" | |||
exec-once = dconf write /org/gnome/desktop/interface/font-name "'Noto Sans Medium 11'" | |||
exec-once = dconf write /org/gnome/desktop/interface/monospace-font-name "'Noto Sans Mono Medium 11'" | |||
</nowiki>}} | </nowiki>}} | ||