免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 6018 | 回复: 15
打印 上一主题 下一主题

FVWM2的配置文件 [复制链接]

论坛徽章:
2
羊年新春福章
日期:2015-02-04 10:37:51射手座
日期:2015-02-04 10:38:43
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-01-08 18:59 |只看该作者 |倒序浏览
网上搜到的FVWM2的配置资料,放在这希望可以有人用得着!

  1. #####
  2. # fvwm2 initialisation file, using fvwm-2.5.11 on Gentoo Linux.
  3. #   -Tavis Ormandy <taviso@gentoo.org>
  4. #
  5. # Screenshots: http://dev.gentoo.org/~taviso/screenshots/
  6. #
  7. # To turn this file into plain text, try
  8. #   $ lynx -width=999 -nolist -dump http://dev.gentoo.org/~taviso/fvwm2rc.html
  9. #
  10. # FAQ:
  11. #   1.  What is that icon set?
  12. #   1a. http://forums.gentoo.org/viewtopic.php?p=853150&highlight=#853150
  13. #
  14. #   2.  I'm not using Gentoo Linux, why isnt your "Translucent" colorset option working for me?
  15. #   2a. http://www.fvwm.org/documentation/faq/#3.23
  16. #
  17. #   3.  Where can I find your Xdefaults?
  18. #   3a. http://dev.gentoo.org/~taviso/xdefaults.html
  19. #
  20. # This work is licensed under the Creative Commons Attribution License.
  21. # To view a copy of this license, visit http://creativecommons.org/licenses/by/2.0/
  22. #
  23. # $Header: /home/taviso/.fvwm/RCS/.fvwm2rc,v 1.43 2004/06/20 13:16:43 taviso Exp $
  24. #################

  25. #####
  26. # Set the directories to look in for Image files.
  27. #################
  28. ImagePath ${HOME}/icons:/usr/share/icons:+

  29. #####
  30. # You can set simple options like this, using variables.
  31. # If you need something more complex, you can get your configuration
  32. # pre-processed with FvwmCPP or FvwmM4.
  33. #################
  34. SetEnv fvwm_video_path $[HOME]/media/video
  35. SetEnv fvwm_video_exec "mplayer -vo x11"

  36. SetEnv fvwm_audio_path $[HOME]/media/audio
  37. SetEnv fvwm_audio_exec "beep-media-player --play"

  38. SetEnv fvwm_image_path $[HOME]/media/images
  39. SetEnv fvwm_image_exec xv

  40. SetEnv fvwm_rom_path $[HOME]/stuff/zsnes
  41. SetEnv fvwm_rom_exec zsnes

  42. SetEnv fvwm_wallpaper_dir /home/taviso/wallpaper
  43. SetEnv fvwm_wallpaper $[fvwm_wallpaper_dir]/circles_dark_blue_purple.png

  44. #####
  45. # You can automatically move the viewport into adjacent pages when the pointer
  46. # hits the screen edge, but I dont like this.
  47. #
  48. # EdgeThickness disables edge scrolling and EdgeCommand, which I never use. set this
  49. # to 1 or 2 to enable them.
  50. #################
  51. EdgeResistance 15 100
  52. EdgeThickness 0

  53. #####
  54. # http://www.fvwm.org/documentation/faq/#5.5
  55. #################
  56. IgnoreModifiers L2

  57. #####
  58. # You can use EwmhBaseStruts to stop Maximised windows, and new windows from obscuring
  59. # TaskBars/ButtonBars or anything else you always want to be visible.
  60. #
  61. # This Setting makes sure my ButtonBar on the left and taskbar along the bottom is always
  62. # visible, if you would like some windows to ignore this setting when being placed or Maximized,
  63. # you can set the EWMHPlacementIgnoreWorkingArea or EWMHMaximizeIgnoreWorkingArea Style options.
  64. #
  65. # you can also use the ewmhiwa flag on ceratin Maximize commands, so you could have one menu
  66. # option for normal maximization, and one for full-screen maximization.
  67. #################
  68. EwmhBaseStruts 0 128 0 28

  69. ######
  70. # Fvwm uses a default ClickTime of 150ms, which is way too short for me.
  71. # A Click that lasts <= ClickTime is considered a `Click` in functions,
  72. # > ClickTime is a `Hold`.
  73. # Remember that if you have a function that has actions on Click (C) and
  74. # DoubleClick (D), fvwm will have to wait at least this long so it can tell which
  75. # action you are trying to make.
  76. #################
  77. ClickTime 550

  78. #####
  79. # Use 9 pages per desktop, arranged in a square, like this:
  80. #
  81. #   +-----+-----+-----+
  82. #   |     |     |     |
  83. #   +-----+-----+-----+
  84. #   |     |     |     |
  85. #   +-----+-----+-----+
  86. #   |     |     |     |
  87. #   +-----+-----+-----+
  88. #################
  89. DeskTopSize 3x3

  90. ######
  91. # Use an arrow rather than the `X` cursor on the root window.
  92. #################
  93. CursorStyle root top_left_arrow
  94. CursorStyle stroke hand2
  95. #CursorStyle stroke pencil

  96. #####
  97. # OpaqueMoveSize allows you to stop Large windows from being moved opaquely,
  98. # I like the effect, and have Cycles to burn, so all windows can use it.
  99. #
  100. # SnapAttraction lets nearby windows snap together, or snap to edges so that they
  101. # are easier to align on your desktop, The default is off, if you set it too large
  102. # it's annoying as hell, 3 pixels is just right.
  103. #################
  104. OpaqueMoveSize -1
  105. SnapAttraction 3 SameType

  106. ######
  107. # Ksh has my favourite shell syntax, so use it if it exists.
  108. #################
  109. Test (f /bin/ksh) ExecUseShell /bin/ksh

  110. ######
  111. # Menu Settings.
  112. #
  113. #   * PopupOffset allows you to control where submenus will appear, and
  114. #       whether they should overlap or not.
  115. #   * PopupDelay controls how long fvwm will wait before showing an sub
  116. #       menu, if you would rather click than just hover on the menu item, set
  117. #       this to 0, if you would rather the menus appear instantly use the PopupImmediately
  118. #       setting.
  119. #   * This menu uses a translucent Colorset, and Hilighted items are light
  120. #       blue with a single pixel border.
  121. #   * I changed the default ItemFormat to be a little more spacious.
  122. #
  123. # AutomaticHotKeys generates your HotKeys (Keys you can press when a menu opens to
  124. # jump straight to an item) for you, you can write your own also, or disable them.
  125. # I've gone off HotKeys recently, so it's disabled for now.
  126. #
  127. # Try adding fgsh xxxx to Colorset 1 to change the Colour of the Font shadow on Hilighted
  128. # Menu entries.
  129. #
  130. # Anyone using lots of transparency in their theme will want to read these great tips
  131. # from olicha (Olivier Chapuis, an fvwm developer) on efficiency and performance
  132. # http://www.mail-archive.com/fvwm@hpc.uh.edu/msg02143.html
  133. #################
  134. Colorset 0 fg black, bg grey, Translucent #c6cbd6 90
  135. Colorset 1 fg black, bg #6b83b5, hi #dcdcdc, sh #dcdcdc

  136. MenuStyle * Hilight3DThin, PopupOffset 0 100, PopupDelay 300
  137. MenuStyle * Font "Shadow=1 1 SE:xft:Bitstream Vera Sans Mono:style=Roman:size=8"
  138. MenuStyle * MenuColorset 0, HilightBack, ActiveColorset 1
  139. MenuStyle * BorderWidth 1, TitleUnderlines1, SeparatorsLong, TrianglesSolid, Animation
  140. MenuStyle * ItemFormat "%.2|%.5i%.5l%.5i%2.3>%2|"
  141. # MenuStyle * AutomaticHotKeys

  142. ######
  143. # Use colormaps according to Focus, rather than where the Mouse is.
  144. #################
  145. ColormapFocus FollowsFocus

  146. ######
  147. # Default window Styles.
  148. #
  149. # I like single pixel borders, which look cleaner and simpler that the default 3d borders.
  150. #
  151. # It can be a little tricky to grab the handles, but I usually use a Key Binding for that
  152. # anyway, you can always make the handles stick out a bit more if you use them more than I do.
  153. #
  154. # SloppyFocus is the one true Focus policy :) (focus follows mouse, except on root)
  155. #
  156. # If I click in a window, I like it to be raised (MouseFocusClickRaises)
  157. #
  158. # GrabFocus is terrible, windows are always stealing focus and keystrokes end up in the wrong
  159. # windows and you lose your train of thought, etc. So turn it off here, and back on for windows
  160. # that play nice with it.
  161. #
  162. # Set up an IconBox (an area that Windows jump to by default when Iconified) along the left.
  163. # You can set more than one of these, as one gets filled the next one is used. You might also
  164. # be interested in this FAQ: http://www.fvwm.org/documentation/faq/#3.15
  165. #
  166. # Syntax Reminder:
  167. #
  168. # IconBox [screen scr-spec] l t r b
  169. #
  170. # Fvwm offers several placement policies, which decide where new windows should appear, I've
  171. # found that TileCascadePlacement makes a decent guess at where the windows should be, but there are
  172. # plenty more to choose from.
  173. #
  174. # If you find that a window is being placed in some awkward location, it may be setting it's own
  175. # geometry, you can ask fvwm to ignore this with either NoPPosition or NoUSPosition, for example:
  176. #   Style wmtimer NoUSPosition
  177. # you might also find the ExplainWindowPlacement BugOpt useful (search the man page).
  178. #
  179. # IconAlpha looks great, but requires a lot of redrawing while being moved...so I have disabled
  180. # it (by setting to 100) for Hilighted Icons, this also creates a cool MouseOver effect :)
  181. #
  182. # If you want to stop Thumbnails getting too big, you can use the IconSize option.
  183. #################
  184. Colorset 13 fg #f6f6f6, bg black, IconAlpha 40
  185. Colorset 14 fg white, bg black, fgsh black, IconAlpha 100
  186. #Style * Font "xft:Bitstream Vera Sans Mono:style=Roman:size=11"
  187. Style * Font "Shadow=1 1 SE:xft:Aquafont:size=11", BorderWidth 1, HandleWidth 1
  188. Style * Colorset 13, HilightColorset 14, MWMFunctions, MWMDecor, HintOverride
  189. Style * DecorateTransient, NoPPosition, IconBox 20 20 100 -15, IconGrid 3 3, IconFill left top
  190. Style * SloppyFocus, MouseFocusClickRaises, TileCascadePlacement, WindowShadeSteps 20
  191. Style * GrabFocusOff, NoIconTitle, !AllowMaximizeFixedSize, FPReleaseFocus, IndexedIconName

  192. # comment these lines if you dont like Icons to have Titles.
  193. Colorset 12 fg white, bg black, fgsh black, RootTransparent
  194. Style * IconTitle, IconTitleColorset 12, HilightIconTitleColorset 12, IconTitleRelief 0
  195. Style * IconFont "xft:Aquafont:size=11minspacing=True", IndexedIconName, IconBackgroundPadding 2,
  196. Style * IconBackgroundRelief 0, IconBackGroundColorset 12

  197. # This is another nice Placement Policy, which tries to avoid obscuring existing windows,
  198. # you can set penalties on certain window types so some are less likely to be obscured than
  199. # others. Check the manpage for even more Placement Policies.
  200. #Style * MinOverlapPercentPlacement
  201. #Style * MinOverlapPercentPlacementPenalties 2 5 1 2 0.5 50

  202. #####
  203. # My Vectors look like this
  204. #
  205. # +----------------------------------------------------------+
  206. # | .                                             ?  _  #  X |
  207. # +----------------------------------------------------------+
  208. # | 1                                             8  6  4  2 |
  209. # |                                                          |
  210. #                                                            |
  211. #
  212. # When the Buttons are ActiveDown (Pressed), The shadow vector is not drawn.
  213. #
  214. # Note that some Title/Button Styles are destructive.
  215. #
  216. # Vectors are basically just a set of co-ordinates, each button is a grid of 100x100 points
  217. # (or you can use pixels..it's up to you), following each vector you must specify a line type:
  218. #
  219. #   @0 Shadow (sh)
  220. #   @1 Hilight (hi)
  221. #   @2 Background (bg)
  222. #   @3 Foreground (fg)
  223. #   @4 Invisible (just move the pointer, dont draw anything)
  224. #
  225. # I normally use Gradients for my themes, but I am using a TiledPixmap below for the titlebar back.
  226. # If you would like the same pixmaps that i use, you can use these:
  227. #
  228. # begin 644 title_back.png
  229. # MB5!.1PT*&@H````-24A$4@````$````1"`8````<P\82````!F)+1T0`_P#_
  230. # M`/^@O:>3````"7!(67,```L3```+$P$`FIP8````!W1)344'U`,7##(;H1J%
  231. # ME@```!UT15AT0V]M;65N=`!#<F5A=&5D('=I=&@@5&AE($=)35#O9"5N````
  232. # M.DE$051XVCV*L0V`,`##K/P_]BNZLG``5Y"$`=HELJTPCD[=UXGB![5%B?]I
  233. # B@M)%C9?:*-WM^P6`^0)LD#!7?4W=0@````!)14Y$KD)@@@``
  234. # `
  235. # end
  236. #
  237. # begin 644 title_back_inactive.png
  238. # MB5!.1PT*&@H````-24A$4@````$````1"`8````<P\82````!F)+1T0`_P#_
  239. # M`/^@O:>3````"7!(67,```L3```+$P$`FIP8````!W1)344'U`,7##4`9#[:
  240. # MO0```!UT15AT0V]M;65N=`!#<F5A=&5D('=I=&@@5&AE($=)35#O9"5N````
  241. # M-4E$051XVE7+L0D`(!3$T'#[KV1C+98NX0X_5@IVX4%8VY'9&Q&(2A12W.*9
  242. # =2HIKY7>(`(P#7O$CI!U5BA4`````245.1*Y"8((`
  243. # `
  244. # end
  245. #
  246. # man uudecode if you're not sure what to do with these :)
  247. #
  248. # If you would like an example of a TitleBar gradient:
  249. #   TitleStyle Active ( VGradient 16 1 #5a8ade 50 #000000 -- Flat )
  250. #
  251. # More complex styles can be achieved using the MultiPixmap feature, see the
  252. # man page for details.
  253. #
  254. # ButtonStyle and TitleStyle are destructive, i.e. all other TitleStyles
  255. # before them will get overridden.
  256. #
  257. # AddButtonStyle and AddTitleStyle are not destructive (mostly), so you can
  258. # stack multiple styles (pixmaps, vectors, etc) on top of each other to make
  259. # some nice effects.
  260. #
  261. # I have seperated the vectors below into different parts, I have made one in
  262. # shadow and one in fg, if you dont like the shadow you can comment it out.
  263. #
  264. # Title bar Buttons can also be MiniIcons, this can look nice, there
  265. # is an example below commented out.
  266. ##################
  267. Colorset 7 fg black, bg white, sh white, RootTransparent Buffer, Tint #f6f6f6 20

  268. DestroyDecor DefaultDecor
  269. AddToDecor DefaultDecor
  270. + TitleStyle LeftJustified Height 17
  271. + TitleStyle InActive ( Colorset 7 -- Flat ) Active ( Colorset 7 -- Flat )
  272. + AddTitleStyle Active ( TiledPixmap title_back.png -- Flat ) \
  273.     Inactive ( TiledPixmap title_back_inactive.png -- Flat )
  274. + ButtonStyle All InActive ( Colorset 7 -- Flat )
  275. + ButtonStyle All Active ( Colorset 7 -- Flat )
  276. + AddButtonStyle  All Inactive TiledPixmap title_back_inactive.png -- Flat
  277. + AddButtonStyle  All Active TiledPixmap title_back.png -- Flat
  278. + AddButtonStyle  1 Active Vector 4 49x49@2 49x51@2 51x51@2 51x49@2 -- Flat
  279. + AddButtonStyle  1 Inactive Vector 4 49x49@3 49x51@3 51x51@3 51x49@3 -- Flat
  280. + AddButtonStyle  1 AllUp Vector 2 50x55@1 50x55@1 -- Flat
  281. #+ AddButtonStyle  1 Active MiniIcon -- Flat
  282. #+ AddButtonStyle  1 InActive MiniIcon -- Flat
  283. + AddButtonStyle  2 Active Vector 4 40x40@2 60x60@2 60x40@4 40x60@2 -- Flat
  284. + AddButtonStyle  2 Inactive Vector 4 40x40@3 60x60@3 60x40@4 40x60@3 -- Flat
  285. + AddButtonStyle  2 AllUp Vector 4 40x45@1 60x65@1 60x45@4 40x65@1 -- Flat
  286. + AddButtonStyle  4 Active Vector 7 40x40@2 40x60@2 60x60@2 60x40@2 40x40@2 40x45@2 60x45@2 -- Flat
  287. + AddButtonStyle  4 Inactive Vector 7 40x40@3 40x60@3 60x60@3 60x40@3 40x40@3 40x45@3 60x45@3 -- Flat
  288. + AddButtonStyle  4 AllUp Vector 4 40x65@1 60x65@1 45x50@4 55x50@1 -- Flat
  289. + AddButtonStyle  6 Active Vector 5 40x60@2 60x60@2 60x55@2 40x55@2 40x60@2 -- Flat
  290. + AddButtonStyle  6 Inactive Vector 5 40x60@3 60x60@3 60x55@3 40x55@3 40x60@3 -- Flat
  291. + AddButtonStyle  6 AllUp Vector 2 40x65@1 60x65@1 -- Flat
  292. + AddButtonStyle  8 Active Vector 9 40x40@2 45x35@2 55x35@2 60x40@2 60x45@2 50x50@2 50x55@2 50x65@4 50x65@2 -- Flat
  293. + AddButtonStyle  8 InActive Vector 9 40x40@3 45x35@3 55x35@3 60x40@3 60x45@3 50x50@3 50x55@3 50x65@4 50x65@3 -- Flat
  294. + AddButtonStyle  8 AllUp Vector 7 40x45@1 45x40@1 55x40@1 60x50@4 50x60@1 50x75@4 50x75@1 -- Flat
  295. + ButtonStyle 1 - MwmDecorMenu
  296. + ButtonStyle 6 - MwmDecorMin
  297. + ButtonStyle 4 - MwmDecorMax
  298. + BorderStyle Active Solid black -- NoInset HiddenHandles
  299. + BorderStyle Inactive Solid black -- NoInset HiddenHandles

  300. # These two vectors draw a circle around the vectors above, uncomment
  301. # them and see what you think.
  302. #+ AddButtonStyle  All Active Vector 9 80x60@4 80x40@2 60x20@2 40x20@2 20x40@2 20x60@2 40x80@2 60x80@2 80x60@2 -- Flat
  303. #+ AddButtonStyle  All Inactive Vector 9 80x60@4 80x40@2 60x20@2 40x20@2 20x40@2 20x60@2 40x80@2 60x80@2 80x60@2 -- Flat

  304. Style * UseDecor DefaultDecor

  305. # FlickeringMoveWorkaround disables ConfigureNotify events that
  306. # are usually sent to an application while it is moved. If some
  307. # windows flicker annoyingly while being moved, this option may
  308. # help you. Note that if this problem occurs it is not an fvwm
  309. # bug, it is a problem of the application.

  310. BugOpts FlickeringMoveWorkaround True
  311. #BugOpts ExplainWindowPlacement True


