====== 使用 IceWM 視窗管理員 ======
華碩的 EeePC 使用的視窗管理員稱做 [[http://en.wikipedia.org/wiki/Icewm|IceWM]]。 (視窗管理員是在作業系統中一種圖形化介面來控制視窗的位置與外觀)。透過簡單的編輯檔案,一來可以設定視窗以及工作列,並且還可以起動開始功能表,接下來我們還會介紹其他的設定。
===== 在簡易模式中起動 IceWM 開始功能表 =====
{{howto:startmenu.jpg|IceWM 開始功能表可以在簡易模式起動。}}
期盼有人能幫忙把本頁的原始版本重新導向過來。我相信 [[http://wiki.splitbrain.org/plugin:page_redirector|這個網站]] 有個必需的插件以及進一步的細節說明。
==== 在終端機中複製並修改設定檔 ====
這個步驟主要包括在你的 /home/user 目錄中創建一個資料夾,並將一個現有的純文字設定檔複製到這個新目錄。這個設定檔包含了非常多有意思的設定項目,不過現在我們暫時把重點放在啟動「開始功能表」就好。
1. 按下**Ctrl-Alt-T**打開終端機。
2.((這個資料夾裡面共有 6 個檔案,建議你全部複製過去以便讓功能表較為完善,cp **/etc/X11/icewm/*.* /home/user/.icewm** )) 輸入以下指令。可參考下面的畫面。
/home/user> mkdir ~/.icewm
/home/user> cp /etc/X11/icewm/preferences /home/user/.icewm
3. 如果你知道怎麼編輯修改檔案內容的話,現在就可以直接做了。不過要是你對於文字命令列還不太熟悉,或許會想要確認一下檔案到底是不是確實被複製過去了。現在假設如下所示,你已經切換到了這個新目錄,便可以輸入 **nano preferences** 來進行修改。(下面的 ls 指令與 dir 指令相同,都是用來列出當前目錄中的所有檔案)
/home/user> cd .icewm
/home/user> ls
/home/user> nano preferences
{{howto:startmenu_help1_terminal.jpg|}}
4. 現在你應該可以在文字處理程式 [[http://en.wikipedia.org/wiki/Nano_%28text_editor%29|Nano]] 中看到這份複製版的 [[http://en.wikipedia.org/wiki/Icewm|IceWM]] 設定檔。
{{howto:startmenu_help2_nano.jpg|}}
5. 用方向鍵將文字游標移到含有 "TaskBarShowStartMenu" 那一行,並且將這個參數值由零改為 1,如下圖所示。
{{howto:startmenu_help3_nano2.jpg|}}
6. 現在你可以按下 Ctrl-X 以便關閉檔案,然後按下 "Y" 儲存,並按下 直接以 'preferences' 檔名儲存。
{{howto:startmenu_help3_nano3.jpg|}}
7. 搞定!接下來你可以按 **Ctrl-Alt-Backspace** 重新啟動 X 視窗環境(並不需要重新啟動 EeePC),然後就會看到開始功能表囉。
{{howto:startmenu_help4_desktop.jpg|}}
((翻譯本節時 EeePC 不在手邊,所以不知道中文版作業系統用詞(例如「顯示所有檔案系統」等)是否正確符合實機上所見,也缺少中文畫面截圖,希望熱心人士能協助補上。))
==== 使用檔案管理員來複製並修改設定檔 ====
1. 點選 **工作** 頁籤
2. 開啟 **檔案管理員**
3. 點選「檢視」、「顯示隱藏檔」
4. 點選「檢視」、「顯示所有檔案系統」
5. 在左窗框中點選 "My Home" 並建立一個命名為 **.icewm** 的隱藏資料夾
6. 在左窗框中從 "All File Systems" 移至 **/etc/X11/icewm**
7. 在右窗框中點一下滑鼠並按 **Ctrl-A** 以選取所有檔案
8. 按 **Ctrl-C** 將它們複製到剪貼簿
9. 在左窗框中點選 **My Home** 然後 .icewmIn,再按下 **Ctrl-V** 以便由剪貼簿貼上
10. 在名為 "preferences" 的檔案上點一下右鍵,選擇「以...開啟」->文字編輯器
{{http://865gv.kornhill.hk/eeepc/snapshot34.png|}}
{{http://865gv.kornhill.hk/eeepc/snapshot35.png|}}
11. 找到含有文字 "TaskBarShowStartMenu" 那一行,將這個項目的值從 0 改為 1
{{http://865gv.kornhill.hk/eeepc/snapshot36.png|}}
{{http://865gv.kornhill.hk/eeepc/snapshot37.png|}}
12. 存檔並按下 **Ctrl-Alt-Backspace** 重新啟動 X 視窗環境(無須重新啟動整台 Eee PC)
===== 將時間顯示格式改為 AM/PM =====
1. 在上述的同一個 **preferences** 檔中,找到註明為 "Clock Time Format" 的段落,並看看其下 **TimeFormat** 的值,如下圖所示。
{{howto:startmenu_help5_ampm_b.jpg|}}
2. 將 **TimeFormat** 修改如下:
TimeFormat="%I:%M %p"
{{howto:startmenu_help6_ampm_b.jpg|}}
3. 再來重新啟動 X 視窗環境(或者重新開機,如果你希望的話)
本文尚在發展中
===== 建立更好用的功能表選單 =====
本段落需要修改 /home/user/.icewm 下的 **menu** 檔案。
**#** - 在同一行中位於 # 符號之後的內容將被視為註解
**prog** - 在選單中將顯示的內容
**separator** - 各群組間的分隔線
**menu** - 群組資料夾
**restart** - 重新啟動另一個視窗管理員
**menufile** - special entry which house the shortcut names you placed in the toolbar
**menuprog** - ?
Some sample program entry :
format : prog "title" icon_name program_executable options
Games
prog "Potato Guy" ktuberling ktuberling -caption "Potato Guy"
Utility
prog "Control Panel" konqueror konqueror
prog "File Manager" Icon XandrosFileManager
prog "File Manager (Root)" Icon kdesu "XandrosFileManager --caption 'File Manager (ROOT)' --icon xfm_root"
prog "Text Editor" kwrite kwrite
prog "Screen Shot" ksnapshot ksnapshot
prog "Remote Desktop" krdc krdc
prog "Synaptic Package" synaptic kdesu synaptic
\\
===== IceWM 選單佈景主題 =====
[[doc:icewmstartmenutemplates|這裡]] 有一些佈景主題樣本可以參考使用。視需要複製貼上即可。 //(感謝 [[http://forum.eeeuser.com/profile.php?id=1158|alanking]]!)//
===== Quick buttons In The Toolbar ======
This article is under development.
\\
Kudos to [[http://forum.eeeuser.com/profile.php?id=730|o2smartphone]] who published his findings in [[http://forum.eeeuser.com/viewtopic.php?id=808|this discussion thread]] on the forum, as well as other contributors in that thread.
\\
\\
If you have some time, please contribute to this article by adding screenshots.