Dex vs. systemd?

I was reading the dex page the other day. Looks like maintenance continues on dex but the developer has switched to using systemd with its similar .target/ .service files. Or rather dex uses similar .target/ .service files to systemd. :slight_smile:

My goal is to rotate my wallpaper every ten minutes. Natively feh doesn’t support this in background mode, so I’m looking at alternatives. Any thoughts on using dex rather than systemd for this?

you can use a systemd timer in user mode:

fehrotate.timer

[Unit]
Description=rotate wallpaper with feh

[Timer]
OnStartupSec=30sec
OnCalendar=hourly
Persistent=true
 
[Install]
WantedBy=timers.target

fehrotate.service

[Unit]
Description=feh wallpaper rotation service

[Service]
Type=oneshot
ExecStart=/usr/bin/feh what ever options you need

[Install]
WantedBy=fehrotate.timer

saved under ~/.config/systemd/user/
start timer:
systemctl --user enable --now fehrotate.timer

5 Likes

Der Doktor, you went above and beyond with this. The actual file contents were completely unexpected and have saved me a ton of time. Thank you so much!

–Mike

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.