Created
September 22, 2016 18:09
-
-
Save etra0/0d9f8ff522b05fe635050ed246872720 to your computer and use it in GitHub Desktop.
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 | |
# Script to change wallpaper | |
DIREC="/home/user/Imágenes/Wallpapers" | |
cd $DIREC | |
IMAGE="$(ls -1 | sort -R | head -n 1)" | |
export DISPLAY=:0 | |
gsettings set org.gnome.desktop.background picture-uri "file://$DIREC/$IMAGE" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
G O O D J O B