A lightweight ZSH plugin to automatically update and modify the background image of the Kitty terminal emulator from a specified image.
To put it simply, this ZSH plugin is for people who love to change wallpapers per month or weak. However, background images in terminal emulators might cause troubles due to low contrast. Thus we are forced to darken the image or use a monotone color scheme for the image. And well, this plugin essentially helps to make it easy and fast using CLI, if this option is prefered.
- modifies the resolution, brightness, and color scheme of the background image
- changes the background image in the current session via kitty's remote control
- saves the background image via background.conf included in kitty.conf for more efficient and clean image loading during the initialization of a new kitty instance
You'll need to install Image Magick beforehand.
sudo apt install ImageMagickzinit light pickle-slime/kittybackCreate a new kitty instance (reload the terminal) for loading the background.conf.
Clone into the custom plugins directory:
git clone https://github.com/pickle-slime/kittyback ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/kittybackThen add kitty-bg-switcher to your plugin list in .zshrc:
plugins=(git kittybask)And source the .zshrc file
source ~/.zshrcCreate a new kitty instance (reload the terminal) for loading the background.conf.
git clone https://github.com/pickle-slime/kittyback ~/.kittybackAdd this line to .zshrc file.
source ~/.kittyback/kittyback.plugin.zshAnd source the .zshrc file
source ~/.zshrcCreate a new kitty instance (reload the terminal) for loading the background.conf.
To load image to buffer.
kittyback path/to/imageTo preview the image in the terminal.
kittyback previewTo disable the preview.
kittyback disable_previewTo reset all changes on the image.
kittyback resetTo apply changes.
kittyback applyDarken the image (expects a percentage as an argument):
kittyback -d 20
kittyback --darken 20Shift RGB colors (expects a float; values below 1 darken, above 1 lighten):
kittyback -s 0.2
kittyback --shift_rgbDiscolor the image (converts to grayscale and overlays a tint):
kittyback -c '#1e1e1e'
kittyback --discolor '#1e1e11e'Pixelize the image (expects a percentage; lower values increase pixelation):
kittyback -p 80
kittyback --pixilize 80Upload an image and preview it right in the terminal.
kittyback ~/Downloads/thumb-1920-1348376.png
kittyback previewUse the default flag in order to adjust the image.
kittyback -D
kittyback preview- Kitty terminal emulator
- Zsh (Bourne Again Shell)
- MIT License

