From f8131b05fcda491ee6d78220c0f84a2d05141838 Mon Sep 17 00:00:00 2001 From: Gabriella Bere Date: Sat, 24 Aug 2024 17:20:32 +0100 Subject: [PATCH] move environment variables from hyprland.conf into home.nix to keep them all together, added comment explaining what they do --- home-manager/home.nix | 4 ++++ home-manager/hyprland.nix | 2 -- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/home-manager/home.nix b/home-manager/home.nix index 9da57b3..53cee9e 100644 --- a/home-manager/home.nix +++ b/home-manager/home.nix @@ -21,6 +21,10 @@ home.sessionVariables = { EDITOR = "nano"; DEFAULT_BROWSER = "${lib.getExe pkgs.firefox}"; + # Allow XWayland apps to not be weird after turning off xwayland scaling in hyprland.conf + GDK_SCALE = 1; + XCURSOR_SIZE = 32; + }; # Let Home Manager install and manage itself. diff --git a/home-manager/hyprland.nix b/home-manager/hyprland.nix index 0bc470c..27ec7b5 100644 --- a/home-manager/hyprland.nix +++ b/home-manager/hyprland.nix @@ -24,8 +24,6 @@ xwayland { force_zero_scaling = true } - env = GDK_SCALE,1 - env = XCURSOR_SIZE,32 ''; }; # Hyprland configuration