vincentbernat.i3wm-configur.../dotfiles/systemd/wallpaper.service
2023-04-25 11:34:53 +02:00

15 lines
578 B
Desktop File

[Unit]
Description=Wallpaper builder
PartOf=graphical-session.target
[Service]
Environment=WALLPAPER_DIRECTORY=%h/.config/i3/wallpapers
Environment=WALLPAPER_TARGET=%t/i3/current-wallpaper.png
Environment=WALLPAPER_OUTPUTS=%t/i3/outputs.txt
ExecStart=/usr/bin/mkdir -p %t/i3
ExecStart=%h/.config/i3/bin/wallpaper --directory $WALLPAPER_DIRECTORY \
--target $WALLPAPER_TARGET \
--outputs $WALLPAPER_OUTPUTS
ExecStart=/usr/bin/hsetroot -root -center $WALLPAPER_TARGET
Type=oneshot
RemainAfterExit=false