mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-07-05 07:44:20 +02:00
15 lines
401 B
Desktop File
15 lines
401 B
Desktop File
[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
|