歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> 讓你的Ubuntu Karmic(9.10)桌面背景隨心換

讓你的Ubuntu Karmic(9.10)桌面背景隨心換

日期:2017/2/28 16:42:24   编辑:Linux教程

轉自:碧海藍天

Ubuntu Karmic(9.10)的桌面背景裡面有個定時切換的,名稱叫做cosmos,路徑位於/usr/share/backgrounds/cosmos,這個路徑下面有些壁紙以及控制更換壁紙的腳本文件:background-1.xml。 如果你想新建一個自己喜歡的壁紙, 同時讓這些壁紙可以定時更換,那麼就需要先建立一個目錄,然後把你心儀的壁紙以及控制腳本復制到這個目錄下面:

sudo mkdir -p /usr/share/backgrounds/sky

sudo cp /usr/share/backgrounds/cosmos/background-1.xml /usr/share/backgrounds/sky/

sudo cp /your/image /usr/share/backgrounds/sky

然後編輯控制腳本:

sudo nano /usr/share/backgrounds/sky/background-1.xml

將裡面的路徑和文件名替換成你自己的即可。 做完這些,還不能讓你自己的背景圖片出現在背景列表裡,還需要建立一個控制gnome背景屬性的腳本。

sudo cp /usr/share/gnome-background-properties/cosmos.xml /usr/share/gnome-background-properties/sky.xml

再把sky.xml中的background-1.xml的路徑修改成你的即可。

<filename>/usr/share/backgrounds/sky/background-1.xml</filename>

Copyright © Linux教程網 All Rights Reserved