國(guó)慶期間,把自己的FVWM好好整理了一下,現(xiàn)在我的桌面看上去是這個(gè)樣子滴(點(diǎn)擊可放大):
我的.fvwm2rc可以 下載 。
我的部分FVWM筆記:
*** 如何使用托盤(pán)
$ sudo apt-get install trayer
$ trayer --widthtype pixel --width 128 --height 32 --edge bottom &
*** .fvwm2rc
**** Function
DestroyFunc FuncName
AddToFunc FuncName
+ I (Action to happen immediately)
+ C (Action to happen on a mouse 'click)
+ D (Action to happen on a mouse 'double click')
+ H (Action to happen on a mouse 'hold')
+ M (Action to happen on a mouse 'motion')
**** Geometry 57x500-5-5
寬度x高度 左上角坐標(biāo)
**** 鍵(鼠標(biāo))綁定(binding)
鍵:Key X Context Modifier Action
鼠:Mouse X Context Modifier Action
Context: where the mouse is currently located (as shown below)
+-----------------------------------+
| +---+ +---+ |
| R R | I | | I | |
| +---+ +---+ |
| |
| F S S F |
| +---------------------+ |
| |13579 T T T 08642| |
| +---------------------+ |
| | | |
| R | W W | R|
| | | |
| S| |S |
| | | |
| | W W | |
| | | |
| +---------------------+ |
| F S S F |
| R |
+-----------------------------------+
R - the root window
I - Icon
F - frame corners
S - frame sides
T - title bar
W - application window and 0-9 - buttons
Note: A will stand for anywhere (it doesn't matter where the mouse is located)
Modifier: 下列取值的組合:(A)ny, (C)ontrol, (S)hift, (M)eta, (N)othing,
or 1-5, representing the X Modifiers mod1-mod5 (man xmodmap)
e.g.:
# Key X Context Modifier Action
Key Tab A M WindowList Root c c NoDeskSort, SelectOnRelease Meta_L
Key Super_L A A Exec exec xterm -fn -misc-fixed-medium-r-normal--18-120-100-100-c-90-iso10646-1
# for the root window:
Mouse 1 R A Menu RootMenu Nop
Mouse 2 R A Menu Window-Ops Nop
Mouse 3 R A WindowList
# for the title bar buttons:
Mouse 0 1 A Menu Window-Ops2 Close
Mouse 0 2 A Close
Mouse 0 3 A Maximize-Func
Mouse 0 4 A Iconify
# for other parts of the window/borders/icons:
Mouse 1 F A Resize-or-Raise
Mouse 1 TS A Move-or-Raise
Mouse 1 W M Move-or-Raise
Mouse 1 I A Move-or-Iconify
Mouse 2 I A Iconify
Mouse 2 FST A Menu Window-Ops2 Nop
Mouse 3 TSIF A RaiseLower
**** Window Decor
TitleStyle
TitleStyle LeftJustified Height 18
ButtonStyle
Vectors are just simple line drawings.
Each vector is set up on a 100x100 grid and can have any number of points all connected by lines.
The syntax is 'Vector [number of points] [[point1] [point2] ...]'.
points: 'XxY@Z'
Z: 0 - Shadow(sh)
1 - Hilight(hi)
2 - Background(bg)
3 - Foreground(fg)
4 - Invisible.
e.g.
ButtonStyle 1 5 25x25@1 25x75@1 75x75@0 75x25@0 25x25@1
**** Module
所有的Fvwm的模塊,只有在函數(shù)中啟動(dòng)了它們,它們才能夠工作
在.fvwm2rc文件中,如果您需要用到FvwmButtons,或者其它的模塊,必需要先啟動(dòng)它。具體如下:
DestroyFunc StartFunction
AddToFunc StartFunction
+ I Module FvwmButtons
+ I Module FvwmPager
+ I Module FvwmAuto 500 Raise Nop
+ I Module FvwmAnimate
+ I Module FvwmTaskBar
+ I Module FvwmWharf
+ I Exec exec xpmroot /root/pic/macblack.png
I 表示:立即執(zhí)行
上面的配置中,分別在啟動(dòng)函數(shù)中,啟動(dòng)了FvwmButtons,F(xiàn)vwmPager,F(xiàn)vwmAnimate,F(xiàn)vwmTaskBar 和FvwmWharf等
你有什么程序需要在fvwm啟動(dòng)的時(shí)候執(zhí)行,你可以在其中加入一行:比如我想在fvwm啟動(dòng)的時(shí)候啟動(dòng) gkrellm
+ I Exec exec gkrellm 就ok了:)
**** FvwmTaskBar
如果把它設(shè)成沒(méi)有邊框(!Borders)的話(huà),屏幕右邊總是空著一塊,甚是不爽,
于是我想了個(gè)辦法,就是把邊框設(shè)成4,并讓顏色跟FvwmTaskBar的顏色一致:
Colorset 11 fg rgb:00/60/60, hi rgb:00/60/60, sh rgb:00/60/60, bg rgb:00/60/60
Style "FvwmTaskBar" NoTitle, BorderWidth 4, HandleWidth 4, Sticky,\
StaysOnTop, WindowListSkip, CirculateSkip, BorderColorset 11, HilightBorderColorset 11
*FvwmTaskBar: Back rgb:00/60/60
這樣TaskBar就能充滿(mǎn)屏幕的左右兩邊了。
**** FvwmPager
將窗口移動(dòng)到別的工作區(qū),可以在pager里面用中鍵拖動(dòng)窗口,拖到別的desktop里面就好了。
**** FvwmButtons
做一個(gè)抽屜的方法:
*MyButtons: (1x1+0+6, Frame 0, Panel(left, indicator, delay 0, steps 1) QuickLaunchButtons "Module FvwmButtons QuickLaunchButtons")
DestroyModuleConfig QuickLaunchButtons: *
*QuickLaunchButtons: Geometry 128x64
*QuickLaunchButtons: ...
*QuickLaunchButtons: ...
包含其它組件的方法:
*MyButtons: (1x4+0+11, Swallow(UseOld) asmon `Exec exec asmon`)
*PagerPanel: (Swallow FvwmPager "Module FvwmPager 0 3")
**** docks
用 apt-cache search wm dock 可以查到很多 dock app,很酷。 :)
favorites
xclock
asclock
wmweather -m
asmon
cputnik
from http://www.dockapps.org/
wmmoonclock
wmnd
一些有用的鏈接:
FVWM Beginners Guide
Wangyin's FVWM簡(jiǎn)明使用指南
dockapps.org
我的.fvwm2rc可以 下載 。
我的部分FVWM筆記:
*** 如何使用托盤(pán)
$ sudo apt-get install trayer
$ trayer --widthtype pixel --width 128 --height 32 --edge bottom &
*** .fvwm2rc
**** Function
DestroyFunc FuncName
AddToFunc FuncName
+ I (Action to happen immediately)
+ C (Action to happen on a mouse 'click)
+ D (Action to happen on a mouse 'double click')
+ H (Action to happen on a mouse 'hold')
+ M (Action to happen on a mouse 'motion')
**** Geometry 57x500-5-5
寬度x高度 左上角坐標(biāo)
**** 鍵(鼠標(biāo))綁定(binding)
鍵:Key X Context Modifier Action
鼠:Mouse X Context Modifier Action
Context: where the mouse is currently located (as shown below)
+-----------------------------------+
| +---+ +---+ |
| R R | I | | I | |
| +---+ +---+ |
| |
| F S S F |
| +---------------------+ |
| |13579 T T T 08642| |
| +---------------------+ |
| | | |
| R | W W | R|
| | | |
| S| |S |
| | | |
| | W W | |
| | | |
| +---------------------+ |
| F S S F |
| R |
+-----------------------------------+
R - the root window
I - Icon
F - frame corners
S - frame sides
T - title bar
W - application window and 0-9 - buttons
Note: A will stand for anywhere (it doesn't matter where the mouse is located)
Modifier: 下列取值的組合:(A)ny, (C)ontrol, (S)hift, (M)eta, (N)othing,
or 1-5, representing the X Modifiers mod1-mod5 (man xmodmap)
e.g.:
# Key X Context Modifier Action
Key Tab A M WindowList Root c c NoDeskSort, SelectOnRelease Meta_L
Key Super_L A A Exec exec xterm -fn -misc-fixed-medium-r-normal--18-120-100-100-c-90-iso10646-1
# for the root window:
Mouse 1 R A Menu RootMenu Nop
Mouse 2 R A Menu Window-Ops Nop
Mouse 3 R A WindowList
# for the title bar buttons:
Mouse 0 1 A Menu Window-Ops2 Close
Mouse 0 2 A Close
Mouse 0 3 A Maximize-Func
Mouse 0 4 A Iconify
# for other parts of the window/borders/icons:
Mouse 1 F A Resize-or-Raise
Mouse 1 TS A Move-or-Raise
Mouse 1 W M Move-or-Raise
Mouse 1 I A Move-or-Iconify
Mouse 2 I A Iconify
Mouse 2 FST A Menu Window-Ops2 Nop
Mouse 3 TSIF A RaiseLower
**** Window Decor
TitleStyle
TitleStyle LeftJustified Height 18
ButtonStyle
Vectors are just simple line drawings.
Each vector is set up on a 100x100 grid and can have any number of points all connected by lines.
The syntax is 'Vector [number of points] [[point1] [point2] ...]'.
points: 'XxY@Z'
Z: 0 - Shadow(sh)
1 - Hilight(hi)
2 - Background(bg)
3 - Foreground(fg)
4 - Invisible.
e.g.
ButtonStyle 1 5 25x25@1 25x75@1 75x75@0 75x25@0 25x25@1
**** Module
所有的Fvwm的模塊,只有在函數(shù)中啟動(dòng)了它們,它們才能夠工作
在.fvwm2rc文件中,如果您需要用到FvwmButtons,或者其它的模塊,必需要先啟動(dòng)它。具體如下:
DestroyFunc StartFunction
AddToFunc StartFunction
+ I Module FvwmButtons
+ I Module FvwmPager
+ I Module FvwmAuto 500 Raise Nop
+ I Module FvwmAnimate
+ I Module FvwmTaskBar
+ I Module FvwmWharf
+ I Exec exec xpmroot /root/pic/macblack.png
I 表示:立即執(zhí)行
上面的配置中,分別在啟動(dòng)函數(shù)中,啟動(dòng)了FvwmButtons,F(xiàn)vwmPager,F(xiàn)vwmAnimate,F(xiàn)vwmTaskBar 和FvwmWharf等
你有什么程序需要在fvwm啟動(dòng)的時(shí)候執(zhí)行,你可以在其中加入一行:比如我想在fvwm啟動(dòng)的時(shí)候啟動(dòng) gkrellm
+ I Exec exec gkrellm 就ok了:)
**** FvwmTaskBar
如果把它設(shè)成沒(méi)有邊框(!Borders)的話(huà),屏幕右邊總是空著一塊,甚是不爽,
于是我想了個(gè)辦法,就是把邊框設(shè)成4,并讓顏色跟FvwmTaskBar的顏色一致:
Colorset 11 fg rgb:00/60/60, hi rgb:00/60/60, sh rgb:00/60/60, bg rgb:00/60/60
Style "FvwmTaskBar" NoTitle, BorderWidth 4, HandleWidth 4, Sticky,\
StaysOnTop, WindowListSkip, CirculateSkip, BorderColorset 11, HilightBorderColorset 11
*FvwmTaskBar: Back rgb:00/60/60
這樣TaskBar就能充滿(mǎn)屏幕的左右兩邊了。
**** FvwmPager
將窗口移動(dòng)到別的工作區(qū),可以在pager里面用中鍵拖動(dòng)窗口,拖到別的desktop里面就好了。
**** FvwmButtons
做一個(gè)抽屜的方法:
*MyButtons: (1x1+0+6, Frame 0, Panel(left, indicator, delay 0, steps 1) QuickLaunchButtons "Module FvwmButtons QuickLaunchButtons")
DestroyModuleConfig QuickLaunchButtons: *
*QuickLaunchButtons: Geometry 128x64
*QuickLaunchButtons: ...
*QuickLaunchButtons: ...
包含其它組件的方法:
*MyButtons: (1x4+0+11, Swallow(UseOld) asmon `Exec exec asmon`)
*PagerPanel: (Swallow FvwmPager "Module FvwmPager 0 3")
**** docks
用 apt-cache search wm dock 可以查到很多 dock app,很酷。 :)
favorites
xclock
asclock
wmweather -m
asmon
cputnik
from http://www.dockapps.org/
wmmoonclock
wmnd
一些有用的鏈接:
FVWM Beginners Guide
Wangyin's FVWM簡(jiǎn)明使用指南
dockapps.org
更多文章、技術(shù)交流、商務(wù)合作、聯(lián)系博主
微信掃碼或搜索:z360901061

微信掃一掃加我為好友
QQ號(hào)聯(lián)系: 360901061
您的支持是博主寫(xiě)作最大的動(dòng)力,如果您喜歡我的文章,感覺(jué)我的文章對(duì)您有幫助,請(qǐng)用微信掃描下面二維碼支持博主2元、5元、10元、20元等您想捐的金額吧,狠狠點(diǎn)擊下面給點(diǎn)支持吧,站長(zhǎng)非常感激您!手機(jī)微信長(zhǎng)按不能支付解決辦法:請(qǐng)將微信支付二維碼保存到相冊(cè),切換到微信,然后點(diǎn)擊微信右上角掃一掃功能,選擇支付二維碼完成支付。
【本文對(duì)您有幫助就好】元