复制代码

论坛徽章:
2
羊年新春福章
日期:2015-02-04 10:37:51射手座
日期:2015-02-04 10:38:43
2 [报告]
发表于 2007-01-08 19:01 |只看该作者
接上:

  1. #####
  2. # Application specific Style settings
  3. #
  4. # You might be interested in the IconOverride style, which will allow you to specify
  5. # an Icon for an application even if it has set its own previously, This can be very
  6. # useful for applications that insist on setting their own icons even if it doesnt
  7. # fit in with your theme :)
  8. #
  9. # You can change most settings for specific applications, based on Title,
  10. # Class or Resource. you can also use wildcards, eg Style "Fvwm*" NoTitle.
  11. #
  12. # Use xwininfo or FvwmIdent module to find window Names, Classes, etc.
  13. #################
  14. Style FvwmPager   NoTitle, Sticky, WindowListSkip, StaysOnBottom
  15. Style FvwmBanner  NoTitle
  16. Style FvwmApplet-DigitalClock NoTitle, WindowListSkip
  17. Style FvwmScript-Quit CenterPlacement, StaysOnTop, MiniIcon plug.png, NoTitle, BorderWidth 3
  18. Style FvwmShelf   NoTitle, StaysOnBottom, Sticky, WindowListSkip, CirculateSkip, NeverFocus, FixedSize, NoHandles
  19. Style DeskControl NoTitle, NeverFocus, CirculateSkip, WindowListSkip, Sticky, StaysOnBottom, FixedSize, NoHandles
  20. Style FvwmBar     NoTitle, WindowListSkip, CirculateSkip, Sticky, NeverFocus, StaysOnBottom, NoHandles
  21. Style XTerm       MiniIcon computer_x11.png
  22. Style Eterm       MiniIcon computer_x11.png
  23. Style xman        MiniIcon book_help_paper.png
  24. Style xmag        ClickToFocus, MiniIcon document_database_view.png
  25. Style opera       EWMHMiniIconOverride, MiniIcon opera.png
  26. Style XVroot      GrabFocus
  27. Style gmrun       MiniIcon gears.png, GrabFocus, StaysOnTop, CenterPlacement
  28. Style gmrun       WindowListSkip, CirculateSkip, BorderWidth 3
  29. Style FvwmIdent   MiniIcon label_tag_version.png
  30. Style Calculator  MiniIcon calculator.png
  31. Style gcalctool   EWMHMiniIconOverride, MiniIcon calculator.png
  32. Style beep-media-player MiniIcon audio_horn.png, UsePPosition, !FPFocusByProgram, !Iconifiable, IgnoreRestack
  33. Style xmessage    MiniIcon person_face_talking.png, MinOverlapPlacement, EWMHPlacementIgnoreWorkingArea
  34. Style xchat-2     !FPFocusByProgram, NoFuncHint, NoDecorHint
  35. Style aterm       WindowShadeShrinks
  36. Style rxvt        WindowShadeShrinks
  37. Style Mulberry    MiniIcon mail.png
  38. Style Message     MiniIcon person_face_talking.png
  39. Style VMware      MiniIcon hardware_computers.png
  40. Style SDL_App     EWMHMiniIconOverride, MiniIcon games_jesters-cap.png
  41. Style XDosEmu     EWMHMiniIconOverride, MiniIcon games_jesters-cap.png
  42. Style pan         !FPFocusByProgram
  43. Style nautilus    EWMHMiniIconOverride, MiniIcon floppy_disk.png
  44. Style abiword-2.0 EWMHMiniIconOverride, MiniIcon document_letter_word-processor.png
  45. Style grip        EWMHMiniIconOverride, MiniIcon hardware_audio_cd.png
  46. Style xv          MiniIcon graphics_woman_panel.png
  47. Style xwrits      NoDecorHint, NoFuncHint
  48. Style gvim        EWMHMiniIconOverride, MiniIcon gvim.png
  49. Style Firefox-bin EWMHMiniIconOVerride, MiniIcon firefox.png
  50. Style XOsview     WindowListSkip, CirculateSkip, NoTitle
  51. Style HiddenConsole Sticky, WindowListSkip, Notitle, StaysOnTop, NoHandles, CirculateSkip
  52. Style HiddenConsole WindowShadeSteps 100, ResizeHintOverride
  53. Style gaim        EWMHMiniIconOverride, MiniIcon instant-messenger.png
  54. Style Ddd         MiniIcon audio_waveform_view.png
  55. Style Eboard      MiniIcon games_chess.png
  56. Style gimp        EWMHMiniIconOverride, MiniIcon graphics_paint_edit.png, !FPFocusByProgram
  57. Style gimp-2.0    EWMHMiniIconOverride, MiniIcon graphics_paint_edit.png, !FPFocusByProgram
  58. Style findtextdialog NoFuncHint, NoDecorHint
  59. Style fvwm_menu   MiniIcon gears.png, NoButton 4
  60. Style xmms        MiniIcon audio.png
  61. Style Lplayer     MiniIcon graph_mixer.png
  62. Style wmtimer     NoUSPosition
  63. Style xfig        MiniIcon paper_pencil2.png
  64. Style ROX-Filer   EWMHMiniIconOverride, MiniIcon floppy_disk.png, !FPFocusByProgram, !FPGrabFocusTransient
  65. Style XOsview     NoTitle
  66. Style peksystray  NoTitle
  67. Style gedit       EWMHMiniIconOverride, MiniIcon paper_pencil.png
  68. Style xcalendar   MiniIcon calendar_schedule.png
  69. Style ossxmix     MiniIcon graph_mixer.png
  70. Style MPlayer     MiniIcon film.png
  71. Style vmware      MiniIcon hardware_computers.png
  72. Style AcroRead    MiniIcon book_open.png
  73. Style Dia         MiniIcon chart_line-graph.png
  74. Style treeline.py MiniIcon paper_paper-set.png
  75. Style Waiting     MinOverlapPlacement, ClickToFocus

  76. #####
  77. # Miscellaneous Module Settings.
  78. #################

  79. # FvwmIdent is an xwininfo replacement.
  80. DestroyModuleConfig FvwmIdent: *
  81. *FvwmIdent: Back MidnightBlue
  82. *FvwmIdent: Fore #f6f6f6
  83. *FvwmIdent: Font "xft:snap;-artwiz-snap-*-r-*-*-*-*-*-*-*-*-iso8859-1"

  84. # FvwmScroll swallows applications into smaller containers, sometimes handy.
  85. DestroyModuleConfig FvwmScroll: *
  86. *FvwmScroll: Back #f6f6f6
  87. *FvwmScroll: Fore #f6f6f6

  88. # FvwmEvent can bind Commands to Events
  89. DestroyModuleConfig FvwmEvent: *
  90. *FvwmEvent: deiconify DeThumbnail
  91. *FvwmEvent: add_window NewWindowFunc
  92. *FvwmEvent: new_desk "SendToModule DeskControl ChangeButton desk Title $$[desk.n]"

  93. # Animations are controlled by this module
  94. # You could also use Frame, Lines, Turn, Twist, Random and None
  95. DestroyModuleConfig FvwmAnimate: *
  96. *FvwmAnimate: Effect Flip
  97. *FvwmAnimate: Delay 0
  98. *FvwmAnimate: Iterations 30
  99. #*FvwmAnimate: Twist 1
  100. *FvwmAnimate: Width 2

  101. ModuleTimeout 10

  102. #####
  103. # Hit Alt+Esc to toggle FvwmProxy, which allows you to see all windows on your
  104. # desktop, even if they've been obscured..really cool.
  105. ##################
  106. DestroyModuleConfig FvwmProxy: *
  107. *FvwmProxy: Font "xft:snap;-artwiz-snap-*-r-*-*-*-*-*-*-*-*-iso8859-1"
  108. *FvwmProxy: ProxyMove false

  109. Key Escape  A   M   SendToModule FvwmProxy ShowToggle

  110. #####
  111. # Mouse bindings.
  112. #################

  113. # Syntax Reminder:
  114. # Mouse Button Context Modifiers Function
  115. Mouse 1 R       A   Menu MenuFvwmRoot

  116. # Mouse wheel bindings

  117. # No modifier on root window just opens a menu.
  118. Mouse 4 R       A   Menu MenuFvwmRoot
  119. Mouse 5 R       A   Menu MenuFvwmRoot

  120. # hold down alt and roll wheel anywhere to switch windows.
  121. Mouse 4 A       M   Next (AcceptsFocus) FlipFocus
  122. Mouse 5 A       M   Prev (AcceptsFocus) Focus

  123. # hold down shift and roll wheel to move up and down pages.
  124. Mouse 4 A       S   WheelScroll down
  125. Mouse 5 A       S   WheelScroll up
  126. Mouse 4 R       C   WheelScroll down
  127. Mouse 5 R       C   WheelScroll up

  128. # Roll mouse wheel on Titlebars to shade/unshade
  129. Mouse 4 T       N   WheelToggleShade True
  130. Mouse 5 T       N   WheelToggleShade False

  131. Mouse 2 R       A   WindowList SortByClass MaxLabelWidth 60
  132. Mouse 0 1       N   Menu MenuFvwmWindowOps

  133. # Using a touchpad and having trouble with this?
  134. # http://forums.gentoo.org/viewtopic.php?p=1050159&highlight=#1050159
  135. Mouse 0 2       A   DestroyOnHold

  136. Mouse 0 6       A   Thumbnail
  137. Mouse 0 4       A   Maximize
  138. Mouse 0 8       A   Module FvwmIdent
  139. Mouse 1 FS      A   Resize-or-Raise
  140. Mouse 1 T       A   Move-or-Raise
  141. Mouse 1 I       A   Move-or-Iconify
  142. Mouse 2 I       A   Iconify
  143. Mouse 3 TSIF    A   RaiseLower
  144. Mouse 2 W       C   Resize-or-Raise
  145. Mouse 1 W       M   Move-or-Raise
  146. # Reserved for Mouse Gestures (See below)
  147. #Mouse 3 R      A   -


  148. #####
  149. # Key bindings.
  150. #
  151. # Key Keyname Context Modifiers Function
  152. #################
  153. Key F1 A        M   Exec exec rxvt -title 't e r m i n a l'
  154. Key F2 A        M   Exec exec gmrun
  155. Key F3 A        M   Module FvwmConsole -terminal rxvt
  156. Key F4 A        M   Pick Close
  157. Key X  A        4   Pick Destroy
  158. Key H  A        4   Next (CirculateHit, HiddenConsole) HiddenConsoleKeyBinding
  159. Key L  A        4   Exec exec xscreensaver-command --lock
  160. Key I  A        4   All (AcceptsFocus CurrentPage !Iconic !Shaded) Thumbnail
  161. Key C  A        CM  Exec exec xcalc -stipple
  162. Key G  A        CM  Exec exec gaim
  163. Key N  A        CM  Exec exec pan
  164. Key M  A        CM  Exec exec mulberry
  165. Key O  A        CM  Exec exec opera -newpage -bigicon
  166. Key V  A        CM  Exec exec gvim -geom 139x56
  167. Key B  A        CM  Exec exec beep-media-player
  168. Key X  A        CM  Exec exec xmag
  169. Key S  A        CM  Exec exec aterm -g 102x42 -title 's d f' -e ssh tty.freeshell.org
  170. Key F4 A        CM  Quit
  171. Key R  A        CM  Restart
  172. Key Up      WTSF    SM  PackWrapperUp
  173. Key Down    WTSF    SM  PackWrapperDown
  174. Key Left    WTSF    SM  PackWrapperLeft
  175. Key Right   WTSF    SM  PackWrapperRight

  176. # Menu is the name of the key adjacent to the my Right Windows Key.
  177. Key Menu    A   A   NoWindow FvwmExpose

  178. ####
  179. # Mouse Gestures.
  180. #
  181. # Syntax reminder:
  182. #
  183. #   1   2   3
  184. #
  185. #   4   5   6
  186. #
  187. #   7   8   9
  188. #
  189. # Stroke Sequence Button Context Modifiers Function
  190. #
  191. # I use mouse gestures in Opera and Mozilla, so I've duplicated some common ones here.
  192. #
  193. # To try these out, hold down the Left mouse button and trace the pattern on the Root
  194. # Window, the sequence is a pattern on the grid above, so 14789 would be down then Right.
  195. #################

  196. ####
  197. # First, define a StrokeFunc.
  198. #
  199. # Without this, you would have to execute all of your gestures entirely on the Root
  200. # Window, This lets you change the Context and have a few other Neat Features, such as
  201. # DrawMotion, which will draw a line as you make your Gesture (Neat!).
  202. #
  203. # There is also EchoSequence, Feedback and NotStayPressed.
  204. #
  205. # Note: EchoSequence prints sequences to STDERR.
  206. #################
  207. Mouse 3 R A     StrokeFunc DrawMotion FeedBack StrokeWidth 1
  208. #Stroke 0 0 R N     Menu MenuFvwmRoot

  209. # Down, Then Up.
  210. Stroke 25852 0 R N  Refresh

  211. # Directions...
  212. Stroke 456 0 R N    GotoPage +1p 0p
  213. Stroke 654 0 R N    GotoPage -1p 0p
  214. Stroke 852 0 R N    GotoPage 0p -1p
  215. Stroke 258 0 R N    GotoPage 0p +1p

  216. # Diagonal...
  217. Stroke 159 0 R N    GotoPage +1p +1p
  218. Stroke 951 0 R N    GotoPage -1p -1p
  219. Stroke 357 0 R N    GotoPage -1p +1p
  220. Stroke 753 0 R N    GotoPage +1p -1p

  221. #####
  222. # Quit
  223. #
  224. # Down, Then Right.
  225. #
  226. # Dont worry about running this gesture by accident,
  227. # you will be asked to confirm
  228. #################
  229. Stroke 14789 0 R N  Module FvwmForm FvwmForm-QuitVerify

  230. ####
  231. # Up, Then Down: Close a window.
  232. #
  233. # Note that you can also enter the sequence as it appears on your
  234. # Numeric Keypad, by preceding the sequence with an `N`.
  235. #
  236. # The FVWM developers think of everything :)
  237. #################
  238. Stroke N25852 0 R N Pick Close

  239. # Start a Web Browser
  240. Stroke N1478963 0 R N Exec exec opera -newpage -bigicon

  241. # Make a new Sticky Note
  242. Stroke N1598753 0 R N Exec exec xpad

  243. #####
  244. # Fvwm executes StartFunction when Fvwm is initialized, and at restart.
  245. # A Good place to start Modules.
  246. #
  247. # FvwmCommandS Allows you to run Fvwm Commands from a Terminal, like this:
  248. #   $ FvwmCommand 'Module FvwmBanner'
  249. # Or any other Command.
  250. #
  251. # You can test for Initialization from within StartFunction, this is a good
  252. # place to set the Background or start your favourite applications.
  253. #
  254. # osd_cat comes from the xosd package.
  255. #################
  256. AddToFunc StartFunction
  257. + I Test (Init) Exec exec fvwm-root --dither --retain-pixmap $[fvwm_wallpaper]
  258. + I Module FvwmCommandS
  259. + I Module FvwmAnimate
  260. + I Module FvwmEvent
  261. + I Module FvwmProxy
  262. + I Module FvwmAuto FvwmAutohide -menter FuncAutoEnter
  263. + I Module FvwmButtons -g 126x$[vp.height]-0+0 FvwmShelf
  264. + I PipeRead "echo Module FvwmButtons -g $$(($[vp.width]-129))x28+0-0 FvwmBar"
  265. + I Module FvwmButtons -g 18x42+0+-28 DeskControl
  266. + I Test (Init) Exec tail -n 0 -f /var/log/messages | osd_cat -a 30 -A left -o 10 -i 10 -f cure -c white -d 10 -s 1
  267. + I Test (Init) Test (x rxvt) StartHiddenConsole
  268. + I Test (Restart) All (Iconic) Test (f $[FVWM_USERDIR]/icon.tmp.$[w.id].png) WindowStyle IconOverride, Icon $[FVWM_USERDIR]/icon.tmp.$[w.id].png

  269. #####
  270. # I Sometimes use xsm, but dont usually bother.
  271. #################
  272. #AddToFunc SessionInitFunction I Nop
  273. #AddToFunc SessionRestartFunction I Nop

  274. #####
  275. # ExitFunction is executed when you ask Fvwm to Quit.
  276. # Test (ToRestart) is true before a Restart.
  277. #################
  278. AddToFunc ExitFunction
  279. + I Test (!ToRestart) Exec rm -f $[FVWM_USERDIR]/icon.tmp.*
  280. + I KillModule FvwmAnimate
  281. + I Exec killall peksystray
  282. + I Exec sync

