diff options
author | lassulus <lass@aidsballs.de> | 2016-05-09 11:27:06 +0200 |
---|---|---|
committer | lassulus <lass@aidsballs.de> | 2016-05-09 11:27:06 +0200 |
commit | e7528ccc2f366df381d6436ae2ad6781a9a0ace3 (patch) | |
tree | 59d65c08da8fdd297fe02ab8bb1486f420b4a17f /krebs/3modules/fetchWallpaper.nix | |
parent | fb87c76112b1c4c8d48de8df78b5f46f2b750bdf (diff) | |
parent | 56ca7859fab1ad3c1a0a7b5ebf10140b218a60be (diff) |
Merge remote-tracking branch 'gum/master'
Diffstat (limited to 'krebs/3modules/fetchWallpaper.nix')
-rw-r--r-- | krebs/3modules/fetchWallpaper.nix | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/krebs/3modules/fetchWallpaper.nix b/krebs/3modules/fetchWallpaper.nix index e6bb06a95..0adcec3d8 100644 --- a/krebs/3modules/fetchWallpaper.nix +++ b/krebs/3modules/fetchWallpaper.nix @@ -41,8 +41,11 @@ let }; fetchWallpaperScript = pkgs.writeDash "fetchWallpaper" '' + set -euf + mkdir -p ${shell.escape cfg.stateDir} - curl -s -o ${shell.escape cfg.stateDir}/wallpaper -z ${shell.escape cfg.stateDir}/wallpaper ${shell.escape cfg.url} + cd ${shell.escape cfg.stateDir} + curl -s -o wallpaper.tmp -z wallpaper ${shell.escape cfg.url} && mv wallpaper.tmp wallpaper feh --no-fehbg --bg-scale ${shell.escape cfg.stateDir}/wallpaper ''; |