stop converting the downloaded images

This commit is contained in:
Adithya 2023-10-13 22:14:07 +05:30
parent 828c886daa
commit 838b019768
Signed by: adtya
GPG key ID: 48FC9915FFD326D0
2 changed files with 3 additions and 4 deletions

View file

@ -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]}
'';
}

View file

@ -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}"