[Unit] Description=Update weather for Polybar PartOf=graphical-session.target After=polybar.service Requisite=polybar.service [Service] # Get one from https://openweathermap.org/, it's free Environment=OWM_API_KEY=81687c78e0376836871a6cb9fc347249 ExecStart=/usr/bin/mkdir -p %h/.cache/i3 ExecStart=%h/.config/i3/bin/polybar-weather Type=oneshot RemainAfterExit=false Restart=on-failure RestartSec=3s