From 3bddc3bcaa2ec39f5da9b43ac8f5aada3895bfac Mon Sep 17 00:00:00 2001 From: eoli3n Date: Thu, 14 Mar 2024 23:21:05 +0100 Subject: [PATCH] webgpu explicit config for wezterm --- .pre-commit-config.yaml | 2 +- roles/wezterm/templates/wezterm.lua.j2 | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c6435ec..3ef061c 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -6,7 +6,7 @@ repos: - id: trailing-whitespace args: [--markdown-linebreak-ext=md] - repo: https://github.com/shellcheck-py/shellcheck-py - rev: v0.7.2.1 + rev: v0.9.0.6 hooks: - id: shellcheck - repo: local diff --git a/roles/wezterm/templates/wezterm.lua.j2 b/roles/wezterm/templates/wezterm.lua.j2 index 4090ace..5c4b7f9 100644 --- a/roles/wezterm/templates/wezterm.lua.j2 +++ b/roles/wezterm/templates/wezterm.lua.j2 @@ -17,6 +17,8 @@ config.font_rules = { config.font_size = 10.0 config.hide_tab_bar_if_only_one_tab = true config.default_cursor_style = 'BlinkingBar' +local gpus = wezterm.gui.enumerate_gpus() +config.webgpu_preferred_adapter = gpus[1] config.front_end = "WebGpu" config.colors = {