From 79e0f0cd273c324effab167ca5ec0fec285b9d28 Mon Sep 17 00:00:00 2001 From: Youwen Wu Date: Wed, 22 Jan 2025 17:20:28 -0800 Subject: [PATCH] feat!: applyGtkFix -> gtkUseOpenGL, off by default --- hm/modules/linux/desktop-environment/hyprland/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/hm/modules/linux/desktop-environment/hyprland/default.nix b/hm/modules/linux/desktop-environment/hyprland/default.nix index 2501c0e..9e242df 100644 --- a/hm/modules/linux/desktop-environment/hyprland/default.nix +++ b/hm/modules/linux/desktop-environment/hyprland/default.nix @@ -31,9 +31,9 @@ in ''; }; useAdvancedBindings = lib.mkEnableOption "advanced keybinds"; - applyGtkFix = lib.mkOption { + gtkUseOpenGL = lib.mkOption { type = lib.types.bool; - default = cfg.enable; + default = false; description = '' Whether to set GSK_RENDERER environment variable to stop GTK apps from crashing. ''; @@ -93,8 +93,8 @@ in "$Up" = "K"; "$Down" = "J"; env = - (lib.optionals cfg.applyGtkFix [ - "GSK_RENDERER,gl" + (lib.optionals cfg.gtkUseOpenGL [ + "GSK_RENDERER,ngl" ]) ++ (lib.optionals (config.liminalOS.formFactor == "laptop" && !osConfig.liminalOS.theming.enable) [ "HYPRCURSOR_THEME,Bibata-Modern-Ice"