setup-cockpit/dotfiles/xkcd_wallpaper.sh

3 lines
141 B
Bash
Executable file

#!/bin/sh
curl -s "$(curl -sL https://c.xkcd.com/random/comic | grep 'Image URL' | awk -F\" '{print $2}')" -o ~/Pictures/xkcd-wallpaper.png