From 8381608e824eeb76359c3ee258f78043640079a0 Mon Sep 17 00:00:00 2001 From: rhpidfyre Date: Wed, 12 Mar 2025 20:58:03 -0400 Subject: [PATCH] add src/config/wezterm.lua --- src/config/wezterm.lua | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/config/wezterm.lua diff --git a/src/config/wezterm.lua b/src/config/wezterm.lua new file mode 100644 index 0000000..41d5cec --- /dev/null +++ b/src/config/wezterm.lua @@ -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