summaryrefslogtreecommitdiffstats
path: root/krebs/5pkgs/simple
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2020-03-31 17:26:28 +0200
committerlassulus <lassulus@lassul.us>2020-03-31 17:26:28 +0200
commit5c6e007dbeb691cdadafa6615c5b23b40b6b77af (patch)
tree86e2ee27a15c72f5f7a15b0a88dbd9f4b531d23d /krebs/5pkgs/simple
parent07592647d1c19ce4997be05b882f63fb6b562f47 (diff)
realwallpaper: archive old wallpapers
Diffstat (limited to 'krebs/5pkgs/simple')
-rw-r--r--krebs/5pkgs/simple/realwallpaper/default.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/krebs/5pkgs/simple/realwallpaper/default.nix b/krebs/5pkgs/simple/realwallpaper/default.nix
index 00c185391..2b0f4bd53 100644
--- a/krebs/5pkgs/simple/realwallpaper/default.nix
+++ b/krebs/5pkgs/simple/realwallpaper/default.nix
@@ -266,6 +266,8 @@ pkgs.writers.writeDashBin "generate-wallpaper" ''
convert xplanet-krebs-output.png -crop $out_geometry \
realwallpaper-krebs-tmp.png
mv realwallpaper-krebs-tmp.png realwallpaper-krebs.png
+ mkdir -p archive
+ convert realwallpaper-krebs.png archive/"$(date -Is)".jpg
fi
}