Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Automatically download the latest Simple Desktop to a backgrounds-stage directory.
#! /usr/bin/env bash
pushd ~/Dropbox/Pictures/backgrounds-stage
http --print b | tq 'item description' --text | tq 'img' --attr src --squash | head -1 | wget --no-clobber --input-file=-
Copy link

drhayes commented Jan 31, 2022

Uses tq, from here:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment