add callback option
This commit is contained in:
parent
70fe7c72ce
commit
d11d8c7f87
5 changed files with 52 additions and 6 deletions
16
README.md
16
README.md
|
|
@ -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"
|
||||
|
||||
# ...
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue