Skip to content

Instantly share code, notes, and snippets.

@mbootsman
Last active February 3, 2024 05:51
Show Gist options
  • Save mbootsman/8758288d6d4776035189c8ac1c6ff49a to your computer and use it in GitHub Desktop.
Save mbootsman/8758288d6d4776035189c8ac1c6ff49a to your computer and use it in GitHub Desktop.
[Ubuntu] Download random unsplash photo and set as background with logo overlay
#/bin/bash
# get image
# adjust 3840x2160 to your screen resolution
wget -O /home/xxxxx/Pictures/wallpaper.jpg https://source.unsplash.com/random/3840x2160/?wallpaper
# add logo
convert /home/xxxxx/Pictures/wallpaper.jpg -page +100+50 /home/xxxxx/Pictures/logo.png -flatten /home/xxxxxx/Pictures/wallpaper-logo.jpg
# set wallpaper
gsettings set org.gnome.desktop.background picture-uri file:///home/xxxxx/Pictures/wallpaper-logo.jpg
#set as lockscreen background
gsettings set org.gnome.desktop.screensaver picture-uri file:///home/xxxxx/Pictures/wallpaper-logo.jpg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment