From 82a65bb5f55fe4852b48f1f73fece427d65e8595 Mon Sep 17 00:00:00 2001 From: xqtc Date: Thu, 29 Aug 2024 11:01:23 +0200 Subject: [PATCH] fix wezterm.lua for NVIDIA 560 drivers --- home/config-files/wezterm.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/home/config-files/wezterm.lua b/home/config-files/wezterm.lua index 4d61e7b..0edb0bd 100644 --- a/home/config-files/wezterm.lua +++ b/home/config-files/wezterm.lua @@ -1,3 +1,5 @@ +local wezterm = require 'wezterm' + local config = {} function getHostname() @@ -125,7 +127,7 @@ wezterm.on('update-status', function(window, pane) end) 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.front_end = 'WebGpu' break @@ -139,6 +141,6 @@ config.enable_scroll_bar = false config.enable_tab_bar = true config.tab_bar_at_bottom = true config.hide_mouse_cursor_when_typing = false -config.enable_wayland = true +config.enable_wayland = false config.warn_about_missing_glyphs = false return config