2010年1月1日金曜日

fluxboxのレビュー

Twitterでつぶやいたりポトリスしたり…他愛ないことですがないと困るのがOS、Linuxを使っています。
ウインドウマネージャーをfluxboxにしてみました。そのレビューです。



使ってみるとあら便利…自分好みのいいWMでした。ありがとうfluxbox開発者。

こちらを参考にしてスタイルをつくってみました。

~/.fluxbox/styles/simplegray
! background
background:                          solid
background.color:                    gray40

! global
*.font:                              *-12:bold
bevelWidth:                          1
borderWidth:                         1
handleWidth:                         3

*.color:                             gray60
*.unfocus.color:                     gray30
*.textColor:                         white
*.unfocus.textColor:                 gray70
borderColor:                         black

! window
window.button.focus.color:           gray80
window.button.unfocus.color:         gray50
window.button.focus.picColor:        white
window.button.unfocus.picColor:      gray70
window.grip.focus.color:             gray80
window.grip.unfocus.color:           gray50

! toolbar
toolbar.borderWidth:                 0
toolbar.clock.justify: center

toolbar.color:                       black
toolbar.iconbar.unfocused.color:     gray30
toolbar.iconbar.unfocused.textColor: gray70
toolbar.*.color:                     gray30
toolbar.iconbar.*.color:             gray60
toolbar.button.color:                gray50
toolbar.button.pressed:              flat solid
toolbar.button.pressed.color:        gray80
toolbar.iconbar.empty.color:         gray30

! menu
menu.frame.font:                     *-10
menu.title.justify:                  center
menu.bullet.position:                right
menu.bullet:                         triangle

menu.title.color:                    gray30
menu.frame.color:                    gray80
menu.title.*.textColor:              white
menu.frame.*.textColor:              black
menu.hilite.color:                   white
menu.hilite.textColor:               black


スタイルの他にも細かく設定できる…

~/.fluxbox/init
...
session.screen0.toolbar.onTop:          True
session.screen0.toolbar.widthPercent:   100
session.screen0.toolbar.placement:      TopCenter

session.screen0.opaqueMove:             True

session.screen0.windowScrollAction:     Shade
session.screen0.windowScrollReverse:    True

session.screen0.rowPlacementDirection:  RightToLeft

session.screen0.strftimeFormat:         %m/%d (%a) %k:%M

session.screen0.workspaces:             2
session.screen0.workspaceNames:         a,b
...

~/.fluxbox/keys
...
Mod4 r :Reconfigure
Mod4 q :Exit
Mod4 l       :ExecCommand xscreensaver-command -activate
Mod4 Shift l :ExecCommand xscreensaver-command -lock
Mod4 comma  :ExecCommand amixer set SoftMaster 10%-
Mod4 period :ExecCommand amixer set SoftMaster 10%+
Control Shift k      :Close
Control Mod1 Shift k :KillWindow
Mod4 k :ExecCommand xkill

~/.fluxbox/apps
[app] (xconsole)
  [Hidden] {yes}
  [Deco] {tool}
  [Sticky] {yes}
[end]
[app] (xterm) (title=blender)
  [Layer] {6}
[end]

不満点

かなり細かくかつ簡単に設定でき至れり尽くせり…なのだけど二点不満が残りました。

  • メニューの挙動がもっさりしている

  • アイコンバーで最小化したウインドウと単にアンフォーカスなものとの区別がつかない

メニューについて、表示させるために右クリックして、その上で更にもう一度クリックしないと項目を選べない→動作がもっさり感じる。マウスボタンのプレスでメニューを表示→リリースで選択なら良いのだけど…早い話がよくあるGTK+アプリのメニューと同じ挙動にして欲しい!

アイコンバーについて、最小化したウインドウの名前を例えばイタリック等で表示できれば単にアンフォーカスなウインドウと区別がついて良いのだけど…もしくは、toolbar.iconbar.minimized.fontみたいなスタイルの設定リソースがあれば良いのだけど!とにかく一目で区別できるようにしたい。

解決方法をご存知の方いらっしゃれば、教えて頂けるとありがたいです。あらかたmanとドキュメントに目を通してググってみたけど未解決です。fluxboxのソースを調べつつ何とかできないか検討中…


参考リンク

fluxbox公式
http://fluxbox.org/


Fluxbox Style -- Fluxbox Information
http://www2.odn.ne.jp/add10/fluxbox/styles.html

スタイルについて参考にさせて頂きました。

fluxboxのスタイル(テーマ)を変更する -- Linux初心者の独り言
http://samidarehetima.blog9.fc2.com/blog-entry-38.html


fluxboxのスタイル(テーマ)を変更する その2 -- Linux初心者の独り言
http://samidarehetima.blog9.fc2.com/blog-entry-40.html

ワロタw 参考にさせて頂きました。


環境

OS: Linux
debian-lenny
fluxbox-1.0.0