复制代码

论坛徽章:
2
羊年新春福章
日期:2015-02-04 10:37:51射手座
日期:2015-02-04 10:38:43
3 [报告]
发表于 2007-01-08 19:02 |只看该作者
接上:

  1. #####
  2. # Autohide console example: http://dev.gentoo.org/~taviso/screenshots/autohide_console.png
  3. ##################
  4. DestroyFunc StartHiddenConsole
  5. AddToFunc StartHiddenConsole
  6. + I Exec exec rxvt +sb -geometry 144x8+0+0 -name HiddenConsole
  7. + I Wait HiddenConsole
  8. + I Next (HiddenConsole) Resize $[vp.width]p 9
  9. + I Autohide HiddenConsole 0 0 N

  10. # XXX: This doesnt change focus, should it?
  11. DestroyFunc HiddenConsoleKeyBinding
  12. AddToFunc HiddenConsoleKeyBinding
  13. + I ThisWindow (Shaded) FuncAutoEnter
  14. + I TestRc (NoMatch) NoWindow FuncAutoEnter

  15. #####
  16. # Menu definitions
  17. # Beep if theres a missing SubMenu to remind me to write it.
  18. #
  19. # The Test (x foobar) only adds options to the menu if the application
  20. # exists in your $PATH.
  21. #################
  22. DestroyMenu MenuFvwmRoot
  23. AddToMenu MenuFvwmRoot
  24. Test (x rxvt) + %computer_x11.png%"&Xterm"%alt_f1.png% Exec exec rxvt -title 't e r m i n a l'
  25. Test (x aterm) + %computer.png%"&Aterm" Exec exec aterm --title 't e r m i n a l'
  26. + "" Nop
  27. + %paper_pencil.png%"Office" Popup MenuOffice
  28. + %world_view_index.png%"Internet" Popup MenuInternet
  29. + %text.png%"Editors" Popup MenuEditors
  30. + %film.png%"Multimedia" Popup MenuMultimedia
  31. + %swiss-army-knife.png%"Utilities" Popup MenuUtilities
  32. + %function_code_fragment.png%"Development" Popup MenuDevel
  33. + %games_puzzles_dice.png%"Games" Popup MenuGames
  34. + %telephone_out.png%"Logins" Popup Menulogins
  35. + "" Nop
  36. Test (x gmrun) + %gears.png%"&Run..."%alt_f2.png% Exec exec gmrun
  37. + "" Nop
  38. + %hardware_monitor.png%"F&vwmConsole"%alt_f3.png% Module FvwmConsole -terminal rxvt
  39. + %tools.png%"Preferences" Popup MenuFvwmConfig
  40. + %tool_wrench.png%"Window Controls" Popup MenuFvwmWindowOps
  41. + "" Nop
  42. + %bomb.png%"X&kill"%win_x.png% Pick Destroy
  43. + %graphics_convert_polaroid.png%"&Cascade Windows" Module FvwmRearrange -cascade -animate -incx 3 -incy 3
  44. + %book_set.png%"&Tile Windows" Module FvwmRearrange -tile -animate -mn 2
  45. Test (x scrot) + %hardware_camera.png%"&Screenshot" Exec exec scrot --quality 100 '%Y-%m-%d_$wx$h.png'
  46. Test (x xscreensaver-command) + %lock_key_unlocked.png%"&Lock Screen"%win_l.png% Exec exec xscreensaver-command -lock
  47. + "" Nop
  48. + %warning_symbol.png%"Exit Fvwm" Popup MenuQuit-Verify

  49. DestroyMenu MenuOffice
  50. AddToMenu MenuOffice
  51. Test (x abiword-2.0) + %document_letter_word-processor.png%"Word Processor" Exec exec abiword-2.0
  52. Test (x acroread) + %book_open.png%"Acrobat Reader" Exec exec acroread
  53. Test (x gv) + %file_text_view.png%"GV Document Viewer" Exec exec gv
  54. Test (x xcalc) + %calculator.png%"Calculator"%ctl_alt_c.png% Exec exec xcalc -stipple
  55. Test (x gcalctool) + %calculator.png%"Gnome Calculator" Exec exec gcalctool
  56. Test (x xpad) + %paper_pencil2.png%"Sticky Notes" Exec exec xpad
  57. Test (x gringotts) + %filter_encrypt.png%"Gringotts Encryption" Exec exec gringotts
  58. Test (x dia) + %chart_line-graph.png%"Dia Diagram Editor" Exec exec dia
  59. Test (x treeline) + %paper_paper-set.png%"TreeLine Information Editor" Exec exec treeline

  60. DestroyMenu MenuInternet
  61. AddToMenu MenuInternet
  62. Test (x gaim) + %instant-messenger.png%"Instant Messenger"%ctl_alt_g.png% Exec exec gaim
  63. Test (x amsn) + %instant-messenger.png%"Instant Messenger"%ctl_alt_g.png% Exec exec amsn
  64. Test (x pan) + %news_newspaper.png%"News Reader"%ctl_alt_n.png% Exec exec pan
  65. Test (x xchat-2) + %balloon_chat.png%"IRC Client" Exec exec xchat-2
  66. Test (x xchat) + %balloon_chat.png%"IRC Client" Exec exec xchat
  67. Test (x ethereal) + %network_view.png%"Network Analyser" Exec exec ethereal
  68. Test (x giFtoxic) + %music_notes_view.png%"File Sharing" Exec exec giFToxic
  69. Test (x mulberry) + %mail.png%"E-Mail Client"%ctl_alt_m.png% Exec exec mulberry
  70. + "" Nop
  71. Test (x opera) + %opera.png%"Opera Web Browser"%ctl_alt_o.png% Exec exec opera -newpage -bigicon
  72. Test (x /usr/lib/mozilla/TestGtkEmbed) + %hand_world_web-site.png%"Simple Gtk+ Browser" Exec LD_LIBRARY_PATH="/usr/lib/mozilla" exec /usr/lib/mozilla/TestGtkEmbed http://www.google.co.uk/
  73. Test (x firefox) + %firefox.png%"Mozilla FireFox" Exec exec firefox
  74. Test (x dillo) + %hand_world_web-site.png%"Dillo Fast Web Browser" Exec exec dillo
  75. Test (x mozilla) + %browser_ship-wheel.png%"Mozilla Internet Suite" Exec exec mozilla
  76. Test (x galeon) + %world-wide-web.png%"Galeon Web Browser" Exec exec galeon

  77. DestroyMenu MenuEditors
  78. AddToMenu MenuEditors
  79. Test (x gvim) + %gvim.png%"Vim Editor"%ctl_alt_v.png% Exec exec gvim -geom 139x56
  80. Test (x evim) + %text.png%"Evim Editor" Exec exec evim -geom 139x56
  81. Test (x gedit) + %mail_edit.png%"Gedit Editor" Exec exec gedit
  82. Test (x xedit) + %computer_x11.png%"Xedit Editor" Exec exec xedit
  83. Test (x xemacs) + %mail_edit.png%"XEmacs Editor" Exec exec xemacs

  84. DestroyMenu MenuMultimedia
  85. AddToMenu MenuMultimedia
  86. + MissingSubmenuFunction FuncFvwmMenuDirectory
  87. Test (x beep-media-player) + %audio_horn.png%"Beep Media Player"%ctl_alt_b.png% Exec exec beep-media-player
  88. Test (x xmms) + %chart_bar.png%"XMMS Media Player" Exec exec xmms
  89. Test (x lplayer) + %audio_piano-keys_midi.png%"Long Player Playlist Manager" Exec exec lplayer
  90. Test (x gmplayer) + %film.png%"Mplayer GUI" Exec exec gmplayer
  91. Test (x xv) + %graphics_woman_panel.png%"Xv Graphics Viewer" Exec exec xv
  92. Test (x gimp-2.0) + %graphics_paint_edit.png%"GNU Image Manipulation Program" Exec exec gimp-2.0
  93. Test (x xpaint) + %graphics_presentation_person.png%"Simple Paint Package" Exec exec xpaint
  94. Test (x grip) + %hardware_audio_cd.png%"Audio CD Player" Exec exec grip
  95. Test (x /opt/oss/bin/ossxmix) + %graph_mixer.png%"OSS Audio Mixer" Exec exec /opt/oss/bin/ossxmix
  96. Test (x gcolor) + %graphics_palette_view.png%"Colour Browser" Exec exec gcolor
  97. + "" Nop
  98. + %hardware_video_camera_display.png%"Browse Videos" Popup $[fvwm_video_path]
  99. + %music_notes_view.png%"Browse Music" Popup $[fvwm_audio_path]
  100. + %graphics_presentation_person.png%"Browse Images" Popup $[fvwm_image_path]

  101. DestroyMenu MenuUtilities
  102. AddToMenu MenuUtilities
  103. Test (x nautilus) + %folder_view.png%"Nautilus File Manager" Exec exec nautilus --no-desktop
  104. Test (x rox) + %floppy_disk.png%"ROX Filer" Exec exec rox
  105. Test (x vmware) + %hardware_computers.png%"VMware Workstation" Exec exec vmware
  106. Test (x fsv) + %document_graph.png%"3D File System Explorer" Exec exec fsv
  107. Test (x xmag) + %document_database_view.png%"Magnifying Glass"%ctl_alt_x.png% Exec exec xmag
  108. Test (x xwininfo) + %window.png%"Window Information" Exec exec xmessage "`xwininfo`"
  109. Test (x rxvt) + %gears.png%"Process Information" Exec exec rxvt -title 't o p' -tr -e top
  110. + "" Nop
  111. + %bulletin-board.png%"Show Desktop"%win_i.png% All (AcceptsFocus CurrentPage !Iconic !Shaded) Thumbnail

  112. DestroyMenu MenuDevel
  113. AddToMenu MenuDevel
  114. Test (x bluefish) + %html_edit.png%"Bluefish Html Editor" Exec exec bluefish
  115. Test (x anjuta) + %widget_buttons.png%"Anjuta Development Environment" Exec exec anjuta
  116. Test (x ddd) + %audio_waveform_view.png%"DDD Graphical Debugger" Exec exec ddd
  117. Test (x xfig) + %paper_pencil2.png%"Xfig Graphics Suite" Exec exec xfig
  118. Test (x scite) + %function_code_fragment.png%"Scintilla Programmers Editor" Exec exec scite

  119. DestroyMenu MenuGames
  120. AddToMenu MenuGames
  121. + MissingSubMenuFunction FuncFvwmMenuDirectory
  122. Test (x gxmame) + %games_jesters-cap.png%"MAME Arcade Emulator" Exec exec gxmame
  123. Test (x zsnes) + %games_simulation_airplane.png%"Super Nintendo Emulator" Exec exec zsnes
  124. Test (x nethack) + %games_roleplaying_muds_people.png%"Nethack Adventure Game" Exec exec nethack
  125. Test (x xdosemu) + %games_jesters-cap.png%"MS-DOS Emulator" Exec exec xdosemu
  126. Test (x xfractint) + %fractal_mandelbrot_greyscale.png%"Fractal Generator" Exec exec xterm -e xfractint
  127. Test (x cowsay) + %animal_cow.png%"Print Fortune" Exec exec xmessage "$(cowsay $(fortune -s -n 80))"
  128. Test (x eboard) + %games_chess.png%"Chess Board" Exec exec eboard
  129. Test (x quake3) + %games_shooters_target.png%"Quake III Arena" Exec exec quake3
  130. Test (x gnubg) + %games_children_board.png%"GNU BackGammon" Exec exec gnubg --window-system-only
  131. Test (x xgammon) + %games_children_board.png%"XGammon Game" Exec exec xgammon
  132. + "" Nop
  133. + %hardware_joystick.png%"Browse Super Nintendo Games" Popup $[fvwm_rom_path]
