wget -O - -q reddit.com/r/earthporn/top.json | jq '.data.children |.data.url' | grep jpg | head -1 | xargs wget -O /home/jan/background.jpg
Got this idea after reading https://prithu.dev/posts/unix-pipeline/
BTW, Happy 2022! :-)
A instance dedicated - but not limited - to people with an interest in the GNU+Linux ecosystem and/or general tech. Sysadmins to enthusiasts, creators to movielovers - Welcome!