nothingnothingnothingnothingnothing

要有勇气去改变可以改变的事,要有胸怀去接受不可改变的事,更要有智慧去分别两者的区别!

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
# 设置 FVWM 的鼠标样式
# 一般你只要直接加入就可以了,不需要修改


CursorStyle ROOT         left_ptr
CursorStyle TITLE        left_ptr
CursorStyle DEFAULT      left_ptr
CursorStyle SYS          left_ptr
CursorStyle MENU         left_ptr

# 设置 FVWM 的标题栏样式
# 正如字面提示一样,下面的命令就是设置标题栏高度的
# 根据我的经验,将高度设置成 18 可以有非常好的效果。
#TitleStyle Height 14
# 设置标题栏中标题的对齐方式
TitleStyle LeftJustified

# 设置标题栏的按钮的样式
ButtonStyle 2 17 20x20@1 30x20@1 50x40@1 70x20@1 80x20@1 80x30@0 60x50@0 80x70@1 80x80@0 70x80@0 50x60@0 30x80@0 20x80@0 20x70@0 40x50@1 20x30@0 20x20@1
ButtonStyle 4 4 50x25@1 75x75@0 25x75@0 50x25@1
ButtonStyle 6 4 50x75@1 25x25@1 75x25@1 50x75@0
ButtonStyle 3 8 40x80@1 40x50@1 20x50@1 50x20@1 80x50@0 60x50@0 60x80@0 40x80@0

# 设置背景色和前景色
HilightColor #ffffff #354c68

#下面这段是设定菜单的样式(透明的哦,我很喜欢),字体等相关参数。
MenuStyle * Hilight3DOff, HilightBack #424164, ActiveFore white
Colorset 0 Transparent,fg #blue
MenuStyle * MenuColorset 0
#MenuStyle * Foreground grey90
#MenuStyle * Background #1c5572
#MenuStyle * Font "-adobe-helvetica-bold-r-*-*-12-*,-*-simsun-medium-r-*-*-12-*-#*-*-*-*-*-*"
#MenuStyle * MenuColorset 0, HilightBack, ActiveColorset 1
#MenuStyle * BorderWidth 1, TitleUnderlines1, SeparatorsLong, TrianglesSolid
#MenuStyle * ItemFormat "%.2|%.5i%.5l%.5i%2.3>%2|"
#MenuStyle * AutomaticHotKeys
#MenuStyle * MenuFace VGradient 128 1 #2c80A0 1 #1c5572
#ColormapFocus FollowsFocus



#下面设定的是在我桌面的左上角的一排快捷程序按钮。其具体的样式(透明的),字体等。

#FvwmButtons: Hilight3DOff, HilightBack #424164, ActiveFore white
#Colorset 0 Transparent,fg white #颜色
#*FvwmButtons: ShowTips
#*FvwmButtons: FocusFore cornsilk
#*FvwmButtons: NoSeparators
#*FvwmButtons: UseSkipList
#*FvwmButtons: Colorset 0
#*FvwmButtons: Foreground grey90
#*FvwmButtons: Background #1c5572
#*FvwmButtons: Font "-adobe-helvetica-bold-r-*-*-12-*,-*-simsun-medium-r-*-*-12-*-*-*-*-*-*-*" #显示的字体及大小
#*FvwmButtons: Face VGradient 128 1 #2c80A0 1 #1c5572
#*FvwmButtons: WindowBorderWidth 1
#*FvwmButtons: Window3DBorders
#*FvwmButtons: Geometry +000 #显示在屏幕上的位置》(在左上角)
#*FvwmButtons: Columns 8 #显示8个按钮
#*FvwmButtons: Rows 1 #显示 一行
#ColormapFocus FollowsFocus
#Style FvwmButtons NoTitle,WindowListSkip,BorderWidth 1, HandleWidth 1,Sticky,\
#StaysOnTop,CirculateSkip

# 设置鼠标行为
Mouse 1        R       A       -
Mouse 1        A       CM      -
Mouse 2        R       A       WindowList
Mouse 3        R       A       Menu "window_ops" nop

Mouse 1        1        A          menu "window_ops" nop
#Mouse 1        3        A         FvwmIdent
Mouse 1        3        A         WindowShade

Mouse 1         2       A       Close
Mouse 1        4        A         Maximize
Mouse 1        6        A         Iconify

Mouse 3        I    A    Move
Mouse 1        I    A    Iconify

# 设置虚拟桌面的数量是摆放方式
DeskTopSize    2x2
EdgeScroll    0 0

# 设置窗口的样式
Style "*" MWMDecor
Style "*" MWMBorder
Style "*" BorderWidth 2, HandleWidth 2
# 设置一些图标的样式属性
Style "*"    IconBox +10+10
# 设置一下 FVWM 自身模块的属性
Style "Fvwm*"        NoTitle, Sticky, WindowListSkip
Style "FvwmButtons"  NoTitle, NoHandles, Sticky,WindowListSkip,BorderWidth 0 ClickToFocus,StaysOnBottom
style * IconBox 1024  1 -2 -78, IconGrid 60 60. IconFIll Top Bottom
Style * Font  -*-simsun-medium-r-*-*-14-*-*-*-*-*-*-*
Style * Font  "-cjacker-magicsong-medium-r-*-*-14-*-*-*-*-*-gb2312.1980-0,*-r-*"


