2020-08-11 17:50:17 +00:00
|
|
|
[Unit]
|
|
|
|
Description=Apply wallpaper on screen-change event
|
|
|
|
Requires=graphical-session.target
|
|
|
|
After=graphical-session.target
|
|
|
|
|
|
|
|
[Service]
|
2020-08-19 19:49:10 +00:00
|
|
|
Environment=FEH_OPTIONS="--no-fehbg --no-xinerama"
|
|
|
|
Environment=WALLPAPER=/home/frebib/pictures/lakesidesunrise.jpg
|
|
|
|
ExecStartPre=feh $FEH_OPTIONS --bg-fill $WALLPAPER
|
|
|
|
ExecStart=/bin/sh -c "xev -root -event randr 2>&1 | while awk -v RS=\\n\\n '{exit;}'; do echo 'Applying wallpaper'; feh $FEH_OPTIONS --bg-fill $WALLPAPER; done"
|
2020-08-11 17:50:17 +00:00
|
|
|
Restart=always
|
2020-08-23 00:16:54 +00:00
|
|
|
Slice=session.slice
|
2020-08-11 17:50:17 +00:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=desktop.target
|