add callback option

This commit is contained in:
Simon Vieille 2024-08-01 22:47:26 +02:00
commit d11d8c7f87
Signed by: deblan
GPG key ID: 579388D585F70417
5 changed files with 52 additions and 6 deletions

View file

@ -37,7 +37,7 @@ workspaces:
"Name of the workspace 3": /home/alice/wallpapers/3.jpg
```
Next, you simply need to run `i3-wallpaper-manager` while specify the path to the configuration file.
Next, you simply need to run `i3-wallpaper-manager` and specify the path to the configuration file.
```bash
DISPLAY=:0 i3-wallpaper-manager /path/to/config.yaml
@ -48,3 +48,17 @@ To run it when i3 starts, add this to your i3 configuration:
```bash
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"
# ...
```