mirror of
https://git.gay/xqtc/nixos-config
synced 2024-11-22 05:00:32 +01:00
fix wezterm.lua for NVIDIA 560 drivers
This commit is contained in:
parent
af9c86ce93
commit
82a65bb5f5
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue