summaryrefslogtreecommitdiffstats
path: root/wp/.config/systemd/user
diff options
context:
space:
mode:
authorAmin Bandali <amin@aminb.org>2017-07-30 20:51:07 -0400
committerAmin Bandali <amin@aminb.org>2017-07-30 20:51:07 -0400
commitb93770a3640c8bdcc32259abd9ab76cfb83b0355 (patch)
tree90ba0efb5d8d591a03ecf858bd9f6d546859210f /wp/.config/systemd/user
parent85e3148ba10e276e6b8314908d8e38b4d375640e (diff)
downloadconfigs-b93770a3640c8bdcc32259abd9ab76cfb83b0355.tar.gz
configs-b93770a3640c8bdcc32259abd9ab76cfb83b0355.tar.xz
configs-b93770a3640c8bdcc32259abd9ab76cfb83b0355.zip
Add my little wallpaper/theme switcher
Uses systemd timers to automatically change the wallpaper and switch my Xresources themes between light and dark modes at 7am and 9pm.
Diffstat (limited to '')
-rw-r--r--wp/.config/systemd/user/wp.service6
-rw-r--r--wp/.config/systemd/user/wp.timer10
2 files changed, 16 insertions, 0 deletions
diff --git a/wp/.config/systemd/user/wp.service b/wp/.config/systemd/user/wp.service
new file mode 100644
index 0000000..4308f83
--- /dev/null
+++ b/wp/.config/systemd/user/wp.service
@@ -0,0 +1,6 @@
+[Unit]
+Description=wallpaper service
+
+[Service]
+Type=oneshot
+ExecStart=/usr/bin/bash -c %h/.local/bin/wp-auto
diff --git a/wp/.config/systemd/user/wp.timer b/wp/.config/systemd/user/wp.timer
new file mode 100644
index 0000000..448ab84
--- /dev/null
+++ b/wp/.config/systemd/user/wp.timer
@@ -0,0 +1,10 @@
+[Unit]
+Description=wallpaper timer
+
+[Timer]
+OnCalendar=07,21:00
+Unit=wp.service
+Persistent=true
+
+[Install]
+WantedBy=timers.target