复制代码

论坛徽章:
2
羊年新春福章
日期:2015-02-04 10:37:51射手座
日期:2015-02-04 10:38:43
4 [报告]
发表于 2007-01-08 19:04 |只看该作者
接上:

  1. #####
  2. # I start fvwm from my ~/.xinitrc like this:
  3. #   exec ssh-agent fvwm2
  4. # So if i select "Add Agent Identity" from this menu, it adds my default ssh key to ssh-agent.
  5. #################
  6. DestroyMenu MenuLogins
  7. AddToMenu MenuLogins
  8. Test (x aterm) + %telephone_out.png%"SDF Public Access UNIX System"%ctl_alt_s.png% Exec exec aterm -g 102x42 -e ssh tty.freeshell.org
  9. Test (x aterm) + %computer_network.png%"Gentoo Linux Dev Server" Exec exec aterm -g 102x42 -e ssh dev.gentoo.org
  10. Test (x /usr/lib/misc/ssh-askpass) + %key2.png%"Add Agent Identity" Exec ssh-add < /dev/null
  11. + "" Nop
  12. Test (x aterm) + %computer_x11.png%"Large Terminal Emulator" Exec exec aterm -g 102x42 -title 't e r m i n a l'

  13. DestroyMenu MenuQuit-Verify
  14. AddToMenu MenuQuit-Verify
  15. + %plug.png%"Quit Fvwm Now"%ctl_alt_f4.png% Quit
  16. + %gears.png%"Restart Fvwm..."%ctl_alt_r.png% Restart
  17. + "" Nop
  18. Test (x mwm) + %cursor.png%"Restart mwm" Restart mwm
  19. Test (x twm) + %cursor.png%"Restart twm" Restart twm
  20. Test (x xterm) + %computer_x11.png%"Restart xterm" Restart xterm
  21. + "" Nop
  22. + %hardware_mouse.png%"Cancel" Nop

  23. DestroyMenu MenuFvwmConfig
  24. AddToMenu MenuFvwmConfig
  25. + MissingSubmenuFunction WallpaperBrowser
  26. + %widget_buttons.png%"Configure FvwmForm" Module FvwmForm FvwmForm-Form
  27. + %cursor.png%"Configure Cursor" Module FvwmForm FvwmForm-RootCursor
  28. + %television.png%"Screensaver Settings" Exec exec xscreensaver-demo
  29. + %hardware_mouse.png%"Mouse Settings" Module FvwmScript FvwmScript-PointerSetup
  30. + %hardware_keyboard.png%"Keyboard Settings" Module FvwmScript FvwmScript-KeyboardSetup
  31. + %audio.png%"Configure Bell" Module FvwmScript FvwmScript-BellSetup
  32. + %tool_wrench.png%"General Settings" Module FvwmScript FvwmScript-BaseConfig
  33. + %tools.png%"Edit fvwm2rc..." Exec exec gvim -geom 139x56 $[FVWM_USERDIR]/.fvwm2rc
  34. + %plug.png%"Fvwm Modules" Popup MenuFvwmModules
  35. + %graphics_convert_polaroid.png%"Browse Wallpaper" Popup $[fvwm_wallpaper_dir]
  36. + %document_view.png%"$Revision: 1.43 $" Title
  37. + %book_help_baloon.png%"Fvwm Information..." Exec exec xmessage "$(fvwm --version)"
  38. + %computer_x11.png%"X Information..." Exec exec xmessage "$(xdpyinfo)"

  39. DestroyMenu FvwmMoveMethods
  40. AddToMenu FvwmMoveMethods
  41. + "Move to Top" Pick AnimatedMove keep 0p
  42. + "Move to Left" Pick AnimatedMove 0p keep
  43. + "Move to Right" Pick PipeRead "echo AnimatedMove $$(($[vp.width] - $[w.width]))p keep"
  44. + "Move to Bottom" Pick PipeRead "echo AnimatedMove keep $$(($[vp.height] - $[w.height]))p"
  45. + "" Nop
  46. + %window.png%"Centre Window" Pick CentreWindow (126/2) (28/2) Animated
  47. + "" Nop
  48. + %hardware_mouse.png%"Pack Up"%alt_sft_up.png% Pick PackWrapperUp
  49. + %hardware_mouse.png%"Pack Left"%alt_sft_left.png% Pick PackWrapperLeft
  50. + %hardware_mouse.png%"Pack right"%alt_sft_right.png% Pick PackWrapperRight
  51. + %hardware_mouse.png%"Pack down"%alt_sft_down.png% Pick PackWrapperDown
  52. + "" Nop
  53. + %numbers_counter.png%"Move To Page" Popup MenuPageList
  54. + "" Nop
  55. + %hardware_mouse.png%"Interactive Move" Pick Move

  56. # XXX: I can probably automate making this menu.
  57. DestroyMenu MenuPageList
  58. AddToMenu MenuPageList
  59. + "1" Pick MoveToPage 0 0
  60. + "2" Pick MoveToPage 1 0
  61. + "3" Pick MoveToPage 2 0
  62. + "4" Pick MoveToPage 0 1
  63. + "5" Pick MoveToPage 1 1
  64. + "6" Pick MoveToPage 2 1
  65. + "7" Pick MoveToPage 0 2
  66. + "8" Pick MoveToPage 1 2
  67. + "9" Pick MoveToPage 2 2

  68. #####
  69. # WindowOps, Main window controls menu.
  70. #################
  71. DestroyMenu MenuFvwmWindowOps
  72. AddToMenu MenuFvwmWindowOps
  73. + %paper_geometry.png%"Resize" Pick Resize
  74. + %document_view.png%"Iconify" Pick Iconify
  75. + %hardware_camera.png%"Thumbnail" Pick Thumbnail
  76. + %graphics_convert_polaroid.png%"Maximise" Pick Maximize
  77. + %hardware_mouse.png%"Move" Popup FvwmMoveMethods
  78. + %window-blind.png%"Shade" Pick WindowShade Toggle
  79. + %document_database_view.png%"Zoom Window" Pick Exec exec xmag -source $[w.width]x$[w.height]+$[w.x]+$[w.y] -mag 2
  80. + %cards_fanned-out.png%"Jiggle Window" Pick Jiggle 5
  81. + "" Nop
  82. + %capture_mouse-trap.png%"Stick" Pick Stick
  83. + %hardware_mouse.png%"Scroll" Pick Module FvwmScroll
  84. + %graphics_convert_polaroid.png%"Refresh" Pick RefreshWindow
  85. + %label_tag_version.png%"Identify" Pick Module FvwmIdent
  86. + "" Nop
  87. + %bomb.png%"Close"%alt_f4.png% Pick Close
  88. + %warning_symbol.png%"Destroy"%win_x.png% Pick Destroy
  89. + "" Nop

  90. DestroyMenu MenuFvwmModules
  91. AddToMenu MenuFvwmModules
  92. + %graphics_3d_wireframe.png%"Start Animation" Module FvwmAnimate
  93. + %map_sign.png%"Identify Window" Module FvwmIdent
  94. + %reorder_non-linear.png%"Start FvwmIconMan" Module FvwmIconMan
  95. + %graphics_presentation.png%"Display Banner" Module FvwmBanner
  96. + %hardware_monitor.png%"Start FvwmConsole" Module FvwmConsole -terminal rxvt
  97. + %hand_slides.png%"Start FvwmPager" Module FvwmPager *
  98. + %graphics_presentation_person.png%"Start FvwmBacker" Module FvwmBacker
  99. + %paper_geometry.png%"Scroll Window" Module FvwmScroll 50 50
  100. + %reorder_non-linear.png%"Start FvwmTaskBar" Module FvwmTaskBar
  101. + %window.png%"AutoRaise Windows" Module FvwmAuto 200 Raise Nop
  102. + "" Nop
  103. + %warning_symbol.png%"Stop Module" Popup MenuFvwmStopModule

  104. DestroyMenu MenuFvwmStopModule
  105. AddToMenu MenuFvwmStopModule
  106. + %bomb.png%"Close FvwmButtons" KillModule FvwmButtons
  107. + %reorder_non-linear.png%"Close Icon Managers" KillModule FvwmIconMan
  108. + %hand_slides.png%"Close Pagers" KillModule FvwmPager
  109. + %graphics_presentation_person.png%"Stop FvwmBacker" KillModule FvwmBacker
  110. + %reorder_non-linear.png%"Stop FvwmTaskBar" KillModule FvwmTaskBar
  111. + %window.png%"Disable AutoRaise" KillModule FvwmAuto

  112. #####
  113. # You can browse directories and files with the fvwm-menu-directory
  114. # script included with Fvwm, its very configurable (as you might expect!),
  115. # and very useful.
  116. #
  117. # http://www.mail-archive.com/fvwm%40hpc.uh.edu/msg05260.html
  118. #################
  119. DestroyFunc FuncFvwmMenuDirectory
  120. AddToFunc FuncFvwmMenuDirectory
  121. + I PipeRead 'case "$0" in \
  122.         "$[fvwm_rom_path]"*) myexec="$[fvwm_rom_exec]" mypng=games_puzzles_dice.png;; \
  123.         "$[fvwm_video_path]"*) myexec="$[fvwm_video_exec]" mypng=film.png;; \
  124.         "$[fvwm_audio_path]"*) myexec="$[fvwm_audio_exec]" mypng=audio.png;; \
  125.         "$[fvwm_image_path]"*) myexec="$[fvwm_image_exec]" mypng=graphics_presentation_person.png;; \
  126.     esac; \
  127.     test -f "$0"/.icontitle.png && mytitle="$0"/.icontitle.png; \
  128.     fvwm-menu-directory --icon-title "${mytitle:-folder_view.png}" --icon-file ${mypng:-file_text_view.png} \
  129.     --icon-dir folder_paper_closed.png --dir "$0" --exec-t="^${myexec:-gvim} *" \
  130.     --exec-file "^${myexec:-gvim}"'

  131. # CentreWindow xoff yoff [Animated]
  132. # To use full screen, CentreWindow 0 0
  133. AddToFunc CentreWindow I PipeRead "echo $2Move $$(((($[vp.width]-$[w.width])/2)-$0))p $$(((($[vp.height]-$[w.height])/2)-$1))p"

  134. # XXX: This will be a visual alert for something, apps can run
  135. # FvwmCommand 'Next (CurrentPage) Jiggle 3', or whatever :)
  136. AddToFunc Jiggle I PipeRead "for ((y=$0;y>=0;y--)) do printf 'AnimatedMove w+%up w+%up\\nAnimatedMove w-%up w-%up\\n' ${y} ${y} ${y} ${y}; done"

  137. #####
  138. # Name:     PackWindowUp
  139. # Bound:    Alt+Shift+Up When a window is active
  140. # Purpose:  Interrogate all windows on the current page, find the window with an edge
  141. #           closest to active window, and slide the Active window upto that edge, or
  142. #           the Page edge, if no window is in the way.
  143. #
  144. #           The Wrappers are required to look after the Context while we're testing
  145. #           windows. Could also do it with a load of variables, but this is nicer.
  146. #
  147. #           See PackWindowLeft for a description of the logic (i know it looks a little
  148. #           cryptic).
  149. #
  150. #           Sometimes terminals seem to need WindowRefresh, but 99% of the time it just
  151. #           works, it creates a little flicker so I'll leave it out until it starts to bug
  152. #           me.
  153. #
  154. #           Windows are also Raised, you can disable this.
  155. #
  156. #################
  157. DestroyFunc PackWindowUp
  158. AddToFunc PackWindowUp
  159. + I SetEnv low_w 0
  160. + I WindowId $3 Raise
  161. + I All (CurrentPage !Iconic AcceptsFocus \
  162.         !Shaded) PipeRead "test `expr $[w.y] + $[w.height]` -gt $[low_w] \
  163.         -a `expr $[w.y] + $[w.height]` -lt $0 \
  164.         -a \\( \\( $[w.x] -gt $1 -a $[w.x] -lt `expr $1 + $2` \\) \
  165.             -o \\( $1 -gt $[w.x] -a $1 -lt `expr $[w.x] + $[w.width]` \\) \
  166.             -o \\( $1 -le $[w.x] -a `expr $1 + $2` -ge `expr $[w.x] + $[w.width]` \\) \
  167.             -o \\( $[w.x] -lt $1 -a `expr $[w.x] + $[w.width]` -gt `expr $1 + $2` \\) \
  168.         \\) \
  169.         && echo SetEnv low_w `expr $[w.y] + $[w.height]` \
  170.         || echo Nop"
  171. + I WindowId $3 AnimatedMove keep $[low_w]p
  172. #+ I WindowId $3 RefreshWindow

  173. AddToFunc PackWrapperUp I NoWindow PackWindowUp $[w.y] $[w.x] $[w.width] $[w.id]

  174. #####
  175. # Name:     PackWindowDown
  176. # Bound:    Alt+Shift+Down When a window is active.
  177. # Purpose:  See PackWindowUp.
  178. #
  179. #################
  180. DestroyFunc PackWindowDown
  181. AddToFunc PackWindowDown
  182. + I SetEnv high_w $[vp.height]
  183. + I WindowId $3 Raise
  184. + I All (CurrentPage !Iconic AcceptsFocus \
  185.         !Shaded) PipeRead "test $[w.y] -lt $[high_w] \
  186.         -a $[w.y] -gt `expr $0 + $4`  \
  187.         -a \\( \\( $[w.x] -gt $1 -a $[w.x] -lt `expr $1 + $2` \\) \
  188.             -o \\( $1 -gt $[w.x] -a $1 -lt `expr $[w.x] + $[w.width]` \\) \
  189.             -o \\( $1 -le $[w.x] -a `expr $1 + $2` -ge `expr $[w.x] + $[w.width]` \\) \
  190.             -o \\( $[w.x] -lt $1 -a `expr $[w.x] + $[w.width]` -gt `expr $1 + $2` \\) \
  191.         \\) \
  192.         && echo SetEnv high_w $[w.y] \
  193.         || echo Nop"
  194. + I PipeRead "echo WindowId $3 AnimatedMove keep `expr $[high_w] - $4`p"
  195. #+ I WindowId $3 RefreshWindow

  196. AddToFunc PackWrapperDown I NoWindow PackWindowDown $[w.y] $[w.x] $[w.width] $[w.id] $[w.height]

  197. #####
  198. # Name:     PackWindowLeft
  199. # Bound:    Alt+Shift+Left When a window is active
  200. # Purpose:  See PackWindowUp.
  201. #
  202. # The Logic works likes this:
  203. #   1. Set Destination to the Left Edge
  204. #   2. For every window, Run these tests:
  205. #               + Is the Window's Right edge further _Right_ than furthest edge seen yet?
  206. #       And:    + Is it's Right edge Further _Left_ than Target Windows Left edge? (ie, in the way)
  207. #           Yes:
  208. #                   + Does the window start inside Target Window, and end below?
  209. #               Or  + Does it start above, and end inside?
  210. #               Or  + Is it the same vertical position/height/size, or start inside and end inside?
  211. #               Or  + Does it start above, and end below?
  212. #                   Yes:
  213. #                       This is the new Destination.
  214. #                   No:
  215. #                       Nop
  216. #           No:
  217. #               Nop
  218. #   3. Move to Destination.
  219. #
  220. #################
  221. DestroyFunc PackWindowLeft
  222. AddToFunc PackWindowLeft
  223. + I SetEnv left_w 0
  224. + I WindowId $3 Raise
  225. + I All (CurrentPage !Iconic AcceptsFocus \
  226.         !Shaded) PipeRead "test `expr $[w.x] + $[w.width]` -gt $[left_w] \
  227.         -a `expr $[w.x] + $[w.width]` -lt $1 \
  228.         -a \\( \\( $[w.y] -gt $0 -a $[w.y] -lt `expr $0 + $4` \\) \
  229.             -o \\( $[w.y] -lt $0 -a `expr $[w.y] + $[w.height]` -gt $0 \\) \
  230.             -o \\( $[w.y] -ge $0 -a `expr $[w.y] + $[w.height]` -le `expr $0 + $4` \\) \
  231.             -o \\( $[w.y] -lt $0 -a `expr $[w.y] + $[w.height]` -gt `expr $0 + $4` \\) \
  232.         \\) \
  233.         && echo SetEnv left_w `expr $[w.x] + $[w.width]`  \
  234.         || echo Nop"
  235. + I WindowId $3 AnimatedMove $[left_w]p keep
  236. #+ I WindowId $3 RefreshWindow

  237. AddToFunc PackWrapperLeft I NoWindow PackWindowLeft $[w.y] $[w.x] $[w.width] $[w.id] $[w.height]

  238. DestroyFunc PackWindowRight
  239. AddToFunc PackWindowRight
  240. + I SetEnv right_w $[vp.width]
  241. + I WindowId $3 Raise
  242. + I All (CurrentPage !Iconic AcceptsFocus \
  243.         !Shaded) PipeRead "test $[w.x] -lt $[right_w] \
  244.         -a $[w.x] -gt `expr $1 + $2` \
  245.         -a \\( \\( $[w.y] -gt $0 -a $[w.y] -lt `expr $0 + $4` \\) \
  246.             -o \\( $[w.y] -lt $0 -a `expr $[w.y] + $[w.height]` -gt $0 \\) \
  247.             -o \\( $[w.y] -ge $0 -a `expr $[w.y] + $[w.height]` -le `expr $0 + $4` \\) \
  248.             -o \\( $[w.y] -lt $0 -a `expr $[w.y] + $[w.height]` -gt `expr $0 + $4` \\) \
  249.         \\) \
  250.         && echo SetEnv right_w $[w.x] \
  251.         || echo Nop"
  252. + I PipeRead "echo WindowId $3 AnimatedMove `expr $[right_w] - $2`p keep"
  253. #+ I WindowId $3 RefreshWindow

  254. AddToFunc PackWrapperRight I NoWindow PackWindowRight $[w.y] $[w.x] $[w.width] $[w.id] $[w.height]

  255. #####
  256. # Name:     WheelToggleShade
  257. # Bound:    Mouse Buttons 4 and 5 (wheel up and down) on Titlebars
  258. # Purpose:  Shade or unshade the window when the Mouse wheel is rolled up or
  259. #           down on the Titlebar. Rolling the Wheel up calls the Function with
  260. #           argument `True` and rolling it down uses `False`, so rolling the wheel
  261. #           down when the window isnt shaded has no effect, which I like :)
  262. #
  263. #################
  264. DestroyFunc WheelToggleShade
  265. AddToFunc WheelToggleShade D WindowShade $0

  266. #####
  267. # Name:     DestroyOnHold
  268. # Bound:    Titlebar Button 2 (X)
  269. # Purpose:  When clicked, Raise the window Immediately.
  270. #           If the button is pressed and released, Close the Window. If it is pressed
  271. #           and held, Destroy it, and issue a Beep to confirm.
  272. #
  273. #           There is a 100ms delay before issuing `Close` so I have a chance to see the
  274. #           animation when the button changes from ActiveDown to ActiveUp :).
  275. #
  276. #################
  277. DestroyFunc DestroyOnHold
  278. AddToFunc DestroyOnHold I Raise
  279. + C Schedule 100 Close
  280. + H Destroy
  281. + H Beep

