vincentbernat.i3wm-configur.../dotfiles/systemd/polybar-weather.service

16 lines
401 B
SYSTEMD
Raw Normal View History

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