From 1eb05e539ec54f404ae7367ba12233bbfebfdbf9 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Fri, 23 Feb 2024 02:47:29 -0500 Subject: convert update-weather to systemd --- i3status/.config/systemd/user/weather.service | 3 +++ i3status/.config/systemd/user/weather.timer | 6 ++++++ i3status/Makefile | 9 +++++++++ 3 files changed, 18 insertions(+) create mode 100644 i3status/.config/systemd/user/weather.service create mode 100644 i3status/.config/systemd/user/weather.timer create mode 100644 i3status/Makefile (limited to 'i3status') 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 -- cgit v1.2.3-54-g00ecf