A simple script for changing background of of terminal in commandline.
- wsl in Windows Terminal
Make sure you have these two packages installed
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"
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"
This script will open a fuzzy finder. Just select an image you want to use.
Press escape to end the script.