From b7e39ec827beb127f4083aea4e4248260b4c902d Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Sun, 14 Jan 2024 10:37:27 +0800 Subject: [PATCH] wezterm: add conditional config for Wayland environments --- wezterm/config/base.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/wezterm/config/base.lua b/wezterm/config/base.lua index c8f25b4..69f5827 100644 --- a/wezterm/config/base.lua +++ b/wezterm/config/base.lua @@ -14,8 +14,10 @@ function module.apply_to_config(config) config.check_for_updates = false -- Enable some things for Wayland. - config.enable_wayland = true - config.force_reverse_video_cursor = true + if os.getenv "XDG_SESSION_TYPE" == "wayland" then + config.enable_wayland = true + config.force_reverse_video_cursor = true + end -- Use some IME. config.use_ime = true