Closed ngomkhang134 closed 1 month ago
{ key = "O", mods = mod.SUPER_REV, -- toggling opacity action = wezterm.actioncallback(function(window, ) local overrides = window:get_config_overrides() or {} if overrides.window_background_opacity == 1.0 then overrides.window_background_opacity = 0.9 else overrides.window_background_opacity = 1.0 end window:set_config_overrides(overrides) end), },
nvm , i found out a way to toggle it in nvim
{ key = "O", mods = mod.SUPER_REV, -- toggling opacity action = wezterm.actioncallback(function(window, ) local overrides = window:get_config_overrides() or {} if overrides.window_background_opacity == 1.0 then overrides.window_background_opacity = 0.9 else overrides.window_background_opacity = 1.0 end window:set_config_overrides(overrides) end), },