mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-08-16 07:37:49 +02:00
15 lines
540 B
SYSTEMD
15 lines
540 B
SYSTEMD
|
[Unit]
|
||
|
Description=Build and display wallpaper
|
||
|
PartOf=graphical-session.target
|
||
|
|
||
|
[Service]
|
||
|
Environment=WALLPAPER_DIRECTORY=%h/.config/i3/wallpapers
|
||
|
Environment=WALLPAPER_OUTPUT=%h/.cache/i3/current-wallpaper.png
|
||
|
ExecStart=/usr/bin/mkdir -p %h/.cache/i3
|
||
|
ExecStart=%h/.config/i3/bin/build-wallpaper --crop \
|
||
|
--directory $WALLPAPER_DIRECTORY \
|
||
|
--target $WALLPAPER_OUTPUT
|
||
|
ExecStart=/usr/bin/fvwm-root -r $WALLPAPER_OUTPUT
|
||
|
Type=oneshot
|
||
|
RemainAfterExit=false
|