vincentbernat.i3wm-configur.../systemd/wallpaper@.service
Vincent Bernat a42edf621a wallpaper: use a per-display wallpaper
Just to be coherent with having a per-display service and timer.
2020-02-07 09:58:02 +01:00

14 lines
550 B
Desktop File

[Unit]
Description=Build a wallpaper for %I
PartOf=graphical-session@%i.target
[Service]
Environment=DISPLAY=%I
Environment=WALLPAPER_DIRECTORY=%h/.config/awesome/wallpapers
Environment=WALLPAPER_OUTPUT=%h/.cache/awesome/current-wallpaper-%i.png
ExecStart=%h/.config/awesome/bin/build-wallpaper --crop \
--directory $WALLPAPER_DIRECTORY \
--target $WALLPAPER_OUTPUT
ExecStart=/usr/bin/fvwm-root -r $WALLPAPER_OUTPUT
Type=oneshot
RemainAfterExit=false