Pick a renderer from the GPU and fall back to software rendering
This commit is contained in:
@@ -37,6 +37,7 @@ hl.env("PATH", table.concat(kept, ":"))
|
||||
|
||||
-- Hardware-specific environment.
|
||||
require("default.hypr.nvidia")
|
||||
require("default.hypr.renderer")
|
||||
|
||||
hl.config({
|
||||
xwayland = {
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
local paths = require("default.hypr.paths")
|
||||
|
||||
local accelerated = paths.blob_path .. "/bin/blob-hw-gpu-accelerated"
|
||||
|
||||
if not o.shell_succeeds(o.shell_quote(accelerated)) then
|
||||
hl.env("LIBGL_ALWAYS_SOFTWARE", "1")
|
||||
hl.env("WLR_NO_HARDWARE_CURSORS", "1")
|
||||
|
||||
hl.config({
|
||||
cursor = {
|
||||
no_hardware_cursors = true,
|
||||
},
|
||||
})
|
||||
end
|
||||
Reference in New Issue
Block a user