Change Wallpaper in KDE

Welcome,

This is a script in bash which uses DCOP to change your wallpaper according to a timetable.

Current version: 2

Installation instructions:

  1. Save the following file to disk: changewp.tar.bz2 e.g. to a temporary location

  2. Open a konsole and unpack the file:

    1. cd $TEMPORARY_LOCATION
    2. tar -xvyf changewp.tar.bz2

  3. Change yourself to root:

      su

  4. Copy the files:

      cp changewp changewpd /usr/bin

  5. Make sure the permissions are right:

      chmod a+x /usr/bin/changewp*

  6. In your temporary location you will also find a config file:

      changewp.conf

    Copy this file to /etc/changewp.conf like this:

      cp changewp.conf /etc
      chmod a+r /etc/changewp.conf

    Now edit the configuration file and adapt it to your wishes. Every line should contain a time indication ('hh:mm') followed by a tab or a space and then the absolute location of the wallpaper to be shown.

      20:00 /home/tom/themes/Noia_multiple_wallpapers_05/wallpapers/noia94b.jpg

    NOTE: You should always leave a line with '00:00' in your config.
    NOTE 2: If you specify a file in the homedir of your regular user called '.changewp.conf' then this configuration file will be used instead of the general one in /etc/changewp.conf

  7. Open your home directory in konqueror and in the 'Go' menu you click on 'Autostart'. This opens a new window at '$HOME/.kde/Autostart'. Right click and select:

      create new -> Link to application...

    A dialog pops up and you must type in a name for the link e.g. 'changepaper'. Now click on the 'Execute' tab and under 'Command:' you must fill in the following:

      changewp start

    Close the window and relogin in KDE. Now it should be loaded! You should see in the process table a process 'changewpd'.

  8. To stop the switching of the wallpapers execute this command as the user you logged in:

      changewp stop

Enjoy using this program. I made it because I saw some cool backgrounds of a sun rising and setting on www.kde-look.org.