mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-08-02 01:04:26 +02:00
polybar: display current weather
This commit is contained in:
parent
eb3e05e488
commit
0559c830ef
5 changed files with 197 additions and 1 deletions
|
@ -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
|
||||
|
|
11
dotfiles/systemd/weather.service
Normal file
11
dotfiles/systemd/weather.service
Normal 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
|
7
dotfiles/systemd/weather.timer
Normal file
7
dotfiles/systemd/weather.timer
Normal file
|
@ -0,0 +1,7 @@
|
|||
[Unit]
|
||||
Description=Weather update
|
||||
PartOf=graphical-session.target
|
||||
|
||||
[Timer]
|
||||
OnUnitActiveSec=1h
|
||||
OnClockChange=true
|
Loading…
Add table
Add a link
Reference in a new issue