Skip to content

Instantly share code, notes, and snippets.

@fracz
Last active September 17, 2024 21:06
Show Gist options
  • Save fracz/e053144ee626351de2752858548d4cd2 to your computer and use it in GitHub Desktop.
Save fracz/e053144ee626351de2752858548d4cd2 to your computer and use it in GitHub Desktop.
Live Earth Wallpaper
#!/usr/bin/env bash
PATH=/home/fracz/.nvm/versions/node/v12.13.1/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
cd "$(dirname "$0")"
# npm install -g capture-website-cli
capture-website 'https://zoom.earth/#view=38,23.4,4z' --output wallpaper.png --hide-elements='.cookies, .panel, .locate, .help, .attribution, button, .settings' --overwrite --script='setTimeout(function() { document.getElementById("menu-terminator").click(); document.getElementById("menu-radar").click(); document.getElementById("menu-storm-tracks").click(); document.getElementById("menu-labels").click(); }, 1000)' --delay=2 --width=1920 --height=1000 && \
gsettings set org.gnome.desktop.background picture-uri file://$(pwd)/wallpaper.png
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment