polybar: display current weather

This commit is contained in:
Vincent Bernat 2021-08-10 13:08:15 +02:00
parent eb3e05e488
commit 0559c830ef
5 changed files with 197 additions and 1 deletions

View file

@ -3,6 +3,8 @@ Description=i3 session
BindsTo=graphical-session.target
Wants=wallpaper.service
Wants=wallpaper.timer
Wants=weather.service
Wants=weather.timer
Wants=polybar.service
Wants=i3-companion.service
Wants=misc-x.service

View file

@ -0,0 +1,11 @@
[Unit]
Description=Build and display wallpaper
PartOf=graphical-session.target
After=polybar.service
[Service]
Environment=OWM_API_KEY=81687c78e0376836871a6cb9fc347249
ExecStart=/usr/bin/mkdir -p %h/.cache/i3
ExecStart=%h/.config/i3/bin/polybar-weather
Type=oneshot
RemainAfterExit=false

View file

@ -0,0 +1,7 @@
[Unit]
Description=Weather update
PartOf=graphical-session.target
[Timer]
OnUnitActiveSec=1h
OnClockChange=true