mirror of
https://github.com/danth/stylix
synced 2024-11-26 22:20:22 +00:00
Enable GTK theming for more Wayland compositors ✨ 💩
This commit is contained in:
parent
671068f7f6
commit
b2ae657e97
1 changed files with 5 additions and 2 deletions
|
@ -140,8 +140,11 @@ let
|
||||||
name = "Materia-compact";
|
name = "Materia-compact";
|
||||||
};
|
};
|
||||||
|
|
||||||
# GTK will probably be unused without Xorg / Wayland
|
# GTK will probably be unused without Xorg / Wayland.
|
||||||
in lib.mkIf (config.services.xserver.enable || config.programs.sway.enable) {
|
# There isn't a single option which covers all Wayload compositors,
|
||||||
|
# and many of them don't have NixOS modules at all. Therefore, we use
|
||||||
|
# OpenGL as the next best condition to detect that Wayland is enabled.
|
||||||
|
in lib.mkIf (config.services.xserver.enable || config.hardware.opengl.enable) {
|
||||||
# Required for Home Manager's GTK settings to work
|
# Required for Home Manager's GTK settings to work
|
||||||
programs.dconf.enable = true;
|
programs.dconf.enable = true;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue