To set a wallpaper in i3, you can use a program called feh. Here’s how you can do it:
- Install
fehif it’s not already installed. You can do this by running the following command:sudo apt-get install feh -
Choose the image you want to set as your wallpaper and remember its file path.
-
Open your i3 configuration file using a text editor. The default location for the configuration file is
~/.config/i3/config. - Add the following line to your i3 configuration file, replacing
<file_path>with the actual path to your image file:exec --no-startup-id feh --bg-fill <file_path> -
Save the changes to your i3 configuration file and exit the text editor.
- Restart i3 for the changes to take effect. You can do this by pressing
Mod+Shift+R(by default,Modrefers to theSuperorWindowskey).
After restarting i3, your chosen image should be set as the wallpaper.