mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-08-01 16:54:25 +02:00
15 lines
578 B
Desktop File
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
|