feat(wezterm): improve sync
This commit is contained in:
parent
8c598cb5ca
commit
831df5ff6e
1 changed files with 3 additions and 9 deletions
|
@ -202,16 +202,10 @@ local lightTheme = "Catppuccin Latte"
|
||||||
|
|
||||||
local function scheme_for_appearance(appearance)
|
local function scheme_for_appearance(appearance)
|
||||||
local f = io.popen("nvr --serverlist")
|
local f = io.popen("nvr --serverlist")
|
||||||
if f:lines() ~= nil then
|
if f ~= nil and f:lines() ~= nil then
|
||||||
local theme
|
local theme = appearance:find("Dark") and "dark" or "light"
|
||||||
if appearance:find("Dark") then
|
|
||||||
theme = "mocha"
|
|
||||||
else
|
|
||||||
theme = "latte"
|
|
||||||
end
|
|
||||||
|
|
||||||
for name in f:lines() do
|
for name in f:lines() do
|
||||||
io.popen("nvr --servername " .. name .. ' --remote-send ":Catppuccin ' .. theme .. '<CR>"')
|
io.popen("nvr --servername " .. name .. ' --remote-send ":set background=' .. theme .. '<CR>"')
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue