diff --git a/dot_config/wezterm/wezterm.lua b/dot_config/wezterm/wezterm.lua index 8e44f2c..cee2997 100644 --- a/dot_config/wezterm/wezterm.lua +++ b/dot_config/wezterm/wezterm.lua @@ -201,6 +201,20 @@ local darkTheme = "OLEDppuccin" local lightTheme = "Catppuccin Latte" local function scheme_for_appearance(appearance) + local f = io.popen("nvr --serverlist") + if f:lines() ~= nil then + local theme + if appearance:find("Dark") then + theme = "mocha" + else + theme = "latte" + end + + for name in f:lines() do + io.popen("nvr --servername " .. name .. ' --remote-send ":Catppuccin ' .. theme .. '"') + end + end + if string.match(wezterm.target_triple, "linux") then return darkTheme end