# Dex vs. systemd?

**URL:** <https://forum.endeavouros.com/t/dex-vs-systemd/17620>\
**Category:** All WMs\
**Created:** [September 14, 2021, 4:20pm UTC](https://forum.endeavouros.com/t/dex-vs-systemd/17620 "2021-09-14T16:20:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mike09](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/mike09/32/122580_2.png) [@Mike09](https://forum.endeavouros.com/u/Mike09)\
**Post date:** [September 14, 2021, 4:20pm UTC](https://forum.endeavouros.com/t/dex-vs-systemd/17620/1 "2021-09-14T16:20:14Z")

</div>

I was reading the `dex` page the other day. Looks like maintenance continues on dex but the [developer has switched to using systemd](https://github.com/jceb/dex#autostart_alternative) with its similar .target/ .service files. Or rather dex uses similar .target/ .service files to systemd. 🙂

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?

---

<div class="post-metadata">

**Author:** ![joekamprad](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/joekamprad/32/77608_2.png) [@joekamprad](https://forum.endeavouros.com/u/joekamprad)\
**Post date:** [September 14, 2021, 4:48pm UTC](https://forum.endeavouros.com/t/dex-vs-systemd/17620/2 "2021-09-14T16:48:09Z")

</div>

you can use a systemd timer in user mode:

fehrotate.timer

```auto
[Unit]
Description=rotate wallpaper with feh

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

```

fehrotate.service

```auto
[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`

---

<div class="post-metadata">

**Author:** ![Mike09](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/mike09/32/122580_2.png) [@Mike09](https://forum.endeavouros.com/u/Mike09)\
**Post date:** [September 15, 2021, 12:39am UTC](https://forum.endeavouros.com/t/dex-vs-systemd/17620/3 "2021-09-15T00:39:27Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://forum.endeavouros.com/uploads/default/original/2X/9/9ea52f9fd5ef8e609e593c362d61a36295f48be8.png) [@system](https://forum.endeavouros.com/u/system)\
**Post date:** [September 17, 2021, 12:40am UTC](https://forum.endeavouros.com/t/dex-vs-systemd/17620/4 "2021-09-17T00:40:15Z")

</div>

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