Skip to content

laporchen/terminal-background-changer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Terminal Background Changer

A simple script for changing background of of terminal in commandline.

Current Support

  • wsl in Windows Terminal

Install

wsl in Windows Terminal

Make sure you have these two packages installed

fzf
wslu

git clone https://github.com/laporchen/wtbc.git
cd wtbc
chmod +x ./wtbc.sh
# move it to /bin for eaiser use
sudo mv ./wtbc.sh /bin/wtbc

Add this environment variable to your shell

WTIMAGEFOLDER="absolute path to the image folder you want to search"

iTerm2

Requirements

fzf
install python3 packages with requirement.txt in /iterm
Enable python API in iTerm2 perference

git clone https://github.com/laporchen/wtbc.git
cd wtbc/iterm
## Location suggested in iTerm2 document.
cp ./main.py $HOME/Library/ApplicationSupport/iTerm2/Scripts/changeBackground.py

And I just use an alias for it.

alias cbg="python3 $HOME/Library/ApplicationSupport/iTerm2/Scripts/changeBackground.py"

Add this environment variable to your shell

ITERMIMAGEFOLDER="absolute path to the image folder you want to search"

Usage

This script will open a fuzzy finder. Just select an image you want to use.
Press escape to end the script.

About

Help you change your Windows Terminal background in wsl.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published