Allows Ubuntu to implement scheduled switching similar to Windows 7 desktop Wallpaper

Source: Internet
Author: User
I don't know if you haven't noticed it when using Ubuntu. In Ubuntu, multiple wallpapers can be dynamically switched. In Win7, similar functions are available. The following is an experiment in Ubuntu10.10. The previous version should also work. The implementation principle is to use an xml file to record the wallpaper that can be switched. The following is an example self-contained in Ubuntu10.10. The default wallpaper of Ubuntu is stored in the/usr/share/backgrounds/directory.

I don't know if you haven't noticed it when using Ubuntu. In Ubuntu, multiple wallpapers can be dynamically switched. In Win7, similar functions are available. The following is an experiment in Ubuntu 10.10. The previous version should also work.

The implementation principle is to use an xml file to record the wallpaper that can be switched. The following is an example self-contained in Ubuntu 10.10.

First of all, the default Ubuntu wallpaper is stored in the/usr/share/backgrounds/directory, and there is a cosmos directory in this directory (meaning "Universe, the xml file in cosmos is used to implement the live desktop wallpaper switching function (see ).

We can easily find a sample of such xml, such as/usr/share/backgrounds/cosmos/background-1.xml, the content is as follows:

01
02
03 2009
04 08
05 04
06 00
07 00
08 00
09
10
11
12 1795.0
13 /Usr/share/backgrounds/cosmos/cloud.jpg
14
15
16 5.0
17 /Usr/share/backgrounds/cosmos/cloud.jpg
18 /Usr/share/backgrounds/cosmos/comet.jpg
19
20
21 1795.0
22 /Usr/share/backgrounds/cosmos/comet.jpg
23
24
25 5.0
26 /Usr/share/backgrounds/cosmos/comet.jpg
27 /Usr/share/backgrounds/cosmos/earth-horizon.jpg
28

I believe you have read this example and you all know how to set it. You only need to change the values of starttime, duration, transition, and other related parts, and then add the xml file when you change the desktop to achieve the desktop slide effect.

Do you have any trouble writing it by yourself? some cool people have made a fool program. Click here to download this omnipotent python applet that allows Ubuntu to implement a regular switch function similar to Windows 7 desktop wallpaper.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.