Add the installer, uninstaller, and generated docs
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
local paths = require("default.hypr.paths")
|
||||
|
||||
local nvidia = paths.blob_path .. "/bin/blob-hw-nvidia"
|
||||
local nvidia_gsp = paths.blob_path .. "/bin/blob-hw-nvidia-gsp"
|
||||
local nvidia_without_gsp = paths.blob_path .. "/bin/blob-hw-nvidia-without-gsp"
|
||||
|
||||
-- These detectors read cached sysfs IDs rather than shelling out to lspci.
|
||||
-- lspci reads PCI config space, which resumes a runtime-suspended GPU, and on a
|
||||
-- hybrid laptop that wake alone outlasts Hyprland's 1.5s config reload budget.
|
||||
if o.shell_succeeds(o.shell_quote(nvidia)) then
|
||||
if o.shell_succeeds(o.shell_quote(nvidia_gsp)) then
|
||||
hl.env("NVD_BACKEND", "direct")
|
||||
hl.env("LIBVA_DRIVER_NAME", "nvidia")
|
||||
hl.env("__GLX_VENDOR_LIBRARY_NAME", "nvidia")
|
||||
elseif o.shell_succeeds(o.shell_quote(nvidia_without_gsp)) then
|
||||
hl.env("NVD_BACKEND", "egl")
|
||||
hl.env("__GLX_VENDOR_LIBRARY_NAME", "nvidia")
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user