init commit
This commit is contained in:
16
hypr/environment.lua
Normal file
16
hypr/environment.lua
Normal file
@@ -0,0 +1,16 @@
|
||||
-- Use NVIDIA GBM + Vulkan for wlroots
|
||||
hl.env("WLR_RENDERER", "vulkan")
|
||||
hl.env("GBM_BACKEND", "nvidia-drm")
|
||||
hl.env("__GLX_VENDOR_LIBRARY_NAME", "nvidia")
|
||||
|
||||
-- Ensure Hyprland runs fully on the NVIDIA GPU
|
||||
hl.env("__NV_PRIME_RENDER_OFFLOAD", "1")
|
||||
hl.env("__VK_LAYER_NV_optimus", "NVIDIA_only")
|
||||
hl.env("__NV_PRIME_RENDER_OFFLOAD_PROVIDER", "NVIDIA-G0")
|
||||
|
||||
-- Fix cursor and presentation glitches
|
||||
hl.env("WLR_NO_HARDWARE_CURSORS", "1")
|
||||
hl.env("WLR_DRM_DEVICES", "/dev/dri/card1")
|
||||
|
||||
-- Fix hyprquickframe preview rendering
|
||||
hl.env("QSG_RHI_BACKEND", "vulkan")
|
||||
Reference in New Issue
Block a user