stop converting the downloaded images
This commit is contained in:
parent
828c886daa
commit
838b019768
2 changed files with 3 additions and 4 deletions
|
@ -46,7 +46,7 @@ stdenvNoCC.mkDerivation {
|
|||
wrapProgram $out/bin/power-menu --prefix PATH : ${lib.makeBinPath [libnotify rofi-wayland hyprland]}
|
||||
wrapProgram $out/bin/tmux-sessions --prefix PATH : ${lib.makeBinPath [tmux kitty rofi-wayland]}
|
||||
wrapProgram $out/bin/chpaper --prefix PATH : ${lib.makeBinPath [imagemagick libnotify swww]}
|
||||
wrapProgram $out/bin/wallhaven --prefix PATH : ${lib.makeBinPath [imagemagick libnotify jq curl libsecret]}
|
||||
wrapProgram $out/bin/wallhaven --prefix PATH : ${lib.makeBinPath [libnotify jq curl libsecret]}
|
||||
wrapProgram $out/bin/youtube --prefix PATH : ${lib.makeBinPath [kitty ytfzf rofi-wayland]}
|
||||
'';
|
||||
}
|
||||
|
|
|
@ -68,7 +68,6 @@ IMAGE_META=$(eval ${CURL_CMD})
|
|||
IMAGE_URL="$(echo "${IMAGE_META}" | jq -r '.data.path')"
|
||||
IMAGE_ID="$(echo "${IMAGE_META}" | jq -r '.data.id')"
|
||||
FILENAME="wallhaven-${IMAGE_ID}"
|
||||
curl --silent -L --output "/tmp/${FILENAME}" "${IMAGE_URL}"
|
||||
convert "/tmp/${FILENAME}" "${DIR}/${FILENAME}.jpg"
|
||||
echo "${DIR}/${FILENAME}.jpg"
|
||||
curl --silent -L --output "${DIR}/${FILENAME}" "${IMAGE_URL}"
|
||||
echo "${DIR}/${FILENAME}"
|
||||
|
||||
|
|
Loading…
Reference in a new issue