Created
December 8, 2016 15:36
-
-
Save RushOnline/42f47cc8d57d5fa372aa3a7f756417b7 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
OPTIONS="Centered Scaled Spanned Zoom Stretched Wallpaper Quit" | |
select opt in $OPTIONS; do | |
if [ "$opt" = "Centered" ]; then | |
gsettings set org.gnome.desktop.background picture-options "centered" | |
echo You choose the background-picture to be $opt ! | tr '[A-Z]' '[a-z]' | |
elif [ "$opt" = "Scaled" ]; then | |
gsettings set org.gnome.desktop.background picture-options "scaled" | |
echo You choose the background-picture to be $opt ! | tr '[A-Z]' '[a-z]' | |
elif [ "$opt" = "Spanned" ]; then | |
gsettings set org.gnome.desktop.background picture-options "spanned" | |
echo You choose the background-picture to be $opt ! | tr '[A-Z]' '[a-z]' | |
elif [ "$opt" = "Zoom" ]; then | |
gsettings set org.gnome.desktop.background picture-options "zoom" | |
echo You choose the background-picture to be $opt ! | tr '[A-Z]' '[a-z]' | |
elif [ "$opt" = "Stretched" ]; then | |
gsettings set org.gnome.desktop.background picture-options "stretched" | |
echo You choose the background-picture to be $opt ! | tr '[A-Z]' '[a-z]' | |
elif [ "$opt" = "Wallpaper" ]; then | |
gsettings set org.gnome.desktop.background picture-options "wallpaper" | |
echo You choose the background-picture to be $opt ! | tr '[A-Z]' '[a-z]' | |
elif [ "$opt" = "Quit" ]; then | |
echo done | |
exit | |
else | |
clear | |
echo Bad option | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment