vincentbernat.i3wm-configur.../dotfiles/systemd/wallpaper.service
2022-08-14 20:32:01 +02:00

13 lines
461 B
Desktop File

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