This is a terminal application to help users choose their terminal background image from the command line. Though this application was built for choosing terminal backgrounds, it can be used for any application that renders its background from an image file at a given path.
- Kitty
- Warp
(If you have tested this application on another platform, please submit a pull request to update this list and document the setup process.)
- Make sure you have Go installed on your machine.
- Make sure you have Git
- Clone this repository
git clone https://github.com/JasonBoyett/terminal-background-tool
- Navigate to the repository
cd terminal-background-tool
- Build the application
go build -o bg_picker cmd/main/main.go
- Run the application
./bg_picker
- For the best experience add "bg_picker" to your systems path.
The first time you run the application it will ask you what directory you would like to use as your background image directory. If this directory does not exist, it will automatically be created. If you would like to change this directory, you can do so in the config.json file by changing the "bgDirectory" field.
On initial setup, the application will create an "images" directory in the directory you specified. This is where you will place your background images. There will be two other directories labeled "png_images" and "jpg_images" These will store the current background image.
After initial setup, you can run the application again and will be prompted to choose from a list of background images. Navigate with your arrow keys or with the j and k keys. Press enter to choose an image, r to select one randomly, or q to quit. If you would like to add more images, simply place them in the "images" directory and run the application again.
In your kitty.conf file add the following lines:
background_image [your backgrounds directory]/png_images/current.png
background_image_layout scaled
you will have to replace [your backgrounds directory] with the directory you specified when you first ran the application. I would recommend copying and pasting it from the config.json file.
Now after running the application reload kitty and you should see your new background.