# 设置菜单样式
MenuStyle "*" Font "-adobe-helvetica-medium-r-*-*-12-*,-misc-ar pl new sung-medium-r-normal-*-12-*-*-*-p-*-gb2312.1980-0"
MenuStyle "*" BorderWidth 1
MenuStyle "*" ActiveFore #000000
MenuStyle "*" Foreground #ffffff
MenuStyle "*" Background #354c68

# 对于窗口操作的一些快捷按键
Key F1    R    A    -
Key F2  WTSFI   M    Iconify
Key F3  WTSFI   M    Maximize
Key F4  WTSFI   M    Close

Read keys.fvwm2rc

addtomenu "window_ops"
+    "iconify Alt+F2"        iconify
+    "maximize Alt+F3"        maximize
+    "close    Alt+F4"        close
+    ""                nop
+    "move"                    move
+    "destroy"            destroy
+       "restart"                       restart


# fvwmpager
*FvwmPager: Rows 4
*FvwmPager: Columns 0
*FvwmPager: Geometry 82x400+2+370
*FvwmPagerBack #908090
*FvwmPagerFore #484048
*FvwmPager:Font  -*-simsun-medium-r-*-*-14-*-*-*-*-*-*-*
*FvwmPagerHilight #cab3ca
*FvwmPagerLabel 0 Main
*FvwmPagerLabel 1 Internet
*FvwmPagerLabel 2 Program
*FvwmPagerLabel 3 Amusement
*FvwmPager:SmallFont  -*-simsun-medium-r-*-*-12-*-*-*-*-*-*-*
*FvwmPagerBalloons            All
*FvwmPagerBalloonBack         Yellow
*FvwmPagerBalloonFore         Black
*FvwmPager:BalloonFont         -*-simsun-medium-r-*-*-14-*-*-*-*-*-*-*
*FvwmPagerBalloonYOffset      +2
*FvwmPagerBalloonBorderWidth  1
*FvwmPagerBalloonBorderColor  Black


# 设置 FvwmButtons 模块的样式和内容
*FvwmButtonsColumns    1
*FvwmButtonsFrame    1
*FvwmButtonsFore     #ffffff
*FvwmButtonsBack     #354c68
*FvwmButtonsFont "-adobe-helvetica-medium-r-*-*-12-*,-misc-ar pl new sung-medium-r-normal-*-12-*-*-*-p-*-gb2312.1980-0"
*FvwmButtonsGeometry    82x370+3+0
#Colorset 0 Transparent,fg #22aaf6
*FvwmButtons        (Title mlterm, Action 'Exec exec mlterm')
*FvwmButtons        (Title gvim, Action 'Exec exec gvim')
*FvwmButtons        (Title xmms, Action 'Exec exec xmms')
*FvwmButtons        (Title xchat, Action 'Exec exec xchat')
*FvwmButtons        (Title gqview, Action 'Exec exec gqview&')
*FvwmButtons        (Title pdf, Action 'Exec exec xpdf')
*FvwmButtons        (Title mplayer, Action 'Exec exec gmplayer ')
*FvwmButtons            (Title gimp, Action 'Exec exec gimp')
*FvwmButtons        (Title firefox, Action 'Exec exec firefox')
*FvwmButtons            (Title rox, Action 'Exec exec rox')
*FvwmButtons            (Title dillo, Action 'Exec exec dillo')
*FvwmButtons            (Title lumaqq, Action 'Exec exec lumaqq')
*FvwmButtons        (Title stardict, Action 'Exec exec stardict')
*FvwmButtons            (Title lock, Action 'Exec exec xlock)
*FvwmButtons        (Title restart, Action restart)
*FvwmButtons        (Title quit, Action quit)

*FvwmAnimate: Delay 5
*FvwmAnimate: Effect Twist
*FvwmAnimate: Width 2

# 定义一些在启动的时候要启动的命令和模块
AddToFunc "InitFunction"
#+       "I" Exec exec xsetroot -solid \#7F487F
#+       "I" Exec exec xsetroot -solid \#black
+        "I" Exec fvwm-root -r /root/image/linux1.png
+    "I" Module FvwmButtons
+    "I" Module FvwmAnimate
+    "I" Module FvwmAuto 500 Raise Nop
+       "I" Module FvwmPager 3 0
+       "I" Exec exec xclock -digital -fg white -bg SkyBlue4 -brief -update 60 -geometry +933+0
# 定义一些重新启动的模块
AddToFunc "RestartFunction"
+    "I" Module FvwmButtons
+    "I" Module FvwmAnimate
+    "I" Module FvwmAuto 500 Raise Nop
+       "I" Module FvwmPager 3 0
+       "I" Exec exec fvwm-root -r /root/image/linux1.png
#+       "I" Exec exec xclock -digital -fg white -bg SkyBlue4 -brief -update 60 -geometry +933+0
#+       "I" Exec exec xsetroot -solid \#aaa555
#+       "I" Exec exec xloadimage -onroot -fullscreen /e/image/football2.jpg

posted on 2005-11-16 23:06  nothingnothingnothingnothingnothingnothingnothingnothing  阅读(1120)  评论(0编辑  收藏  举报