eh.. 這幾天都在找輕薄短小的 WM... 發現 Fluxbox 這個簡單又不錯的 WM... 所以就邊裝邊順手記下一些筆記, 希望對那些想裝 Fluxbox 的人有幫助 (google 裡的 fluxbox 中文文件好像沒多少=_=)
喔.. 對了.. 當然首要條件要先emerge fluxbox.. 接下來的東西才有用
#References
#http://www.momonga-linux.org/docs/fluxbox-HOWTO/C/
#http://www.fluxbox.org/docbook/en/html/
=======================================================
於 ~/.fluxbox/init 裡找到 session.screen0.rootCommand 改成:
session.screen0.rootCommand: ~/.fluxbox/autostart.sh
在 ~/.fluxbox/ 建立 autostart.sh:
#(若要使用桌布 -- fbsetbg 在 commonbox-utils 套件裡)
fbsetbg -f ~/pics/bg.jpg #(~/pics/bg.jpg 為要使用的桌布)
#(若要啟動時自動啟動 xcin)
XCINPID=`pidof xcin`
if [ "x$XCINPID" == "x" ]; then
xcin &
fi
=======================================================
編輯選單:
編輯 ~/.fluxbox/menu (例子如下):
[begin] (主選單)
#格式為: [動作] (名稱) {執行檔名}
[exec] (執行) {fbrun}
[exec] (rxvt) {rxvt}
#次選單
[submenu] (次選單)
[submenu] (第二層次選單)
[end]
[end]
=======================================================
編輯熱鍵 (~/fluxbox/keys) 例子:
#更多的指令請參考: http://www.fluxbox.org/docbook/en/html/x346.html
#Mod1 = Alt
Mod1 F1 revWorkSpace #(Alt + F1 切換至前一桌面)
Mod1 F2 :NextWorkSpace #(Alt + F2 切換至下一桌面)
Mod1 F4 :Close #(Alt + F4 關閉目前視窗)
# Mod4 = Winkey
Mod4 m :ShowDesktop #(Win + M 縮小所有視窗)
=======================================================
視窗群組設定:
將 ~/.fluxbox/init 裡的 session.groupFile 改成:
session.groupFile: ~/.fluxbox/groups
再於 ~/.fluxbox/ 建立一個叫 groups 的檔案, 若是要把所有的 Eterm 視窗群組起來, 直接在groups 裡加入一行 eterm:
#file begin
#把所有的 Eterm group 起來.
eterm
#file end
=======================================================
其它相關套件
- fbdesk : 讓 fluxbox 桌面可以放圖示捷徑
- fluxbox-styles-fluxmod : 更多的佈景