diff --git a/config/hypr/hyprland.conf b/config/hypr/hyprland.conf index e5b1776..c7acf01 100644 --- a/config/hypr/hyprland.conf +++ b/config/hypr/hyprland.conf @@ -12,10 +12,6 @@ env = QT_QPA_PLATFORM,wayland env = GDK_BACKEND,wayland,x11 env = SDL_VIDEODRIVER,wayland -env = XCURSOR_SIZE,24 -env = HYPRCURSOR_SIZE,24 -env = HYPRCURSOR_THEME,Apple_Cursor - cursor { no_hardware_cursors = true } diff --git a/home/modules/hyprland.nix b/home/modules/hyprland.nix index d1f6a51..aeed01e 100644 --- a/home/modules/hyprland.nix +++ b/home/modules/hyprland.nix @@ -14,6 +14,14 @@ let } ''; + cursor = config.home.pointerCursor; + + cursorEnv = lib.optionalString (cursor != null) '' + env = XCURSOR_SIZE,${toString cursor.size} + env = HYPRCURSOR_SIZE,${toString cursor.size} + env = HYPRCURSOR_THEME,${cursor.name} + ''; + nvidiaEnv = lib.optionalString (hostConfig.gpu == "nvidia") '' env = LIBVA_DRIVER_NAME,nvidia env = __GLX_VENDOR_LIBRARY_NAME,nvidia @@ -32,7 +40,7 @@ in systemd.enable = hostConfig.isNixOS; extraConfig = '' - ${nvidiaEnv} + ${cursorEnv}${nvidiaEnv} source = $XDG_CONFIG_HOME/nix/config/hypr/hyprland.conf ''; };