复制代码

论坛徽章:
2
羊年新春福章
日期:2015-02-04 10:37:51射手座
日期:2015-02-04 10:38:43
5 [报告]
发表于 2007-01-08 19:04 |只看该作者
接上:

  1. #####
  2. # Name:     Thumbnail
  3. # Purpose:  Iconify a window with a reduced screenshot of the application
  4. #           Window, looks really cool.
  5. #
  6. #           Uses FvwmEvent to remove the Icon when deiconified.
  7. #
  8. #           Thumbnailing example:
  9. #
  10. # http://www.fvwm.org/screenshots/desktops/Tavis_Ormandy-desk-1152x864/screenshot.jpg
  11. #
  12. # If you have a slow machine, try changing -scale to -sample, the quality of the Icons
  13. # won't be as good, but they are generated much faster. for a different effect, try using
  14. # -scale $(($[w.width]/5))
  15. #
  16. # You can also remove the command that uses composite to try to superimpose a MiniIcon
  17. # onto the icon, if you dont like this.
  18. ##################
  19. DestroyFunc Thumbnail
  20. AddToFunc Thumbnail
  21. + I Raise
  22. + I ThisWindow (!Iconic) SetEnv Icon-$[w.id] $[w.iconfile]
  23. + I ThisWindow (!Shaded, Iconifiable, !Iconic) PipeRead \
  24.     "xwd -silent -id $[w.id] | convert -scale 128 -frame 1x1 \
  25.     -mattecolor black -quality 0 xwd:- png:$[FVWM_USERDIR]/icon.tmp.$[w.id].png \
  26.     && echo WindowStyle IconOverride, Icon $[FVWM_USERDIR]/icon.tmp.$[w.id].png \
  27.     || echo Nop"
  28. + I TestRc (Match) Test (f $[w.miniiconfile], f $[FVWM_USERDIR]/icon.tmp.$[w.id].png) PipeRead \
  29.     "composite -geometry +2+4 $[w.miniiconfile] $[FVWM_USERDIR]/icon.tmp.$[w.id].png \
  30.     $[FVWM_USERDIR]/icon.tmp.$[w.id].png; echo Nop"
  31. + I Iconify

  32. DestroyFunc DeThumbnail
  33. AddToFunc DeThumbnail
  34. + I PipeRead "echo Test \\(i \\$\\[Icon-$[w.id]\\]\\) WindowStyle Icon \\$\\[Icon-$[w.id]\\]"
  35. + I TestRc (NoMatch) WindowStyle NoIconOverride, Icon
  36. + I Exec rm -f $[FVWM_USERDIR]/icon.tmp.$[w.id].png
  37. + I All (Iconic, CurrentPage) PlaceAgain icon
  38. + I UnsetEnv Icon-$[w.id]

  39. # Fvwm uses this function when selecting windows from the WindwList command
  40. # you can make this function do any thing you like, it is executed in the context
  41. # of the selected window.
  42. DestroyFunc WindowListFunc
  43. AddToFunc WindowListFunc
  44. + I WindowShade False
  45. + I Iconify off
  46. + I Raise
  47. + I FlipFocus

  48. # Set the delays on Showing and Hiding here for the AutoHide functions.
  49. DestroyFunc FuncAutoEnter
  50. AddToFunc FuncAutoEnter I Autohide HiddenConsole 500 500 N

  51. #####
  52. # Example: http://dev.gentoo.org/~taviso/screenshots/may04a-fvwm.png
  53. #
  54. # Remember, fvwm-root only works with png and xpm, if you use lots of jpg, try changing this
  55. # to Esetroot, or similar.
  56. #
  57. # If you have xv installed, clicking the title will start a slide show.
  58. ###############
  59. DestroyFunc WallpaperBrowser
  60. AddToFunc WallpaperBrowser I PipeRead 'test ! -d "$0/.thumbs" && mkdir "$0/.thumbs"; \
  61.     for i in "$0/"*; do \
  62.         test -f "$0/.thumbs/${i##*/}" \
  63.             -a "${i}" -ot "$0/.thumbs/${i##*/}" || { \
  64.                 convert -quality 0 -scale 42 "${i}" "png:$0/.thumbs/${i##*/}" 2>/dev/null \
  65.                     || continue; \
  66.             }; \
  67.     done; \
  68.     fvwm-menu-directory --icon-title folder_view.png --icon-file __PIXMAP__ \
  69.     --icon-dir folder_paper_closed.png --dir "$0" --exec-file "^fvwm-root --dither -r" \
  70.     --exec-t="^xv -wait 2 *" | sed -e "s#FuncFvwmMenuDirectory#WallpaperBrowser#g" \
  71.     -e "s#__PIXMAP__\\(.*\\)\\\"\\(.*/\\)\\(.*\\)\\\"#\\2.thumbs/\\3\\1\\2\\3#g"'

  72. # http://forums.gentoo.org/viewtopic.php?p=1002353#1002353
  73. DestroyFunc WheelScroll
  74. AddToFunc WheelScroll I PipeRead 'case $0 in \
  75.       up) test $[page.ny] -eq $$(($[desk.pagesy]-1)) -a $[page.nx] -lt $$(($[desk.pagesx]-1)) \
  76.          && echo GotoPage +1p 0 \
  77.          || echo GotoPage 0p +1p;; \
  78.       down) test $[page.ny] -eq 0 -a $[page.nx] -gt 0 \
  79.          && echo GotoPage -1p $$(($[desk.pagesy]-1)) \
  80.          || echo GotoPage 0p -1p;; \
  81.    esac'

  82. ####
  83. # These functions modified from the functions provided in the fvwm FAQ.
  84. # http://www.fvwm.org/documentation/faq/#7.17
  85. #################
  86. AddToFunc Autohide
  87. + I ThisWindow ($0) Deschedule $[w.id]
  88. + I TestRc (!Match) Deschedule -$[w.id]
  89. + I ThisWindow ($0) ThisWindow (shaded) AutohideShow $1 $3
  90. + I TestRc (!Match) All ($0, !shaded) AutohideHide $2 $3

  91. AddToFunc AutohideShow
  92. + I Schedule $0 -$[w.id] WindowShade $1 off
  93. + I Schedule $0 -$[w.id] Raise
  94. + I Schedule $0 -$[w.id] Deschedule $[w.id]
  95. + I Schedule $0 -$[w.id] Deschedule -$[w.id]

  96. AddToFunc AutohideHide
  97. + I Schedule $0 $[w.id] WindowShade $1 on
  98. + I Schedule $0 $[w.id] Deschedule $[w.id]
  99. + I Schedule $0 $[w.id] Deschedule -$[w.id]

  100. #####
  101. # Miscellaneous Functions
  102. #################
  103. AddToFunc Move-or-Raise I Raise
  104. + M Move
  105. + D WindowShade Toggle

  106. AddToFunc Move-or-Iconify I Raise
  107. + M Move
  108. + D Iconify

  109. AddToFunc Resize-or-Raise I Raise
  110. + M Resize
  111. + D Lower

  112. #####
  113. # Telling a window that is already moving to AnimatedMove is not a good idea!
  114. # This function makes sure the user doesnt accidentally catch a window twice, by
  115. # setting one of the windows states while it is being moved.
  116. #
  117. # Every window has around 30 user definable states which you can test in
  118. # functions, you can use them for anything you like.
  119. ##
  120. DestroyFunc LockingSlide
  121. AddToFunc LockingSlide
  122. + I Test (!State 2) Break
  123. + I State 2 False
  124. + I AnimatedMove $0 $1
  125. + I State 2 True

  126. #####
  127. # Use This to execute commands on new windows as they appear.
  128. ########
  129. DestroyFunc NewWindowFunc
  130. AddToFunc NewWindowFunc
  131. + I ThisWindow (xmessage) Jiggle 2
  132. #+ I ThisWindow (MyTerm) Maximize
  133. #+ I ThisWindow (AnnoyingWindow) Close

  134. # FIXME: Make this more useful.
  135. # XXX: This doesnt do much yet, you can play with it if you like.
  136. # Example: http://dev.gentoo.org/~taviso/fvwm_expose.png
  137. DestroyFunc FvwmExpose
  138. AddToFunc FvwmExpose
  139. + I AddToMenu FvwmExposeMenu ".: e x p o s e :." Title
  140. + I + DynamicPopDownAction DestroyMenu FvwmExposeMenu
  141. + I All (!Iconic !Shaded CurrentPage AcceptsFocus)\
  142.     PipeRead "echo Raise; \
  143.         xwd -silent -id $[w.id] | convert -scale 128 -quality 0 xwd:- \
  144.         png:$[FVWM_USERDIR]/icon.exp.$[w.id].png \
  145.     && echo AddToMenu FvwmExposeMenu \
  146.     %$[FVWM_USERDIR]/icon.exp.$[w.id].png%\\\'\"$[w.name]\"\\\' WindowID $[w.id] WarpToWindow 50 50 \
  147.         && echo AddToMenu FvwmExposeMenu \\\"\\\" Nop \
  148.     || Nop"
  149. + I Popup FvwmExposeMenu
  150. + I Exec exec rm -f $[FVWM_USERDIR]/icon.exp.*

  151. #####
  152. # FvwmPager is probably the most advanced desktop pager ever written,
  153. # of course its highly configurable, has many advanced features, and can
  154. # be made to look very eye candy.
  155. #
  156. # You can drag the Windows around inside the Pager, pull windows from
  157. # other desktops out onto your current page, or drag the viewport into
  158. # non-standard positions.
  159. #
  160. # This pager gets swallowed into my FvwmButtons Bar. The pages are seperated
  161. # by solid white lines, the pager itself is tinted transparent and the colours
  162. # lighten as focus and the viewport changes.
  163. #
  164. # You can write titles, or draw icons into the Windows, but i prefer to use
  165. # the Balloons (tooltips) to find the Names.
  166. #
  167. #   +-----+-----+-----+
  168. #   |     |     |     |
  169. #   +-----+-----+-----+
  170. #   |     |     |     |
  171. #   +-----+-----+-----+
  172. #   |     |     |     |
  173. #   +-----+-----+-----+
  174. #
  175. #################
  176. Colorset 2 fg white, bg black, RootTransparent buffer, Tint #b5b2ff 80
  177. Colorset 3 fg white, bg black, RootTransparent buffer, Tint #eeefcf 70
  178. Colorset 4 fg #63656e, bg black, RootTransparent buffer, Tint #b5b2ff 60
  179. Colorset 5 fg black, bg #e7e7e7, Plain
  180. Colorset 6 fg white, bg black, RootTransparent buffer, Tint #e4e5c7 90
  181. DestroyModuleConfig FvwmPager: *
  182. *FvwmPager: Colorset * 3
  183. *FvwmPager: HilightColorset * 6
  184. *FvwmPager: WindowColorsets 4 2
  185. *FvwmPager: BalloonColorset * 5
  186. # Comment out or set this to a font name for desktop names/numbers above desks (you can name desktops
  187. # anything you like to help organise your workspaces).
  188. *FvwmPager: Font none
  189. # Comment out or set this option for window names in pager windows
  190. # also see WindowLabelFormat.
  191. *FvwmPager: SmallFont none
  192. *FvwmPager: Balloons All
  193. *FvwmPager: BalloonFont "xft:Bitstream Vera Sans:style=Roman:size=7:antialias=True"
  194. *FvwmPager: BalloonYOffset +2
  195. *FvwmPager: BalloonBorderWidth 1
  196. *FvwmPager: UseSkipList
  197. *FvwmPager: MoveThreshold 0
  198. *FvwmPager: SolidSeparators
  199. *FvwmPager: WindowBorderWidth 1
  200. # Try uncommenting this for MiniIcon's in pager windows
  201. #*FvwmPager: MiniIcons

