Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version
  Just a simple bash script for changing the position of your wallpaper, and it works on Fedora 18;)

#!/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