diff --git a/dotfiles/systemd/polybar-weather.service b/dotfiles/systemd/polybar-weather.service index a795002..13d7a71 100644 --- a/dotfiles/systemd/polybar-weather.service +++ b/dotfiles/systemd/polybar-weather.service @@ -10,3 +10,5 @@ ExecStart=/usr/bin/mkdir -p %h/.cache/i3 ExecStart=%h/.config/i3/bin/polybar-weather Type=oneshot RemainAfterExit=false +Restart=on-failure +RestartSec=3s diff --git a/dotfiles/systemd/polybar-weather.timer b/dotfiles/systemd/polybar-weather.timer index 467db69..c8c803a 100644 --- a/dotfiles/systemd/polybar-weather.timer +++ b/dotfiles/systemd/polybar-weather.timer @@ -3,5 +3,5 @@ Description=Timer for weather update PartOf=graphical-session.target [Timer] -OnUnitActiveSec=1h +OnUnitInactiveSec=1h OnClockChange=true