目录

自訂簡易模式的圖形使用者介面

在閱讀本頁之前,你必須先學會如何開啟終端機視窗。請參閱開啟終端機視窗

簡易方式:使用精靈導引

閱讀關於 SublimePorte 開發的精靈導引程式:自訂簡易模式的桌面圖示項目

手動方式:分頁標籤及連結

備份並複製現有的 simpleui.rc 檔

  1. 開啟終端機視窗(Alt+Ctrl+t)。
  2. 執行以下指令:
    cp /opt/xandros/share/AsusLauncher/simpleui.rc /home/user/simpleui.rc.old

    現在你的 simpleui.rc 被備份到你的家目錄並改為 simpleui.rc.old 的檔名。

  3. 執行以下指令:
    mkdir /home/user/.AsusLauncher/

    這個步驟將在你的 home 資料夾創建一個隱藏的工作目錄(如果它尚未存在的話)。

  4. 執行以下指令:
    cp /opt/xandros/share/AsusLauncher/simpleui.rc /home/user/.AsusLauncher/simpleui.rc

    你現有的 simpleui.rc 被複製到這個隱藏的工作目錄中。

開始修改

  1. Alt+Ctrl+t 打開終端機視窗(如果你還沒有打開一個)。
  2. 執行以下指令:
    sudo kwrite /home/user/.AsusLauncher/simpleui.rc
  3. 此文字編輯器將 simpleui.rc 開啟,你可視需要進行修改。請參閱下面的新增捷徑項目了解該如何做 。

從備份檔復原(如果你搞砸了...)

如果還能進入終端機,並且先前已經做過 simpleui.rc 的備份,那麼你可以進行回存復原:

  1. 開啟終端機視窗。
  2. 執行以下指令:
    cp /home/user/simpleui.rc.old /home/user/.AsusLauncher/simpleui.rc
  3. 先前的備份檔已經回存覆蓋掉被你搞亂的 simpleui.rc 檔囉。

另一種方法可以參閱救援模式

要領

simplecat 段落負責定義「分頁標籤」。所以如果你想移除 學習 這個分頁標籤,就把由 id=“學習” 所帶出的整個 simplecat 段落刪除。

folder 段落負責定義「資料夾」。例如 娛樂 分頁標籤之下的 遊戲 就是一個資料夾。

parcel 段落負責定義可點選啟動的「桌面項目圖示」。例如 網路 分頁標籤下的 網際網路收音機 就是一個可啟動的圖示。

由於 Eee PC Xandros 的回存復原功能(開機時按 F9),即使刪除程式本身也並不會釋放出更多可用的磁碟空間。

預覽:

將用不到的圖示項目清理掉,可以讓你的桌面看來更清爽。

我的最愛

在「我的最愛」分頁標籤中的項目圖示(除了預設的 Asus.com自訂我的最愛之外),都存放在 /home/user/.AsusLauncher/favorites.rc 檔案中。

由於進入系統時 simpleui.rc 會先被載入,因此若想刪除自訂我的最愛項目圖示,必須將它從 simpleui.rc 移到 favorites.rc 去。

如果你很想將它徹底移除,可以將上述的設定內容文字刪掉,或者在設定檔中將這些文字標記為註解:在段落文字前後分別加上 <!---->就可以讓其中包夾的段落被忽略。這個技巧是便於快速還原或除錯時的好方法。例如:

<!-- 加上前後的記號之後,在設定檔中,這段文字全都會被視為註解,而不會被執行 -->

桌面背景

「易模式」下的桌布圖檔被存放在 /opt/xandros/share/AsusLauncher 目錄中。它們被依特定的方式命名:<style>_<page>_wallpaper.jpg。其中 <style> 包括下列四種:

更換這些圖檔並且重新載入佈景主題,將可讓你改變桌面背景。在 /usr/share/wallpapers 裡面有一堆桌布可以用,你也可以使用符號連結(symlink)來節省儲存空間。

更換桌面背景圖檔

快速隱藏華碩「易模式」選單

