diff options
author | Jesse Luehrs <doy@tozt.net> | 2024-02-23 02:47:29 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2024-02-23 02:47:29 -0500 |
commit | 1eb05e539ec54f404ae7367ba12233bbfebfdbf9 (patch) | |
tree | a66d4267ab803789e215efaf8747fba404b0c506 /i3status | |
parent | 8a0e22d68add0ac8f6c488e73c22cf66fb78f12b (diff) | |
download | conf-1eb05e539ec54f404ae7367ba12233bbfebfdbf9.tar.gz conf-1eb05e539ec54f404ae7367ba12233bbfebfdbf9.zip |
convert update-weather to systemd
Diffstat (limited to 'i3status')
-rw-r--r-- | i3status/.config/systemd/user/weather.service | 3 | ||||
-rw-r--r-- | i3status/.config/systemd/user/weather.timer | 6 | ||||
-rw-r--r-- | i3status/Makefile | 9 |
3 files changed, 18 insertions, 0 deletions
diff --git a/i3status/.config/systemd/user/weather.service b/i3status/.config/systemd/user/weather.service new file mode 100644 index 0000000..2351b21 --- /dev/null +++ b/i3status/.config/systemd/user/weather.service @@ -0,0 +1,3 @@ +[Service] +Type=oneshot +ExecStart=%h/.bin/%H/update-weather diff --git a/i3status/.config/systemd/user/weather.timer b/i3status/.config/systemd/user/weather.timer new file mode 100644 index 0000000..b90e4bf --- /dev/null +++ b/i3status/.config/systemd/user/weather.timer @@ -0,0 +1,6 @@ +[Timer] +OnStartupSec=0 +OnUnitActiveSec=900 + +[Install] +WantedBy=timers.target diff --git a/i3status/Makefile b/i3status/Makefile new file mode 100644 index 0000000..6627473 --- /dev/null +++ b/i3status/Makefile @@ -0,0 +1,9 @@ +include ../Makefile.include + +install: + @systemctl --user enable weather.timer + @systemctl --user start weather.timer + +uninstall: + @systemctl --user stop weather.timer + @systemctl --user disable weather.timer |