KevinSilvester / wezterm-config

My WezTerm Config
MIT License
442 stars 128 forks source link

i have a function that lets me toggle opacity . I put it in bindings.lua but nothing happens when i press Ctrl+Alt+O . is there anything wrong with that code? #31

Closed ngomkhang134 closed 1 month ago

ngomkhang134 commented 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), },

ngomkhang134 commented 1 month ago

nvm , i found out a way to toggle it in nvim