Last active
February 3, 2024 05:51
-
-
Save mbootsman/8758288d6d4776035189c8ac1c6ff49a to your computer and use it in GitHub Desktop.
[Ubuntu] Download random unsplash photo and set as background with logo overlay
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/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