add src/config/wezterm.lua
This commit is contained in:
parent
a26b013547
commit
8381608e82
19
src/config/wezterm.lua
Normal file
19
src/config/wezterm.lua
Normal file
@ -0,0 +1,19 @@
|
||||
local wezterm = require("wezterm")
|
||||
local config = {}
|
||||
|
||||
config.font = wezterm.font("Intel One Mono")
|
||||
|
||||
function ConfigureGraphics(gpu)
|
||||
config.front_end = "WebGpu"
|
||||
config.webgpu_power_preference = "HighPerformance"
|
||||
config.webgpu_preferred_adapter = gpu
|
||||
end
|
||||
|
||||
for _, gpu in next, wezterm.gui.enumerate_gpus() do
|
||||
if gpu.backend == "Vulkan" and gpu.device_type == "DiscreteGpu" then
|
||||
ConfigureGraphics(gpu)
|
||||
break
|
||||
end
|
||||
end
|
||||
|
||||
return config
|
Loading…
x
Reference in New Issue
Block a user