习惯了Gnome与KDE的生活,是不是有时候也觉得太过于繁琐?
花了几天时间,终于配置好了我的FVWM………… 正如王垠博士说的那样
无比强大!!!!!
体验了 自己操控电脑的感觉啊
还是那句话,在Linux的世界里,我就是上帝!
有需求的人,我们一起探讨一下配置哈!
下面贴我的配置文件:
####添加图标路径##########
ImagePath /home/Bobby/Pictures:+
ImagePath /usr/share/icons/hicolor/16×16/apps/:+
ImagePath /usr/share/icons/hicolor/22×22/apps/:+
ImagePath /usr/share/icons/hicolor/24×24/apps/:+
ImagePath /usr/share/icons/hicolor/32×32/apps/:+
ImagePath /usr/share/icons/hicolor/36×36/apps/:+
ImagePath /usr/share/icons/hicolor/48×48/apps/:+
ImagePath /usr/share/icons/hicolor/64×64/apps/:+
ImagePath /usr/share/icons/hicolor/72×72/apps/:+
ImagePath /usr/share/icons/hicolor/96×96/apps/:+
ImagePath /usr/share/icons/hicolor/128×128/apps/:+
ImagePath /usr/share/icons/hicolor/192×192/apps/:+
ImagePath /usr/share/icons/hicolor/256×256/apps/:+
# 窗口最大化是两边撑满,而上面留出0个(像素?),下面相应的留出25
EwmhBaseStruts 0 0 0 23
#使用EdgeScroll命令禁止flipping pages(鼠标不会因为接近屏幕边缘而进入相近的桌面)
EdgeScroll 0 0
####设置指针样式###############
CursorStyle ROOT left_ptr
CursorStyle RIGHT_EDGE right_ptr black white
CursorStyle MENU left_ptr black white
CursorStyle TITLE left_ptr black white
CursorStyle DEFAULT left_ptr black white
CursorStyle SYS left_ptr black white
CursorStyle WAIT watch black white
CursorStyle RESIZE sizing black “#5477A0”
CursorStyle MOVE fleur yellow black
CursorStyle SELECT left_ptr black white
CursorStyle POSITION left_ptr black white
CursorStyle TOP top_side red black
CursorStyle RIGHT right_side red black
CursorStyle BOTTOM bottom_side red black
CursorStyle LEFT left_side red black
CursorStyle TOP_LEFT top_left_corner red black
CursorStyle TOP_RIGHT top_right_corner red black
CursorStyle BOTTOM_LEFT bottom_left_corner red black
CursorStyle BOTTOM_RIGHT bottom_right_corner red black
#################################
########自定义函数####################
DestroyFunc Maximize-Func2
AddToFunc Maximize-Func2
+ “M” Maximize 100 0
+ “C” Maximize 80 0
+ “D” Maximize 100 100
############鼠标键盘的动作##########
Mouse 1 R A Menu RootMenu Nop
Mouse 1 TSFWI M Move
Mouse 3 R A WindowList
Mouse 1 6 A Iconify
Mouse 1 2 A Close
Mouse 1 4 A Maximize-Func2
#Mouse 4 6 A Exec exec amixer set Master 5%-
#Mouse 5 6 A Exec exec amixer set Master 5%-
#Mouse 1 WTSFI N Iconify
Key F1 A A Exec exec gnome-terminal
Key F2 A A Exec exec firefox
Key F3 A A Exec exec qq
Key F4 A A Exec exec smplayer
Key F5 A A Exec exec tremulous
Key F10 A A Restart fvwm2
Key F11 A A Exec exec reboot
Key F12 A A Exec exec halt
Key D A M Current Iconify
Key D A M2 Current Iconify
#Key S A M lconic Maximize 100 100
#Key S A M2 lconic Maximize 100 100
Key F2 A M Exec exec gnome-panel
Key F2 A M2 Exec exec gnome-panel
###ALT + F4关闭窗口#####
Key F4 WTSFI M Close
Key F4 WTSFI M2 Close
#########################################################
##############开始结束的设置#################
DestroyFunc StartFunction
AddToFunc StartFunction
+ I Exec exec Esetroot -scale ~/Pictures/bg3.jpg
+ I Exec exec ibus-daemon -d -x
+ I Exec exec gnome-settings-daemon
+ I Exec exec conky&
+ I Module FvwmTaskBar
#+ I Module FvwmPager 0 3
+ I Module FvwmButtons MainPanel
+ I Module FvwmButtons
+ I Module FvwmWharf
DestroyFunc InitFunction
AddToFunc InitFunction
+ I Exec exec xscreensaver -no-splash
DestroyFunc ExitFunction
AddToFunc ExitFunction
+ I All (xscreensaver) Close
+ I All (conky) Close
#####################################################
#######窗口设置###########
Style * StippledTitle ##窗口多了线条
Style * NoIcon, NoIconTitle
Style * FocusFollowsMouse
#Style * ClickToFocus, ClickToFocusPassesClick
Style * Font -*-simsun-medium-r-*-*-12-*-*-*-*-*-*-*
Style * Font -cjacker-magicsong-medium-r-*-*-12-*-*-*-*-*-gb2312.1980-0,*-r-*
Style * TileCascadePlacement
Style * IndexedIconName
Style * MinOverlapPercentPlacement
Style * MinOverlapPercentPlacementPenalties 2 5 1 2 0.5 50
Style * ResizeOutLine
Style * MouseFocusClickRaises
Style * DecorateTransient
Style * Button 1, Button 2, Button 4, Button 6, Button 8, GrabFocusOff
Style “Fvwm*” NoTitle, Sticky, WindowListSkip
Style “Fvwm*” BorderWidth 2, CirculateSkipIcon, CirculateSkip
Style “FvwmPager” StaysOnTop
Style “FvwmBanner” StaysOnTop
Style FvwmPager ParentalRelativity
Style FvwmButtons ParentalRelativity
Style FvwmIconMan ParentalRelativity
Style “qq” NoTitle,WindowListSkip,Sticky
#Colorset 0 fg #ffffff, fgsh #000000, bg #f6f6f6, sh #6e90b3, hi #91b6db, Translucent #283e5e 80
Colorset 1 fg #000000, fgsh #b5b7b8, bg #ffffff, hi #ffffff, sh #9a9a9a, Translucent #dce0e7 70
Colorset 3 fg #9aafbf, bg #000000, fgsh #000000, NoShape, RootTransparent, Tint #283e5e 70
Colorset 4 fg #ffffff, bg #000000, fgsh #000000, Noshape, RootTransparent, Tint #101f36 70
Colorset 41 RootTransparent buffer, fg white, bg average, Tint cyan 15, bgTint cyan 15 # tint is optional
Colorset 42 RootTransparent buffer, fg white, bg average, Tint blut 15, bgTint blut 15 # tint is optional
Colorset 23 Transparent, fg rgb:ff/ff/c4, bg darkgray
BorderStyle Inactive Colorset 42 — flat
BorderStyle Active Colorset 41 — flat
TitleStyle AllInactive Colorset 42 — flat
TitleStyle AllActive Colorset 41 — flat
ButtonStyle All — UseTitleStyle flat
###########################################################################
#####按钮的样式
ButtonStyle 2 Inactive Vector 4 30×30@3 60×60@3 60×30@4 30×60@3 — Flat
ButtonStyle 6 Inactive Vector 7 30×30@3 30×60@3 60×60@3 60×30@3 30×30@3 30×35@3 60×35@3 — Flat
ButtonStyle 4 Inactive Vector 5 30×60@3 60×60@3 60×50@3 30×50@3 30×60@3 — Flat
ButtonStyle 8 Inactive Vector 4 44×44@3 44×45@3 45×45@3 44×44@3 — Flat
ButtonStyle 1 Inactive Vector 4 44×44@3 44×45@3 45×45@3 44×44@3 — Flat
ButtonStyle 2 active Vector 4 30×30@3 60×60@3 60×30@4 30×60@3 — Flat
ButtonStyle 4 active Vector 7 30×30@3 30×60@3 60×60@3 60×30@3 30×30@3 30×35@3 60×35@3 — Flat
ButtonStyle 6 active Vector 5 30×60@3 60×60@3 60×50@3 30×50@3 30×60@3 — Flat
ButtonStyle 8 active Vector 4 44×44@3 44×45@3 45×45@3 44×44@3 — Flat
ButtonStyle 1 active Vector 4 44×44@3 44×45@3 45×45@3 44×44@3 — Flat
#################################
###########菜单风格设置##########
MenuStyle * Font -*-simsun-medium-r-*-*-12-*-*-*-*-*-*-*
#MenuStyle * MenuFace TiledPixmap /home/Bobby/Pictures/bg.png
MenuStyle * Hilight3DOff, HilightBack #424164, ActiveFore white
Colorset 0 Transparent,fg white
MenuStyle * Foreground grey90
MenuStyle * Background #1c5572
MenuStyle * Hilight3DThick
#菜单透明,选择后透明
MenuStyle * MenuColorset 0, HilightBack, ActiveColorset 0
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
############################################################
#########Menus###############
DestroyMenu RootMenu
AddToMenu RootMenu “徐伟建的菜单%mu5.png%” Title
+ “应用程序” Popup ProgramsMenu
+ “” Nop
#+ “打开Gnome” Exec exec nautilus
#+ “” Nop
+ “文件管理器” Exec exec nautilus –no-desktop –browser
+ “刷新屏幕” Refresh
+ “” Nop
+ “锁屏” Exec exec xscreensaver-command -lock
+ “退出FVWM” Popup Quit-Verify
#########菜单配置############
DestroyMenu ProgramsMenu
AddToMenu “ProgramsMenu” “选择软件%mu5.png%” Title
+ “GNOME终端%terminal.png%” Exec exec gnome-terminal
+ “rxvt终端” Exec exec urxvt
+ “gedit文字编辑器” Exec exec gedit
+ “emacs文字编辑器” Exec exec emacs
+ “Smplayer播放器” Exec exec smplayer
+ “星际译王%stardict%” Exec exec stardict
+ “火狐浏览器%firefox2.png%” Exec exec firefox
+ “枪战” Exec exec tremulous
+ “QQ聊天%qq.png%” Exec exec qq
DestroyMenu Quit-Verify
AddToMenu Quit-Verify “确定离开%mu5.png%” Title
+ “坚定决心” Quit
+ “重启FVWM” Restart fvwm2
+ “现在后悔不晚” Nop
##############################################################
#####FvwmATaskBar的设定#############
Style “FvwmTaskBar” NoTitle, !Handles, !Borders, Sticky, WindowListSkip, /
CirculateSkip, StaysOnBottom, FixedPosition, FixedSize, !Iconifiable
Style FvwmTaskBar ParentalRelativity
DestroyModuleConfig FvwmTaskBar: *
*FvwmTaskBar: Colorset 23
*FvwmTaskBar: Geometry +0-0
*FvwmTaskBar: Rows 1
*FvwmTaskBar: Font -adobe-helvetica-bold-r-*-*-12-*,-*-simsun-medium-r-*-*-12-*-*-*-*-*-*-*
#*FvwmTaskBar: SelFont -adobe-helvetica-bold-r-*-*-12-*,-*-simsun-medium-r-*-*-12-*-*-*-*-*-*-*
*FvwmTaskBar: FvwmTaskBarColorset 0
*FvwmTaskBar: AutoStick
*FvwmTaskBar: UseSkipList
*FvwmTaskBar: PageOnly
*FvwmTaskBar: ShowTips
*FvwmTaskBar: TipsColorset 0
*FvwmTaskBar: StartName Angel
*FvwmTaskBar: StartMenu RootMenu mouse -100p -104m
#*FvwmTaskBar: StartIcon /home/Bobby/Pictures/mu5.png
*FvwmTaskBar: Pixmap /home/Bobby/Pictures/bg.png
*FvwmTaskBar: NoBrightFocus
*FvwmTaskBar: 3DFvwm
*FvwmTaskBar: MailCheck 0
##下面五段是关于颜色的设定。(背景,黑色。字体,白色)
#*FvwmTaskBar: black #3B3B3B
#*FvwmTaskBar: Fore black
#*FvwmTaskBar: FocusFore cornsilk
#*FvwmTaskBar: Back #cd2626
#*FvwmTaskBar: IconBack #3B3B3B
#*FvwmTaskBar: IconFore gold
*FvwmTaskBar:FocusColorset Colorset 23
*FvwmTaskBar:IconColorset Colorset 23
*FvwmTaskBar: ClockFormat %R %m/%d 徐伟建
*FvwmTaskBar: Action Click 3 Menu MenuFvwmWindowOps mouse -1p -100m
*FvwmTaskBar: Button NoTitle , Icon firefox2.png, Action (Mouse 1) Exec exec firefox
*FvwmTaskBar: WindowButtonsRightMargin 124
*FvwmTaskBar: NoIconAction SendToModule FvwmAnimate animate
####################################################################################
############FvwmPager#############################
*FvwmPager: Rows 4
*FvwmPager: Columns 1
#*FvwmPager: Colorset * 23
*FvwmPagerGeometry +0+0
*FvwmPagerBack pink
*FvwmPagerFore black
*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
#######################################################
###############FvwmButtonsBack####################
*FvwmButtonsBack bisque3
*MainPanel:Colorset 23
*MainPanel: Geometry 80×18+0+0
#*MainPanel: Back #cd2626
*MainPanel: (Panel(down, indicator, delay 0, steps 1) /
PagerPanel “Module FvwmButtons PagerPanel”)
*MainPanel: Font -*-simsun-medium-r-*-*-16-*-*-*-*-*-*-*
*PagerPanel: Geometry 80×352
*PagerPanel: (Swallow FvwmPager “Module FvwmPager 0 3”)
*PagerPanel: Font -*-simsun-medium-r-*-*-16-*-*-*-*-*-*-*
##########################################################
###############FvwmButtons###########
#*FvwmButtonsBack white
#*FvwmButtonsBack pink
*FvwmButtonsBackColorset: Colorset 23
*FvwmButtons: Colorset 23
*FvwmButtonsPixmap /home/Bobby/Pictures/bg2.png
*FvwmButtonsFont:5×8
*FvwmButtonsGeometry +0+400
#+1085+0
*FvwmButtonsColumns 1 #设置FvwmButtons为七列,一行
*FvwmButtonsRows 2
*FvwmButtons(Title Firefox, Icon firefox2.png, Action ‘Exec firefox&’)
*FvwmButtons(Title Gnome-Terminal, Icon terminal.png, Action ‘Exec gnome-terminal &’)
今天的文章fvwm配置分享到此就结束了,感谢您的阅读。
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 举报,一经查实,本站将立刻删除。
如需转载请保留出处:https://bianchenghao.cn/4879.html