fix wezterm.lua for NVIDIA 560 drivers

This commit is contained in:
xqtc 2024-08-29 11:01:23 +02:00
parent af9c86ce93
commit 82a65bb5f5

View file

@ -1,3 +1,5 @@
local wezterm = require 'wezterm'
local config = {} local config = {}
function getHostname() function getHostname()
@ -125,7 +127,7 @@ wezterm.on('update-status', function(window, pane)
end) end)
for _, gpu in ipairs(wezterm.gui.enumerate_gpus()) do for _, gpu in ipairs(wezterm.gui.enumerate_gpus()) do
if gpu.backend == 'Vulkan' and gpu.device_type == 'IntegratedGpu' then if gpu.backend == 'Vulkan' and gpu.device_type == 'IntegratedGpu' or gpu.device_type == "DiscreteGpu" then
config.webgpu_preferred_adapter = gpu config.webgpu_preferred_adapter = gpu
config.front_end = 'WebGpu' config.front_end = 'WebGpu'
break break
@ -139,6 +141,6 @@ config.enable_scroll_bar = false
config.enable_tab_bar = true config.enable_tab_bar = true
config.tab_bar_at_bottom = true config.tab_bar_at_bottom = true
config.hide_mouse_cursor_when_typing = false config.hide_mouse_cursor_when_typing = false
config.enable_wayland = true config.enable_wayland = false
config.warn_about_missing_glyphs = false config.warn_about_missing_glyphs = false
return config return config