复制代码

论坛徽章:
2
羊年新春福章
日期:2015-02-04 10:37:51射手座
日期:2015-02-04 10:38:43
6 [报告]
发表于 2007-01-08 19:05 |只看该作者
接上:


  1. #####
  2. # FvwmButtons is an incredible piece of software.
  3. #
  4. # It can create freeform panels of any size, shape (including Non-Rectangular windows),
  5. # Colour and function. It can swallow other applications, even applications not designed
  6. # for docking, have "panels" that slide out consisting of other panels, has a "startup-notification"
  7. # like feature, hundreds of possible bindings, uses the powerful fvwm Colorsets feature, and
  8. # can even change dynamically and respond to window manager events.
  9. #
  10. # The widgets can be transparent, use Xft fonts, and using fvwm's font definitions can render drop shadows
  11. # at any direction, offset, size and colour. Buttons can all use different Colorsets, and can have different
  12. # reliefs, shapes, anything!
  13. #
  14. # FvwmButtons is even tolerant to errors in configuration, and can workaround bad or impossible
  15. # definitions!
  16. #
  17. # As it's an fvwm module, it has 100% integration with the window manager and can use
  18. # internal fvwm commands, functions, etc.
  19. #
  20. # as you can tell, i am a big FvwmButtons fan :)
  21. #
  22. # I've written a quick introduction into making panels with FvwmButtons, you can read it here
  23. # http://forums.gentoo.org/viewtopic.php?t=162177
  24. #
  25. # To use Startup-notification, make an action like this:
  26. #   Action(Mouse 1) `Exec "rxvt" exec rxvt`
  27. # the button will remain pressed until a window called "rxvt" appears.
  28. #
  29. # The configuration below start with an alias, 'FvwmShelf', you can have as mny button bars
  30. # as you like, if you give each one a seperate alias they can all have a different configuration.
  31. #
  32. # FvwmApplet-DigitalClock is a modified version of the FvwmScript script that comes with
  33. # fvwm-themes, I just changed it to print the date and time.
  34. #
  35. # Screenshot: http://dev.gentoo.org/~taviso/screenshots/april-04-clean.png
  36. #########
  37. Colorset 10 fg black, bg #c6c3c6, RootTransparent buffer, Tint #efebef 65
  38. Colorset 18 fg black, bg #c6c3c6, RootTransparent buffer, Tint #c3c6c3 65
  39. Colorset 17 fg black, bg #c6cbd6
  40. DestroyModuleConfig FvwmShelf: *
  41. *FvwmShelf: Columns 23
  42. *FvwmShelf: Font "Shadow=1 1 SE:xft:Bitstream Vera Sans Mono:style=Roman:size=8"
  43. *FvwmShelf: Colorset 10
  44. *FvwmShelf: Frame 1
  45. *FvwmShelf: Padding 2 2
  46. *FvwmShelf: Rows 72
  47. *FvwmShelf: (1x72, Action(Mouse 1) Next (CirculateHit, FvwmShelf) PipeRead 'echo LockingSlide $$(test $$(($[w.x]+$[w.width])) -le $[vp.width] && echo w$$(($[w.width]-$width))p || echo w-$$(($[w.width]-$width))p) keep; echo Next \\(CirculateHit, FvwmBar\\) Maximize ewmhiwa growright 0')
  48. *FvwmShelf: (22x2, Title(Side) " Terminal", Left, Icon computer_x11.png, Action(Mouse 1) `Exec "rxvt" exec rxvt`)
  49. *FvwmShelf: (22x2, Title(Side) " File Manager", Left, Icon floppy_disk.png, Action(Mouse 1) `Exec "ROX-Filer" exec rox`)
  50. *FvwmShelf: (22x2, Title(Side) " Editor", Left, Icon gvim.png, Action(Mouse 1) `Exec "gvim" exec gvim -geom 139x56`)
  51. *FvwmShelf: (22x2, Title(Side) " Web Browser", Left, Icon opera.png, Action(Mouse 1) `Exec "opera" exec opera -newwindow -bigicon`)
  52. *FvwmShelf: (22x2, Title(Side) " Email Client", Left, Icon mail.png, Action(Mouse 1) `Exec "Mulberry" exec mulberry`)
  53. *FvwmShelf: (22x2, Title(Side) " Music Player", Left, Icon audio.png, Action(Mouse 1) `Exec "beep-media-player" exec beep-media-player`)
  54. *FvwmShelf: (22x2, Title(Side) " News Reader", Left, Icon news_newspaper.png, Action(Mouse 1) `Exec "pan" exec pan`)
  55. *FvwmShelf: (22x2, Title(Side) " Gimp", Left, Icon graphics_paint_edit.png, Action(Mouse 1) `Exec "gimp-2.0" exec gimp-2.0`)
  56. *FvwmShelf: (22x2, Title(Side) " Abiword", Left, Icon document_letter_word-processor.png, Action(Mouse 1) `Exec "abiword-2.0" exec abiword-2.0`)
  57. *FvwmShelf: (22x1, Colorset 18, Frame 0)
  58. *FvwmShelf: (22x2, Title(Side) " Calculator", Left, Icon calculator.png, Action(Mouse 1) `Exec "XCalc" exec xcalc -stipple`)
  59. *FvwmShelf: (22x2, Title(Side) " Manual Page", Left, Icon book_help_paper.png, Action(Mouse 1) `Exec "xman" exec xman`)
  60. *FvwmShelf: (22x2, Title(Side) " Magnifier", Left, Icon telescope.png, Action(Mouse 1) `Exec "xmag" exec xmag`)
  61. *FvwmShelf: (22x2, Title(Side) " Run...", Left, Icon gears.png, Action(Mouse 1) `Exec "gmrun" exec gmrun`)
  62. *FvwmShelf: (22x1, Colorset 18, Frame 0)
  63. *FvwmShelf: (22x2, Title(Side) " Audio Mixer", Left, Icon graph_mixer.png, Action(Mouse 1) `Exec "ossxmix" exec /opt/oss/bin/ossxmix`)
  64. *FvwmShelf: (22x2, Title(Side) " Lock Screen", Left, Icon key2.png, Action(Mouse 1) `Exec exec xscreensaver-command --lock`)
  65. *FvwmShelf: (22x2, Title(Side) " Show Desktop", Left, Icon bulletin-board.png, Action(Mouse 1) `All (AcceptsFocus, CurrentPage, !Iconic, !Shaded) Thumbnail`)
  66. *FvwmShelf: (22x2, Title(Side) " Sticky Note", Left, Icon paper_pencil.png, Action(Mouse 1) `Exec "xpad" exec xpad`)
  67. *FvwmShelf: (22x2, Title(Side) " XKill", Left, Icon bomb.png, Action(Mouse 1) `Exec exec xkill`)
  68. *FvwmShelf: (22x1, Colorset 18, Frame 0)
  69. *FvwmShelf: (22x2, Title(Side) " Fvwm Console", Left, Icon hardware_monitor.png, Action(Mouse 1) `Module FvwmConsole -terminal rxvt`)
  70. *FvwmShelf: (22x2, Title(Side) " Restart", Left, Icon gears_panel.png, Action(Mouse 1) `Restart`)
  71. *FvwmShelf: (22x2, Title(Side) " Quit Fvwm", Left, Icon plug.png, Action(Mouse 1) `Module FvwmScript FvwmScript-Quit`)
  72. *FvwmShelf: (22x1, Colorset 18, Frame 0)
  73. *FvwmShelf: (5x2, Colorset 18, Frame 0, Padding 2 0, Left, Icon brain_ai_memory.png, Action(Mouse 1) Exec exec xload)
  74. *FvwmShelf: (17x2, Colorset 18, Frame 0, Padding 2 2, Left, Swallow(UseOld) "cpumon" `Exec exec xosview -title cpumon +cpu`)
  75. *FvwmShelf: (5x2, Colorset 18, Frame 0, Padding 2 0, Left, Icon network.png, Action(Mouse 1) `Exec exec xnetload -if eth0`)
  76. *FvwmShelf: (17x2, Colorset 18, Frame 0, Padding 2 2, Left, Swallow(UseOld) "netmon" `Exec exec xosview -title netmon +net`)
  77. *FvwmShelf: (5x2, Frame 0, Padding 2 0, Colorset 18, Icon hardware_card.png, Left)
  78. *FvwmShelf: (17x2, Colorset 18, Frame 0, Padding 2 0, Left, Swallow(UseOld) "memmon" `Exec exec xosview -title memmon +swap +mem`)
  79. *FvwmShelf: (5x2, Colorset 18, Frame 0, Padding 2 0, Icon floppy_disk.png, Left)
  80. *FvwmShelf: (17x2, Colorset 18, Frame 0, Padding 2 2, Left, Swallow(UseOld) "diskmon" `Exec exec xosview -title diskmon +disk`)
  81. *FvwmShelf: (22x2, Colorset 18, Frame 0)
  82. *FvwmShelf: (22x8, Swallow "FvwmPager" "FvwmPager *")
  83. *FvwmShelf: (22x3, Colorset 18, Frame 0)
  84. *FvwmShelf: (22x2, Colorset 17, Swallow(Kill) peksystray `Exec exec peksystray --icon-size 24 --border 1`)
  85. *FvwmShelf: (5x3, Colorset 18, Frame 0, Icon calendar_schedule.png, Left, Action(mouse 1) `Exec exec xcalendar`)
  86. *FvwmShelf: (17x3, Colorset 18, Frame 0, Swallow FvwmApplet-DigitalClock `FvwmScript FvwmApplet-DigitalClock 18`)

  87. # An FvwmButtons-based Taskbar, it will swallow an FvwmIconMan.
  88. # Note the Menu options to make it appear at a nice and consistant
  89. # offset to the button, cool huh? :)
  90. DestroyModuleConfig FvwmBar: *
  91. *FvwmBar: Font "Shadow=1 1 SE:xft:Bitstream Vera Sans Mono:style=Roman:size=8"
  92. *FvwmBar: Colorset 10
  93. *FvwmBar: Frame 1
  94. *FvwmBar: Padding 2 2
  95. *FvwmBar: Rows 23
  96. *FvwmBar: Columns 71
  97. *FvwmBar: (71x3, Padding 0 0, Action(Mouse 1) `Next (CirculateHit, FvwmBar) PipeRead 'echo LockingSlide keep $$(test $$(($[w.y]+$[w.height])) -le $[vp.height] && echo w$$(($[w.height]-$height))p || echo w-$$(($[w.height]-$height))p)'`)
  98. *FvwmBar: (6x20, Title(Side) " Launch", Left, Icon gears.png, Action(Mouse 1) `Menu MenuFvwmRoot Rectangle +$left+$top 0 -100m`)
  99. *FvwmBar: (63x20, Swallow "FvwmIconMan" `FvwmIconMan`)
  100. *FvwmBar: (2x20, Colorset 18, Frame 0)

  101. # A little control panel for switching desks.
  102. DestroyModuleConfig DeskControl: *
  103. *DeskControl: Columns 1
  104. *DeskControl: Rows 3
  105. *DeskControl: Colorset 17
  106. *DeskControl: Frame 1
  107. *DeskControl: Padding 1 1
  108. *DeskControl: Font "xft:snap;-artwiz-snap-*-r-*-*-*-*-*-*-*-*-iso8859-1"
  109. *DeskControl: (1x1, Title "<", Action(Mouse 1) GotoDesk -1)
  110. *DeskControl: (1x1, Title ">", Action(Mouse 1) GotoDesk 1)
  111. *DeskControl: (1x1, Id desk, Title "$[desk.n]", Action(Mouse 1) `Next (CirculateHit, DeskControl) PipeRead 'echo LockingSlide keep $$(test $[w.y] -lt 0 && echo 0 || echo w-$$(($[w.height]-$height))p)'`)

  112. #####
  113. # FvwmIconMan is a highly configurable module for managing running tasks.
  114. # This one is configured to look like a TaskBar.
  115. #
  116. # If you want to change the information written on the Buttons you can
  117. # set the Format option, look up the available options in the FvwmIconMan man page.
  118. #
  119. # You can configure Actions for the buttons, sendcommand will execute a command in
  120. # the context of the window. Notice the Menu options so that the Popup menu appears
  121. # aligned at the left of the button.
  122. #######
  123. Colorset 15 fg black, bg #c6c3c6, sh #dedbde, hi #dedbde, RootTransparent buffer, Tint #efebef 65
  124. Colorset 16 fg black, bg #c6c3c6, RootTransparent buffer, Tint #e4e5c7 90
  125. DestroyModuleConfig FvwmIconMan: *
  126. *FvwmIconMan: ManagerGeometry 1x1
  127. *FvwmIconMan: ButtonGeometry 24x23
  128. *FvwmIconMan: FocusAndSelectButton down
  129. *FvwmIconMan: FocusButton down
  130. *FvwmIconMan: IconButton down
  131. *FvwmIconMan: PlainButton down
  132. *FvwmIconMan: SelectButton down
  133. # disable default binding of "Iconify"
  134. *FvwmIconMan: Action Mouse 0 N sendcommand Nop
  135. # redefine buttons 1, 2 and 3.
  136. *FvwmIconMan: Action Mouse 2 N sendcommand Thumbnail
  137. *FvwmIconMan: Action Mouse 1 N sendcommand "Iconify off", sendcommand RaiseLower, sendcommand FlipFocus
  138. *FvwmIconMan: Action Mouse 3 N sendcommand "Popup MenuFvwmWindowOps Rectangle +$left+$top 0 -100m"
  139. #*FvwmIconMan: Action Mouse 4 N sendcommand "LockingSlide keep w-3p"
  140. #*FvwmIconMan: Action Mouse 5 N sendcommand "LockingSlide keep w3p"
  141. *FvwmIconMan: Colorset 15
  142. *FvwmIconMan: ReliefThickness 1
  143. *FvwmIconMan: Font "xft:Bitstream Vera Sans Mono:style=Roman:size=8"
  144. *FvwmIconMan: FocusAndSelectColorset 16
  145. *FvwmIconMan: FocusColorset 16
  146. *FvwmIconMan: Resolution Page
  147. *FvwmIconMan: DrawIcons Always
  148. *FvwmIconMan: FollowFocus True
  149. *FvwmIconMan: UseWinList True
  150. *FvwmIconMan: ShowOnlyIcons False
  151. #*FvwmIconMan: Format "%c: %i"
  152. *FvwmIconMan: Title ""
  153. *FvwmIconMan: Sort id

  154. Read ConfigFvwmTabs quiet
复制代码

论坛徽章:
2
羊年新春福章
日期:2015-02-04 10:37:51射手座
日期:2015-02-04 10:38:43
7 [报告]
发表于 2007-01-08 19:11 |只看该作者
终于发完了,这个是在GETOO平台上配置的文件!

论坛徽章:
0
8 [报告]
发表于 2007-01-08 20:11 |只看该作者
原帖由 zonyonq 于 2007-1-8 19:11 发表
终于发完了,这个是在GETOO平台上配置的文件!

  和平台无关,都是通用的。

论坛徽章:
2
羊年新春福章
日期:2015-02-04 10:37:51射手座
日期:2015-02-04 10:38:43
9 [报告]
发表于 2007-01-08 21:40 |只看该作者
呵呵,谢谢提醒!

论坛徽章:
0
10 [报告]
发表于 2007-01-09 11:13 |只看该作者
  1. -artwiz-snap-*-r-*-*-*-*-*-*-*-*-iso8859-1
复制代码


这种字体能正确显示中文吗?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP