Browse Source

wallpaper: download new meteosat image only if modified

Fabian Peter Hammerle 4 months ago
parent
commit
c9d70337c4
2 changed files with 3 additions and 3 deletions
  1. 1 1
      README.md
  2. 2 2
      config

+ 1 - 1
README.md

@@ -5,6 +5,6 @@ https://vivien.github.io/i3blocks/
 ## Installation
 
 ```sh
-sudo apt-get install i3blocks acpi curl feh
+sudo apt-get install i3blocks acpi curl moreutils feh
 git clone git@git.hammerle.me:fphammerle/config-i3blocks.git $HOME/.config/i3blocks
 ```

+ 2 - 2
config

@@ -3,8 +3,8 @@ separator_block_width=32
 markup=none
 
 [background]
-command=curl https://eumetview.eumetsat.int/static-images/latestImages/EUMETSAT_MSG_RGBNatColourEnhncd_CentralEurope.jpg | feh --bg-fill - || (echo background; exit 33)
-interval=1800
+command=curl --time-cond ~/.fehbg https://eumetview.eumetsat.int/static-images/latestImages/EUMETSAT_MSG_RGBNatColourEnhncd_CentralEurope.jpg | ifne feh --bg-fill - || (echo background; exit 33)
+interval=600
 
 [timewarrior]
 command=timew | grep -Po 'Tracking \K.*' || (echo timew inactive; exit 33)