diff --git a/packages/scripts/default.nix b/packages/scripts/default.nix index c37b739..6cde485 100644 --- a/packages/scripts/default.nix +++ b/packages/scripts/default.nix @@ -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]} ''; } diff --git a/packages/scripts/wallhaven.sh b/packages/scripts/wallhaven.sh index 6e1a01f..6cf6ade 100755 --- a/packages/scripts/wallhaven.sh +++ b/packages/scripts/wallhaven.sh @@ -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}"