feat!: applyGtkFix -> gtkUseOpenGL, off by default
Some checks are pending
Check flake / check (push) Waiting to run

This commit is contained in:
Youwen Wu 2025-01-22 17:20:28 -08:00
parent c53e45ec51
commit 79e0f0cd27
Signed by: youwen5
GPG key ID: 865658ED1FE61EC3

View file

@ -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"