Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 8381608e82 | |||
| a26b013547 | |||
| c7980c11e2 |
@@ -1,3 +1,3 @@
|
||||
# wezterm
|
||||
|
||||
Scripts I make for wezterm
|
||||
Scripts I make for wezterm
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user