local wezterm = require("wezterm")
local config = {}
if wezterm.config_builder then
config = wezterm.config_builder()
end
-- Add these lines (to install & use plugin and its default options):
local repo = "https://github.com/sunbearc22/sb_show_wallpapers.wezterm.git"
wezterm.plugin.require(repo).apply_to_config(config, {})
return configDefault options
local repo = "https://github.com/sunbearc22/sb_show_wallpapers.wezterm.git"
wezterm.plugin.require(repo).apply_to_config(config,
{
directory = "$HOME/Pictures/Wallpapers", -- Wallpapers directory
brightness = 0.06, -- Wallpaper initial brightness at 6%.
toggle_forward_key = "b", -- see key bindings
toggle_forward_mods = "SUPER", -- see key bindings
toggle_backward_key = "B", -- see key bindings
toggle_backward_mods = "SUPER|SHIFT", -- see key bindings
increase_brightness_key = "b", -- see key bindings
increase_brightness_mods = "SUPER|ALT", -- see key bindings
decrease_brightness_key = "B", -- see key bindings
decrease_brightness_mods = "SUPER|ALT|SHIFT" -- see key bindings
}
)Change the value of these option fields to your preference.
Default keys
| Key Binding | Action |
|---|---|
| SUPERb | Change to next wallpaper. |
| SUPERSHIFTB | Change to previous wallpaper. |
| Key Binding | Action |
|---|---|
| SUPERALTb | Increase brightness by 2% |
| SUPERALTSHIFTB | Decrease brightness by 2% |
Press CTRLSHIFTL and run wezterm.plugin.update_all().
- Press CTRLSHIFTL and run
wezterm.plugin.list(). - Delete the
"plugin_dir"directory of this plugin.

