mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-08-02 01:04:26 +02:00
I was using fvwm-root because it was able to retain pixmap in some X property for use by some programs. These days are gone and programs are now using ARGB visual and the compositor. Let's switch to simpler hsetroot.
14 lines
544 B
Desktop File
14 lines
544 B
Desktop File
[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/hsetroot -center $WALLPAPER_OUTPUT
|
|
Type=oneshot
|
|
RemainAfterExit=false
|