Skip to content

Commit

Permalink
Force unsplash image resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
MkQtS authored Apr 13, 2023
1 parent e4c0ab3 commit 73ee9b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions root/usr/libexec/argon/online_wallpaper
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ fetch_pic_url() {
unsplash)
curl -fks --max-time 1 \
"https://source.unsplash.com/1920x1080/daily?wallpapers" |
sed -E 's#^.*href="([^?]+)\?.*$#\1?fm=jpg\&w=1920\&h=1080#'
sed -E 's#^.*href="([^?]+)\?.*$#\1?fm=jpg\&fit=crop\&w=1920\&h=1080#'
;;
unsplash_*)
local collection_id=${WEB_PIC_SRC#unsplash_}
curl -fks --max-time 1 \
"https://source.unsplash.com/collection/${collection_id}/1920x1080" |
sed -E 's#^.*href="([^?]+)\?.*$#\1?fm=jpg\&w=1920\&h=1080#'
sed -E 's#^.*href="([^?]+)\?.*$#\1?fm=jpg\&fit=crop\&w=1920\&h=1080#'
;;
esac
}
Expand Down

0 comments on commit 73ee9b4

Please sign in to comment.