i3-wallpaper-manager/README.md
Simon Vieille b640603c1e
Some checks are pending
ci/woodpecker/push/build Pipeline is pending approval
ci/woodpecker/push/test Pipeline is pending approval
update readme
2024-08-01 22:48:30 +02:00

2 KiB

🖥️ i3 wallpaper manager

i3 wallpaper manager is a command-line tool designed to change the wallpaper depending of active workspaces on i3. This tool works on one or multiple screens.

Thanks AZProductions!

📗 How to install the project

Dependencies

Pre-compiled versions

Pre-compiled versions are available in the Releases. For Debian users, a package is also provided.

From source

If you want to compile the project from source, you will need at least the GO compiler version 1.22. Clone the project and run the make command. The compiled output will be located in the build directory.

$ git clone https://gitnet.fr/deblan/i3-wallpaper-manager
$ make

🧪 How to use the project

To start, you need to create a configuration file in YAML format. This file consists of two keys: default to define the path of the default wallpaper, and workspaces which allows you to associate each workspace with its corresponding wallpaper.

default: /home/alice/wallpapers/default.jpg
workspaces:
  "Name of the workspace 1": /home/alice/wallpapers/1.jpg
  "Name of the workspace 2": /home/alice/wallpapers/2.jpg
  "Name of the workspace 3": /home/alice/wallpapers/3.jpg

Next, you simply need to run i3-wallpaper-manager and specify the path to the configuration file.

DISPLAY=:0 i3-wallpaper-manager /path/to/config.yaml

To run it when i3 starts, add this to your i3 configuration:

exec_always DISPLAY=:0 i3-wallpaper-manager /path/to/config.yaml

If you wish to use a program other than feh, set the callback parameter by specifying the path to your script.

#!/bin/sh

SCREEN_1="$1"
WALLPAPER_1="$2"

SCREEN_2="$3"
WALLPAPER_2="$4"

# ...