Skip to content

Instantly share code, notes, and snippets.

@RushOnline
Created December 8, 2016 15:36
Show Gist options
  • Save RushOnline/42f47cc8d57d5fa372aa3a7f756417b7 to your computer and use it in GitHub Desktop.
Save RushOnline/42f47cc8d57d5fa372aa3a7f756417b7 to your computer and use it in GitHub Desktop.
#!/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