setup-cockpit/roles/i3/files/xkcd_wallpaper.sh

3 lines
152 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/wallpapers/xkcd-wallpaper.png