This allows you, in Easy Mode, to minimize the Asus QuickLauncher into a tray icon next to the shutdown symbol.

  1. Open a Terminal window.
  2. Run this line:
    sudo cp /usr/share/icewm/winoptions ~/.icewm/
  3. Run this line:
    sudo kwrite ~/.icewm/winoptions

    This starts Text Editor and opens winoptions.

  4. Paste the following lines right after it says #(re)install icewm.:
    AsusLauncher.AsusLauncher.dTitleBar: 0
    AsusLauncher.AsusLauncher.dBorder: 0
    AsusLauncher.AsusLauncher.dSysMenu: 1
    AsusLauncher.AsusLauncher.dResize: 1
    AsusLauncher.AsusLauncher.dClose: 1
    AsusLauncher.AsusLauncher.dMinimize: 1
    AsusLauncher.AsusLauncher.dMaximize: 1
    AsusLauncher.AsusLauncher.layer.Normal
    AsusLauncher.AsusLauncher.allWorkspaces: 1
    AsusLauncher.AsusLauncher.Workspace: 0
    AsusLauncher.AsusLauncher.ignoreTaskBar: 0
    AsusLauncher.AsusLauncher.fMove: 1
    AsusLauncher.AsusLauncher.fMaximise: 1
    AsusLauncher.AsusLauncher.fMinimise: 1
    AsusLauncher.AsusLauncher.forcedClose: 0
    AsusLauncher.AsusLauncher.tray: Exclusive
  5. Save the file, then restart your eeePC.

視窗管理員佈景主題

The window manager theme is set in /etc/X11/icewm/theme. Themes are available in /usr/share/icewm/themes.

佈景主題(選單列...等)

Files for each theme live in /usr/share/icewm/themes/Asus<Theme>/ where Theme is Green, Silver, Blue or Sunset. The files appear to be XPM files (http://en.wikipedia.org/wiki/XPM_(image_format)?).

新增捷徑項目

Very simple…

Open up simpleui.rc, copy an entry (preferably one that will be in the same location for laziness' sake) then change the argument to the application exec command, change the title (in your language), then add your icons, and your set to go.

A handy entry is this:

<parcel simplecat="Favorites" extraargs="/usr/bin/sudo /usr/bin/kwrite 	/opt/xandros/share/AsusLauncher/simpleui.rc"
	icon="asus_norm.png"
	selected_icon="asus_hi.png" >
	<name lang="en">Menu Edit</name>
</parcel>

This provides a shortcut to edit simpleui.rc to save a bit of time.

Note that here 'extraargs=”.. ..” ' is used. This seems to process what follows it as if typed into a command line. All references must be from root, as above, i.e. /usr/bin/sudo instead of just sudo. In contrast, some entries use 'shortcut=”.. ..” ', this is for when the application in question has an entry in /usr/share/applications/ . If this is the case the the command to use is 'shortcut=“appname.desktop”'.

Obviously, if your working version of simpleui.rc is /home/user/.AsusLauncher/simpleui.rc you will have to substitute that path for /opt/xandros/share/AsusLauncher/simpleui.rc in the code above.

新增網站連結

To add a website link to a tab, you simply use the procedure above, the following example links to this website.

          <parcel simplecat="Favorites" extraargs="/usr/bin/firefox http://www.eeeuser.com"
            icon="web_norm.png"
            selected_icon="web_hi.png" >
            <name lang="en">Eee User</name>
          </parcel>

Just change the URL and Name to alter it to your requirements.

系統更新小記

It appears that when the system updates (possibly only through “sudo apt-get upgrade”) it will overwrite your modified simpleui.rc file. It is therefore worth taking a copy of simpleui.rc and placing it somewhere such as your home directory, and then copying it back to /opt/xandros/share/AsusLauncher when it gets overwritten. This will revert Asus' changes to the UI, so you may wish to manually recomposite them together.

It is believed that this does not affect the working copy of simpleui.rc if it is in /home/user/.AsusLauncher/ but then any changes the upgrade makes to the simpleui.rc in /opt/xandros/share/AsusLauncher won't appear either and will need to be manually copied over.