Skip to content

sunbearc22/sb_show_wallpapers.wezterm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

sb_show_wallpapers.wezterm

  • Shows your wallpapers in WezTerm and lets you toggle their change forward and backward. toggle_wallpapers

  • Lets you brighten and dim the wallpaper. toggle_brightness

Installation & Usage

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 config

Options

Default 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.

Key Bindings

Default keys

Toggle Wallpaper

Key Binding Action
SUPERb Change to next wallpaper.
SUPERSHIFTB Change to previous wallpaper.

Toggle Brightness

Key Binding Action
SUPERALTb Increase brightness by 2%
SUPERALTSHIFTB Decrease brightness by 2%

Update

Press CTRLSHIFTL and run wezterm.plugin.update_all().

Removal

  1. Press CTRLSHIFTL and run wezterm.plugin.list().
  2. Delete the "plugin_dir" directory of this plugin.

About

Plugin to show wallpapers in WezTerm and toggle their changes and brightness.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages