Advertisement
Dj_Dexter

.fvwm2rc

Dec 16th, 2011
512
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ### XXX: Patch
  2. #Colorset 11 fg white, bg purple
  3. #Style rxvt HilightBorderColorsetNorth 11
  4.  
  5. # vim: set foldmethod=marker
  6. ########################################
  7. # Fvwm Configuration #
  8. # Author: Thomas Adam #
  9. # Email: thomas@edulinux.homeunix.org #
  10. # Reedition: Dj_Dexter #
  11. ########################################
  12.  
  13. # Some of the functions in here I have stol^H^H^H^Hborrowed from other
  14. # people's configuration files. Where credit is due, I have attributed
  15. # them to the relevant author.
  16. #
  17. # Saves me having to reinvent the wheel.
  18.  
  19. # Basic Settings {{{1
  20. # Edge settings {{{2
  21.  
  22. # EdgeScroll defines how much of the viewport is scrolled when the mouse
  23. # hits the edge of the screen. Tyically this might land the viewport
  24. # in-between pages, so I tend to disable it. Besides which, I never did
  25. # like flipping pages with the mouse.
  26. EdgeScroll 0 0
  27.  
  28. # EdgeResistance defines the resistance value from the edge of the
  29. # screen when moving windows between pages. It's useful so that you don't
  30. # move windows from page to page when you don't mean to.
  31.  
  32. EdgeResistance 500
  33. Style * EdgeMoveDelay scrolling
  34.  
  35. Style * EdgeMoveResistance 100 100
  36.  
  37. # The width and height of the pan window drawn when moving window
  38. # between pages.
  39. EdgeThickness 1
  40.  
  41. # When the mouse pointer hits the bottom edge of the screen, iconify the
  42. # FvwmButtons instance called 'FvwmButtonsBottom'.
  43. #EdgeCommand Bottom All (FvwmButtons-Compact) Iconify
  44. # }}}2
  45.  
  46. # Most of these options are sundry to FVWM, but provide useful features
  47. # for other modules, etc.
  48.  
  49. # Ignore modifiers for buttons which applications use: Numlock, CapsLock,
  50. # and ScrollLock
  51. IgnoreModifiers L25
  52. Style "*" Iconsize 36 36
  53.  
  54. # Useful for AnimatedMove.
  55. SetAnimation 10 -.01 0 .01 .03 .08 .18 .3 .45 .6 .75 .85 .90 .94 .97 .99 1.0
  56.  
  57. # Where FVWM will look for its icons and anything else we might wish
  58. # for.
  59. ImagePath +:/usr/share/icons/fvwm:/usr/share/pixmaps:+
  60. ImagePath $[HOME]/.fvwm/icons:+:$[FVWM_USERDIR]/pixmaps
  61.  
  62. # This is important. The "ModulePath" command under *normal*
  63. # circumstances is deprecated. However, I use it here because I have
  64. # written my own modules. But note the syntax. The "+" sign is
  65. # important, as it's prepending to the ModulePath value defined already,
  66. # internally, to fvwm. This same technique ought to really apply to
  67. # ImagePath (see above).
  68. # Commented out by fvwm-convert-2.6: ModulePath +:$[HOME]/projects/ruby/FvwmRuby
  69.  
  70. # What font to use if nothing else can be used, or we don't explicitly set
  71. # one.
  72. DefaultFont -adobe-helvetica-bold-r-*-*-12-*-*-*-*-*-*-*
  73.  
  74. # The font that's used for icon titles.
  75. IconFont -adobe-helvetica-bold-r-*-*-12-*-*-*-*-*-*-*
  76.  
  77. # Quite a thick title box for the icons (not at all like twm's style)
  78. IconTitleRelief -50
  79.  
  80. # Relative to the font size of a window, just how high should the title
  81. # bar be? (in pixels)
  82. TitleStyle Height 9
  83.  
  84. # Mimick general appearences and functionality of windows. Fvwm puts
  85. # the geometry window in the top-left, for instance. This setting also
  86. # determines the look and feel of windowing hints and menus. I used to
  87. # use "MWM" -- and I quite often change between the two, depending on my
  88. # mood. I quite like the 3Dness of FVWM, that MWM doesn't inherently
  89. # have.
  90. Emulate Fvwm
  91.  
  92. # DesktopName is what used to be the "Label" option in the FvwmPager
  93. # module. It allows you to define (and hence set) the name of any Desks
  94. # you might have. The more names you declare here, the more desks that
  95. # are created -- but see 'DesktopSize'
  96. DesktopName 0 Main
  97. DesktopName 1 Games
  98. DesktopName 2 Devel
  99. DesktopName 3 Misc
  100.  
  101. # As with the 'Emulate' command, this ensures I always see the geometry
  102. # window when resizing/moving windows around the screen.
  103. HideGeometryWindow never
  104.  
  105. # EWMH are god's gift to inter-window management and client operability.
  106. # EWMHBaseStructs allows me to define, or mark-off, those areas of the
  107. # screen that I don't want new windows to be placed over, or to have
  108. # cover when a window is maximised. In this case, the command works in
  109. # the following manner:
  110. #
  111. # EWMHBaseStruts left right top bottom
  112. #
  113. # I'm defining the left, right and top regions to be unaffected, but the
  114. # bottom 40 pixels of the screen to remain uncoverable (since this is the
  115. # height of the FvwmButtonsBottom FvwmButtons instance I have.)
  116. #EWMHBaseStruts 0 0 0 40
  117.  
  118. # This defines the time between a button press and a button release (in
  119. # ms). At least this value gives me enough time to be slow about a
  120. # decision.
  121. ClickTime 310
  122.  
  123. # Number of pages per desk. In this case, mine looks like this:
  124. #
  125. #
  126. # +-----+-----+-----+-----+-----+-----+
  127. # | | | | | | |
  128. # +-----+-----+-----+-----+-----+-----+
  129. # | | | | | | |
  130. # +-----+-----+-----+-----+-----+-----+
  131. # | | | | | | |
  132. # +-----+-----+-----+-----+-----+-----+
  133. #
  134. # Possibly overkill, but you can never have too many. I used to have it
  135. # split into two Desks of 3x3, but decided to merge them into one desk
  136. # with many pages, mostly due to the way FVWM thinks about pages and desk
  137. # boundaries when using conditional commands.
  138. ##DeskTopSize 6x3
  139. DesktopSize 3x3
  140.  
  141. # The root cursor (the one in the root window) defaults to a cross. I
  142. # don't like this -- I prefer an arrow pointing to the left.
  143. CursorStyle root top_left_arrow
  144.  
  145. # When moving large applications, ensure they don't flicker too much.
  146. OpaqueMoveSize -1
  147.  
  148. # As with the above, when moving windows, make them stick, if:
  149. # window -> window, or icon -> icon takes place.
  150. Style * SnapAttraction 2 SameType
  151.  
  152. # How icons react to one another.
  153. Style * SnapGrid 1 1
  154.  
  155. # How many pixels before a move window is indicated?
  156. MoveThreshold 3
  157.  
  158. # Tells Fvwm to ignore the XEvent 'configureNotify' to stop windows
  159. # flickering.
  160. BugOpts FlickeringMoveWorkAround True
  161. # }}}1
  162. # Colorsets {{{1
  163.  
  164. # Set the main colorset
  165. ####Colorset 0 fg black, bg rgb:60/a0/c0
  166.  
  167. Colorset 0 fg black, bg snow3
  168. Colorset 1 fg white, bg lightseagreen
  169. Colorset 2 fg white, bg rgb:00/50/00, Plain, NoShape
  170. Colorset 3 fg white, bg darkgreen
  171. Colorset 4 fg rgb:f0/f0/f4, bg average, NoShape
  172. Colorset 5 fg rgb:f0/f0/f4, bg rgb:0b/2e/46, Plain, NoShape
  173. Colorset 6 fg rgb:f0/f0/f4, bg average, Plain, NoShape
  174.  
  175.  
  176. # Other colorsets are defined in ~/.fvwm/colorsets, and are used for the
  177. # dynamic menu.
  178.  
  179. ColorMapFocus FollowsMouse
  180. # }}}1
  181. # Internal Variables {{{1
  182.  
  183. # Variables for FVWM's use. These are variables placed in the
  184. # environment by FVWM. Hence they can the be accessed by any command or
  185. # Module spawned by FVWM.
  186. #
  187. # See also: http://edulinux.homeunix.org/fvwm/fvwmchanfaq.html#16
  188. SetEnv RCount 0
  189. SetEnv RXVT "rxvt +sb -bg white -fg black"
  190. SetEnv RXVTR "rxvt +sb -bg black -fg white"
  191. SetEnv DefCS "Colorset 1 fg white, bg #c06077"
  192. # }}}1
  193. # Style definitions {{{1
  194. # General Window Styles {{{2
  195. # Default styles common to all windows created.
  196.  
  197. # IconBox, Iconfill, and IconGrid are all related to one another, and
  198. # define where and how the icons are to be placed on the screen.
  199. #
  200. # See: http://edulinux.homeunix.org/fvwm/fvwmchanfaq.html#21
  201. #
  202. # ... for more information.
  203. ##Style * IconBox 1145x54+0+762, IconFill b l, IconGrid 3 3
  204. #Style * IconBox 1144x87+0+777, IconFill b l, IconGrid 3 3
  205. Style "*" IconBox -1250 -730 -134 -5
  206. # Some applications (such as Netscape) are stubborn about letting go of
  207. # their own icon. This overrides that for all windows.
  208. Style * IconOverride
  209.  
  210. # BoderWidth and HandleWidth are part of the decoration overall of the
  211. # window. A pixel width of four seems enough. Note that the original
  212. # AnotherLevel package from RedHat version 4 onwards used a pixel width of
  213. # eight.
  214. Style * BorderWidth 4, HandleWidth 4
  215.  
  216. # 'FvwmBorder' draws the border with a 3D effect that has a slightly (by one
  217. # pixel) border bevel than 'MwmBorder'. I actually prefer this style
  218. # though.
  219. #
  220. # 'FirmBorder' means that clicking on the border does not make it appear
  221. # pressed in, which is what the style 'DepressableBorder' does.
  222. Style * FvwmBorder, FirmBorder
  223.  
  224. # Where would I be without SloppyFocus? This means I can focus windows
  225. # just by moving the mouse over them, and without having to click on them
  226. # (which would otherwise be 'ClickToFocus'). Note that there is a very
  227. # similar style known as 'FocusFollowsMouse', the difference being that
  228. # SloppyFocus retains focus on a window if the pointer moves into the root
  229. # window, which FocusFollowsMouse does not allow for.
  230. Style * SloppyFocus
  231.  
  232. # All windows use Colorset 0 when not active (i.e. does not have focus).
  233. Style * Colorset 0
  234.  
  235. # All windows use Colorset 1 when active (i.e. has focus).
  236. Style * HilightColorset 1
  237.  
  238. # All window use the same decor.
  239. Style * UseDecor fDecor
  240.  
  241. # This line is not really needed, but shows which buttons (as defined in
  242. # the Decor) I wish to have displayed in the titlebar of the windows.
  243. Style * Button 1, Button 2, Button 4, Button 6
  244.  
  245. # MWMButtons makes the maximise button looked depressed when a window is
  246. # maximized.
  247. Style * MWMButtons
  248.  
  249. # MWMDecor and MWMFunctions sets various hints on the window that some
  250. # clients use for interactivity with the window manager.
  251. Style * MWMDecor, MWMFunctions
  252.  
  253. # Prohibition of other MWMFunctions.
  254. Style * HintOverride
  255.  
  256. # Placement policy. MinOverlapPlacement is great, and allows one to
  257. # fine-tune where applications ultimately end up by way of penalties to
  258. # set limits as to how close or how much the clients overlap. The default
  259. # behaviour of it suits me well enough though.
  260. Style * MinOverLapPlacement
  261.  
  262. # Certain applications such as XTerm, rxvt, XV, etc., all have columnar
  263. # resize mechanisms, since they operate on columnar levels of input. This
  264. # can sometimes leave gaps when maximising these applications around the
  265. # edge of the screen, or when tiling with other windows, so we'll turn
  266. # them off. This can sometimes though lead to odd results -- such as
  267. # Ncurses applications displaying incorrectly, if the terminal in which it
  268. # runs is resized passed its normal columnar limit.
  269. Style * ResizeHintOverride
  270.  
  271. # PPosition is a real PITA. See:
  272. # http://edulinux.homeunix.org/~n6tadam/fvwm/tips/misc/xlib_wm_positioning.txt
  273. # http://edulinux.homeunix.org/~n6tadam/fvwm/tips/misc/mozilla_position.txt
  274. Style * !UsePPosition
  275.  
  276. # Don't animate when shading windows -- I don't have the CPU cycles for
  277. # it.
  278. Style * WindowShadeSteps 0, WindowShadeScrolls
  279.  
  280. # Decorate transient windows, and don't draw the rubberband when resizing
  281. # windows.
  282. Style * DecorateTransient, ResizeOpaque
  283. Style * Font -adobe-helvetica-bold-r-*-*-12-*-*-*-*-*-*-*
  284. # }}}2
  285. # Application specific styles. {{{2
  286.  
  287. # Styles related to specific applications.
  288. # See: http://edulinux.homeunix.org/~n6tadam/fvwm/tips/misc/styles.txt
  289. Style rxvt IndexedWindowName, Icon wterm.xpm
  290. Style xterm IndexedWindowName, Icon wterm.xpm
  291. Style "Opera" !Handles
  292. #Style "rclock" !Title, !Borders, !Handles, Sticky, WindowListSkip
  293. #Style "xload" !Title, !Borders, !Handles, Sticky, WindowListSkip
  294. #Style "trayer" !Title, !Borders, !Handles, Sticky
  295. Style "Pcmanfm" !Handles
  296.  
  297. # Naughty!
  298. Style Fvwm* Sticky, WindowListSkip, !Title, CirculateSkip, !Handles
  299.  
  300. Style FvwmConsole Title, Handles, Icon screen.xpm
  301. Style Vim* Title, Handles
  302. Style gaim Title, Handles, BorderWidth 5, HandleWidth 5
  303. Style xloadtime !Title, Handles, Sticky
  304. Style xbuffy !Title, Sticky
  305. Style xlassie !title, Sticky
  306. Style "Terminal Emulation" StartsOnPage 0 0 0, SkipMapping
  307. Style xmcd StartsOnPage 0 0 0, SkipMapping, Icon disk-cd.xpm
  308. Style rxvt_a StartsOnPage 0 1 1, SkipMapping, Icon wterm.xpm
  309. Style rxvt_b StartsOnPage 0 1 1, SkipMapping, Icon wterm.xpm
  310. Style irc StartsOnPage 0 1 1, SkipMapping, Icon wterm.xpm, Sticky, StickyAcrossDesks
  311. Style mutt StartsOnPage 1 1, SkipMapping, IconOverride, Icon /usr/share/pixmaps/mutt.xpm
  312. Style rxvt_c StartsOnPage 1 2, SkipMapping, Icon wterm.xpm
  313. Style rxvt_d StartsOnPage 1 2, SkipMapping, Icon wterm.xpm
  314. Style Mozilla-bin StartsOnPage 0 1 0, SkipMapping, WindowListSkip
  315. Style Mozilla StartsOnPage 0 1 0, SkipMapping, WindowListSkip
  316. Style FvwmIconMan WindowListSkip
  317. Style FvwmButtonsBottom WindowListSkip, !Icon
  318. Style gecko WindowListSkip
  319. #Style Login CenterPlacement
  320. Style Gvim Title, !Sticky
  321. Style urlview StartsOnPage 1 1 SkipMapping, Icon wterm.xpm, !Closable
  322. Style irssi StartsOnPage 1 1, SkipMapping, Icon 32x32-kde/chat.xpm, !Closable, StickyAcrossDesks
  323. Style AlsaPlayer StartsOnPage 1 1, SkipMapping, !Closable
  324. Style multitail StartsOnPage 0 1, SkipMapping, !Closable, SkipMapping
  325. Style Gmrun GrabFocus
  326. Style Multi-gnome-terminal Icon 32x32-kde2/linux.xpm, SkipMapping, StartsOnPage 1 1
  327. Style ncmpc Icon 32x32-kde/music.xpm, StartsOnPage 1 1, SkipMapping, Sticky
  328. Style MPlayer !Title
  329. #Style "**" Icon default.xpm
  330. #}}}2
  331. # Module Styles {{{2
  332. # Styles related to various FvwmModules.
  333. Style FvwmButtons !Title, !Handles, CirculateSkip, NeverFocus, Sticky, \
  334. WindowListSkip
  335. Style Buttons-Slider !Title, !Handles, !Borders
  336. Style *bar* !Handles, !Borders, SloppyFocus
  337.  
  338. # Using FvwmForm
  339. Style Login !Title, !Handles, BorderWidth 10
  340. Style FvwmForm-Run Title
  341.  
  342. # FvwmButtons-FvwmButtonsBottom
  343. Style FvwmButtonsBottom !Title, !Borders, WindowListSkip, !Icon
  344. Style FvwmButtons-Compact !Title, WindowListSkip, !Icon
  345. #}}}2
  346. # }}}1
  347. # Decors {{{1
  348. # AddToDecor allows for things like vector buttons to be defined. This is
  349. # deprecated and plans for it to be re-written are long overdue. :)
  350. AddToDecor fDecor
  351. + BorderStyle Simple
  352. + TitleStyle -- Raised
  353. + ButtonStyle All -- Raised
  354. + AddButtonStyle 1 Vector 5 25x40@1 25x60@1 75x60@0 75x40@0 25x40@1
  355. + AddButtonStyle 2 Vector 4 50x25@1 75x75@0 25x75@0 50x25@1
  356. + AddButtonStyle 4 Vector 4 50x75@1 25x25@1 75x25@1 50x75@0
  357. + ButtonStyle 1 - Clear MWMDecorMenu
  358. #+ ButtonStyle 2 - Clear
  359. + ButtonStyle 2 - Clear MWMDecorMax
  360. + ButtonStyle 4 - Clear MWMDecorMin
  361. # }}}1
  362. # Bindings {{{1
  363. # Mouse Bindings {{{2
  364. # Handle some Mouse bindings now...
  365. # Recall that mouse formats look like this:
  366. #
  367. # +------------+
  368. # | || || || |
  369. # | |
  370. # +------------+
  371. # 1 3 2
  372.  
  373. # Binding Functions
  374. #
  375. # "I" stands for Immediate
  376. # "M" stands for Motion
  377. # "C" stands for Click
  378. # "H" stands for Hold
  379. # "D" stands for Double Click
  380.  
  381. # ---------------------------------------------------------------------------
  382. # Contexts:
  383. # R = Root Window rrrrrrrrrrrrrrrrrrrrrr
  384. # W = Application Window rIrrrrFSSSSSSSSSFrrrrr
  385. # F = Frame Corners rrrrrrS13TTTT642Srrrrr
  386. # S = Frame Sides rIrrrrSwwwwwwwwwSrrrrr
  387. # T = Title Bar rrrrrrSwwwwwwwwwSrrrrr
  388. # I = Icon rIrrrrFSSSSSSSSSFrrrrr
  389. # rrrrrrrrrrrrrrrrrrrrrr
  390. # Numbers are buttons: 1 3 5 7 9 0 8 6 4 2
  391. #
  392. # Modifiers: (A)ny, (C)ontrol, (S)hift, (M)eta, (N)othing
  393. # ---------------------------------------------------------------------------
  394.  
  395.  
  396. # Root menu mouse bindings.
  397. Mouse 1 R A Menu FvwmMenuRoot
  398. Mouse 2 R A WindowList
  399. Mouse 3 RFT A Menu FvwmMenuWindowOps
  400.  
  401. Mouse 1 SFT A FuncFvwmMoveOrRaiseOrShade
  402. Mouse 1 SF A FuncFvwmResizeOrRaiseOrShade Maximize
  403. Mouse 1 I A FuncIconifyDeIconify
  404. Mouse 3 I A Menu FvwmMenuWindowOps
  405. Mouse 3 FS A Menu FvwmMenuWindowOps
  406.  
  407. Mouse 0 1 A FuncWindowOpsOrClose
  408. Mouse 0 4 A FuncIconifyDeIconify
  409. Mouse 0 2 A FuncFvwmMaximizeFullScreen
  410. Mouse 0 4 S FuncDeIconifyAll
  411. # }}}2
  412. # Keyboard Shortcuts {{{2
  413. # Now some keyboard shortcuts.
  414.  
  415. # Arrow Keys
  416. # Press arrow + control anywhere, and scroll by 1 page. There's any
  417. # number of ways to do this. I use Scroll, since it was what I used from
  418. # FVWM 2.2.x, and have not needed to change it. There's now GotoPage as
  419. # an alternative and slightly more featureful command.
  420. Key Left A CM Scroll -100 0
  421. Key Right A CM Scroll +100 +0
  422. Key Up A CM Scroll +0 -100
  423. Key Down A CM Scroll +0 +100
  424.  
  425. # Press arrow + meta key, and scroll by 1/10 of a page
  426. Key Left A SM Scroll -10 +0
  427. Key Right A SM Scroll +10 +0
  428. Key Up A SM Scroll +0 -10
  429. Key Down A SM Scroll +0 +10
  430.  
  431. # Press shift arrow + control anywhere, and move the pointer by 1% of a page
  432. Key Left A SC CursorMove -1 0
  433. Key Right A SC CursorMove +1 +0
  434. Key Up A SC CursorMove +0 -1
  435. Key Down A SC CursorMove +0 +1
  436.  
  437. # Window key-bindings
  438. Key v W 3 Maximize 0 100 growonwindowlayer
  439. Key h W 3 Maximize 100 0 growonwindowlayer
  440. Key m W 3 Maximize 100 100
  441. Key i W 3 Iconify on
  442.  
  443.  
  444. #Key Volume+
  445. Key XF86AudioRaiseVolume A A Exec exec amixer set PCM 5%+ -q
  446. #Key Volume-
  447. Key XF86AudioLowerVolume A A Exec exec amixer set PCM 5%- -q
  448. # ALT+F2 Resize
  449. Key F2 A M Resize
  450. # ALT+F2 Resize
  451. Key F10 A M Move
  452. # ALT+F4 Close
  453. Key F4 A M Close
  454. # ALT+R exec gmrun
  455. #Key R A M Exec exec gmrun
  456. # ALT+E exec gentoo
  457. Key E A M Exec exec pcmanfm
  458. # Super+V +real transparency
  459. Key V A 4 Exec exec transset-df --min 0.1 -p --dec 0.2
  460. # Super+H -real transparency
  461. Key H A 4 Exec exec transset-df -p --inc 0.1
  462. # CTRL+ALT+E Eject Dvd Drive
  463. key E A CM Exec exec sudo eject
  464. # CTRL+ALT+D Close Dvd Drive
  465. Key D A CM Exec exec sudo eject -t
  466. #Application keybindings.
  467.  
  468. # CTRL+ALT+L: Lock the terminal.
  469. #Key L A CM Exec xscreensaver-command -lock
  470.  
  471. # WindowsKey+X: Run rxvt
  472. #Key X A 3 Exec exec xterm
  473.  
  474. # WindowsKey+S: Make the window Sticky
  475. Key S A 3 Stick
  476.  
  477. # WindowsKey+Tab: Run FvwmProxy
  478. Key Tab A 3 SendToModule FvwmProxy ShowToggle
  479.  
  480. # CTRL+ALT+R: Open gmrun (I sometimes use FvwmForm-Run as well).
  481. Key R A CM Exec exec gmrun
  482.  
  483. # CTRL+ALT+I: (In the root window) recompute and replace where icons are
  484. # meant to be.
  485. PointerKey I R CM All (CurrentPage, Iconic) PlaceAgain Icon Anim
  486.  
  487. # See above.
  488. #Key R A CM Module FvwmForm FvwmForm-Run
  489.  
  490. # Raise FvwmButtons
  491. Key Up A 3M All (CurrentPage, !Iconic, "FvwmButtons-Compact|FvwmButtons-Pager") RaiseLower
  492.  
  493. # The menu key opens up the root Fvwm Menu.
  494. Key Menu A N Popup FvwmMenuRoot
  495.  
  496. # I stole these functions from elsewhere -- move a window to the closest
  497. # one in a given direction.
  498. Key Up WTSF C3 PackUp
  499. Key Down WTSF C3 PackDown
  500. Key Left WTSF C3 PackLeft
  501. Key Right WTSF C3 PackRight
  502.  
  503. # Shade a window in a given direction.
  504. Key Up WTSF 3 WindowShade North
  505. Key Down WTSF 3 WindowShade South
  506. Key Left WTSF 3 WindowShade West
  507. Key Right WTSF 3 WindowShade East
  508. # }}}2
  509. # Mouse Stroke Support {{{2
  510. Mouse 3 R A StrokeFunc DrawMotion FeedBack StrokeWidth 1
  511. #Stroke 0 0 R N Menu MenuFvwmRoot
  512.  
  513. # Refresh Root Window {{{3
  514. # Down, Then Up.
  515. #Stroke 25852 0 R N Refresh
  516. # }}}3
  517.  
  518. # Directions (for flipping pages.) {{{3
  519. #Stroke 456 0 R N GotoPage +1p 0p
  520. #Stroke 654 0 R N GotoPage -1p 0p
  521. #Stroke 852 0 R N GotoPage 0p -1p
  522. #Stroke 258 0 R N GotoPage 0p +1p
  523.  
  524. # Diagonal...
  525. #Stroke 159 0 R N GotoPage +1p +1p
  526. #Stroke 951 0 R N GotoPage -1p -1p
  527. #Stroke 357 0 R N GotoPage -1p +1p
  528. #Stroke 753 0 R N GotoPage +1p -1p
  529. #}}}3
  530. #}}}2
  531. # }}}1
  532. # Menu Styles {{{1
  533. MenuStyle MWM
  534. MenuStyle * Font -adobe-helvetica-bold-r-*-*-12-*-*-*-*-*-*-*
  535. ##############################################################
  536. #These taken from fvwm-themes 'default' theme.
  537. MenuStyle * Hilight3DThickness 2
  538. #MenuStyle * Background darkgrey, Foreground black
  539. MenuStyle * PopupDelayed, PopupDelay 150, PopdownDelayed, PopdownDelay 150
  540. MenuStyle * PopupOffset -15 100, TitleWarpOff
  541. MenuStyle * TitleUnderlines2, SeparatorsLong, TrianglesRelief
  542. MenuStyle * Animation, AutomaticHotkeysOff, DoubleClickTime
  543. MenuStyle * BorderWidth 2, SidePic, SideColor
  544. MenuStyle * PopupAsSubmenu, HoldSubmenus, SubmenusRight
  545. MenuStyle * ItemFormat "%.4s%.1|%.5i%.5l%.5l%.5r%.5i%2.3>%1|"
  546. MenuStyle * VerticalItemSpacing, VerticalTitleSpacing
  547. BusyCursor DynamicMenu True
  548. #}}}1
  549. # Functions {{{1
  550. # Init Functions {{{2
  551. # StartFunction {{{3
  552. #+ I Module FvwmButtons FvwmButtonsBottom -g $[vp.width]x40+0-0
  553. #+ I Module FvwmEvent FvwmEvent-iconify
  554. #}}}3
  555. # RunProgs (called via FvwmForm-Login) {{{3
  556. DestroyFunc RunProgs
  557. AddToFunc RunProgs
  558. #+ I Exec exec rxvt -iconic -e shfsmount -o rmode=755 n6tadam@server:/ /mnt
  559. #+ I Exec exec rxvt -title irssi -geometry 71x53-0+-1 -fn -misc-fixed-medium-r-normal--16-110-100-100-c-90-iso8859-1 +sb -fg white -bg black -e screen irssi irssi
  560. #+ I Exec exec $[RXVT] -iconic
  561. #+ I Exec exec $[RXVT] -name mutt -iconic -e mutt
  562. #+ I Exec exec $[RXVT] -geometry 55x10+174+538 -name ncmpc -iconic -e ncmpc
  563. #+ I Schedule 2000 Exec exec multi-gnome-terminal --command "multitail /mnt/home/n6tadam/.irssi/urls/url"
  564. # }}}3
  565. #}}}2
  566. # Exit Functions {{{2
  567. # ExitFunction {{{3
  568. AddToFunc ExitFunction I Nop
  569. #}}}3
  570. #}}}2
  571. # Window-defined functions {{{2
  572. DestroyFunc FuncDeIconifyAll
  573. AddToFunc FuncDeIconifyAll
  574. + I All (CurrentPage !Iconic AcceptsFocus) Iconify
  575.  
  576. DestroyFunc FuncFvwmMoveOrRaiseOrShade
  577. AddToFunc FuncFvwmMoveOrRaiseOrShade
  578. + H Move
  579. + M Move
  580. + C Raise
  581. + D WindowShade $[func.context]
  582.  
  583. DestroyFunc FuncFvwmResizeOrRaiseOrShade
  584. AddToFunc FuncFvwmResizeOrRaiseOrShade
  585. + H Resize $0
  586. + M Resize $0
  587. + C Raise
  588. + D WindowShade $[func.context]
  589.  
  590. DestroyFunc FuncFvwmMoveOrRaiseLower
  591. AddToFunc FuncFvwmMoveOrRaiseLower
  592. + H Move
  593. + M Move
  594. + C RaiseLower
  595.  
  596. DestroyFunc FuncFvwmMoveOrIconify
  597. AddToFunc FuncFvwmMoveOrIconify
  598. + M Move
  599. + D Iconify
  600.  
  601. DestroyFunc FuncFvwmMaximizeFullScreen
  602. AddToFunc FuncFvwmMaximizeFullScreen
  603. + I Maximize 100 100
  604.  
  605. DestroyFunc FuncFvwmWindowOpsOrAction
  606. AddToFunc FuncFvwmWindowOpsOrAction
  607. + I Menu MenuFvwmWindowOps2 $*
  608.  
  609. DestroyFunc FuncIconifyDeIconify
  610. AddToFunc FuncIconifyDeIconify
  611. + C ThisWindow (!Iconic) Iconify
  612. + D ThisWindow (Iconic) Iconify
  613. + M Move
  614. + I All (CurrentPage, Iconic) PlaceAgain icon anim
  615.  
  616. DestroyFunc FuncWindowOpsOrClose
  617. AddToFunc FuncWindowOpsOrClose
  618. + H Menu FvwmMenuWindowOps
  619. + C Menu FvwmMenuWindowOps
  620. + D Close
  621. # }}}2
  622. # Functions called from Menus {{{2
  623. # FuncFvwmMenuDirectory {{{3
  624. DestroyFunc FuncFvwmMenuDirectory
  625. AddToFunc FuncFvwmMenuDirectory
  626. + I PipeRead 'fvwm-menu-directory -d "$0" --exec-file ^launcher --exec-title ^rox --check-subdir --links'
  627. #}}}3
  628. # FuncFvwmMenuColorset {{{3
  629.  
  630. # Reading from a file (colorset definitions) to build a menu
  631. # to select likely Hilight colours.
  632. #DestroyFunc FuncFvwmMenuColorset
  633. AddToFunc FuncFvwmMenuColorset
  634. + I DestroyMenu recreate FvwmMenuColorset
  635. + I PipeRead 'echo "AddToMenu FvwmMenuColorset Colorsets Title"'
  636. + I PipeRead 'echo \
  637. + \
  638. \
  639. "Reset\
  640. \
  641. " Function ChangeStyle "1 fg white, bg #c06077"; echo \
  642. \
  643. + \
  644. \
  645. "\
  646. \
  647. " Nop'
  648. + I PipeRead 'while read l; do echo +\
  649. "${l/*bg /\
  650. }\
  651. " Function ChangeStyle "$l"; done < ~/.fvwm/colorsets'
  652. #}}}3
  653. # FuncViewManPage {{{3
  654. DestroyFunc FuncViewManPage
  655. AddToFunc FuncViewManPage
  656. + I Exec exec xterm -fg $[fg.cs2] -bg $[bg.cs2] -g 80x40 -fn 7x14 -fb 7x14bold -n "Manual Page - $0" -T "Manual Page - $0" -e man "$0"
  657. #}}}3
  658. # SetButton {{{3
  659. DestroyFunc SetButton
  660. AddToFunc SetButton
  661. + I SendToModule FvwmButtonsBottom ChangeButton cd1 Icon cd-player.xpm
  662. #}}}3
  663. # FuncMenuMusic {{{3
  664. DestroyFunc FuncMusicMenu
  665. AddToFunc FuncMusicMenu
  666. + I DestroyMenu recreate FvwmMenuPreMusic
  667. + I PipeRead 'if [ "`cdcd info 2>/dev/null`" = "No disc in drive" ]; then echo break; fi'
  668. + I AddToMenu FvwmMenuPreMusic "CD ROM" Title
  669. + I PipeRead ' \
  670. cdcd info| grep Album| sed -e 's/\\"/\\\\\\\\\\"/g' -e "s#Album .*:[ ]*\\(.*\\)#+ \\"\\1\\"#g"; \
  671. echo + \\"\\" Nop; \
  672. cdcd tracks |sed -n -e "/^[ 0-9]/p" | sed -e s/\\"/\\\\\\\\\\"/g -e "s#[ ]*\\([0-9]*\\):[ ]*\\([ >]\\)[ ]*\\[.*\\][ ]*\\(.*\\)#+ \\"\\2\\1: \\3\\" Exec exec cdcd play \\1#g"'
  673. #}}}3
  674. #}}}2
  675. # Functions called via FvwmEvent {{{2
  676. # FvwmCountDestroyWindow {{{3
  677. # Specific to FvwmEvent-count
  678. DestroyFunc FvwmCountDestroyWindows
  679. AddToFunc FvwmCountDestroyWindows
  680. + I SetEnv WinNum 0
  681. + I All (CurrentDesk !Transient) \
  682. PipeRead 'echo SetEnv WinNum $$$$(($$$$WinNum + 1))'
  683. #+ I Echo $[WinNum]
  684. + I DesktopName 0 Main ($[WinNum])
  685. #}}}3
  686. # FvwmTitleRxvt {{{3
  687. AddToFunc FvwmTitleRxvt
  688. #+ I PipeRead 'letters=($(eval echo {e..z})); \
  689. # echo SetEnv lookup $$$$(echo $$$${letters[RCount]})'
  690. #+ I PipeRead 'echo SetEnv RCount $$$$(($$$$RCount + 1))'
  691. + I Exec exec $[RXVT] $*
  692. #-T rxvt_$[lookup] $*
  693. #}}}3
  694. # FvwmDecrementRCount {{{3
  695. AddToFunc FvwmDecrementRCount
  696. + I PipeRead "test $[RCount] -le 0 && echo SetEnv RCount 1 \
  697. || echo SetEnv RCount $$$$(($$$$RCount - 1))"
  698. #}}}3
  699. # FuncMoveBB {{{3
  700. DestroyFunc FuncMoveBB
  701. AddToFunc FuncMoveBB
  702. + I All (CurrentDesk, !Transient) ThisWindow ("FvwmButtonsBottom") \
  703. Move -0 -0
  704. + I KillModule FvwmEvent FvwmEvent-moveBB
  705. #}}}3
  706. # FuncMoveMaximised {{{3
  707. DestroyFunc FuncMoveMaximised
  708. AddToFunc FuncMoveMaximised
  709. + I Break
  710. + I EWMHBaseStruts 0 0 0 0
  711. + I ThisWindow (FvwmButtonsBottom, Iconic) All (Maximized) Maximize On 0 100
  712. #}}}3
  713. # FuncHandleFvwmButtons -- externally called via xlassie(1) {{{3
  714. DestroyFunc FuncHandleFvwmButtons
  715. AddToFunc FuncHandleFvwmButtons
  716. + I All (FvwmButtons-Compact, Iconic) Iconify off
  717. #}}}3
  718. # FuncUnMoveMaximised {{{3
  719. DestroyFunc FuncUnMoveMaximised
  720. AddToFunc FuncUnMoveMaximised
  721. + I Break
  722. + I ThisWindow (!Iconic, FvwmButtonsBottom) EWMHBaseStruts 0 0 0 40
  723. + I All (Maximized) Maximize On 100 100
  724. #}}}3
  725. #}}}2
  726. # Functions called from Mouse Actions {{{2
  727. # ToggleWindow {{{3
  728. AddToFunc ToggleWindow
  729. + I None ($0, CirculateHit) Function FvwmStart$0
  730. + I Next ($0, CirculateHit) Close
  731.  
  732. #}}}3
  733. # FvwmStartXbuffy {{{3
  734. AddToFunc FvwmStartXbuffy
  735. + I Exec exec xbuffy -bg darkgrey -fg black -poll 5 -header 0 -nobeep -horiz -mail ~/Mail{/spam,/dorset,/fvwm,/fvwm-workers,/hants,/inbox,/lgang,/sussex,/tag,/hants-wiki,/cream,/ruby,/surrey,/elinks,/vim-ruby,/pavement} -geometry 461x88+454+728
  736. + I TestRc (NoMatch) ThisWindow (xbuffy) Close
  737.  
  738. AddToFunc FvwmStartFvwmConsole
  739. + I Module FvwmConsole
  740. + I TestRc (NoMatch) ThisWindow (FvwmConsole) Close
  741.  
  742. #}}}3
  743. # ChangeStyle {{{3
  744. DestroyFunc ChangeStyle
  745. AddToFunc ChangeStyle
  746. + I ColorSet $*
  747. + I Style * HilightColorSet $*
  748. + I SetEnv DefCS "$*"
  749. + I UpdateStyles
  750. #}}}3
  751. #}}}2
  752. # Functions called from Key-Bindings {{{2
  753.  
  754. # PackWindow{Up,Down,Left,Right}, GetCoords were used from the following:
  755. #
  756. # http://fvwm.lair.be/viewtopic.php?t=358
  757. # PackWindowUp {{{3
  758. DestroyFunc PackUp
  759. AddToFunc PackUp
  760. + I NoWindow GetCoords
  761. + I SendToModule perlwops eval \
  762. my ($NEWY, $WIN) = (0, undef); \
  763. foreach $WIN (@b) { \
  764. $NEWY = $WIN->{y}+$WIN->{height} \
  765. if( $NEWY < $WIN->{y}+$WIN->{height} \
  766. && $WIN->{y}+$WIN->{height} < $[w.y] \
  767. && ( \
  768. ($WIN->{x} >= $[w.x] && $WIN->{x} <= $[w.x] + $[w.width]) \
  769. || ($WIN->{x}+$WIN->{width} >= $[w.x] \
  770. && $WIN->{x}+$WIN->{width} <= $[w.x]+$[w.width]) \
  771. ) \
  772. ) \
  773. ; \
  774. }; \
  775. cmd( "WindowId $[w.id] AnimatedMove w0 +${NEWY}p") if( $NEWY < $[w.y]);
  776.  
  777. #}}}3
  778. # PackWindowDown {{{3
  779. DestroyFunc PackDown
  780. AddToFunc PackDown
  781. + I NoWindow GetCoords
  782. + I SendToModule perlwops eval \
  783. my $DHEIGHT = $[desk.height] / $[desk.pagesy]; \
  784. my ($NEWY, $WIN) = ($DHEIGHT, undef); \
  785. foreach $WIN (@b) { \
  786. $NEWY = $WIN->{y} \
  787. if( $NEWY > $WIN->{y} && $WIN->{y} > $[w.y] + $[w.height] \
  788. && ( \
  789. ($WIN->{x} >= $[w.x] && $WIN->{x} <= $[w.x] + $[w.width]) \
  790. || ($WIN->{x}+$WIN->{width} >= $[w.x] \
  791. && $WIN->{x}+$WIN->{width} <= $[w.x]+$[w.width]) \
  792. ) \
  793. ) \
  794. ; \
  795. }; \
  796. cmd( "WindowId $[w.id] AnimatedMove w0 +" . (${NEWY}-$[w.height]) . "p") \
  797. if( $NEWY-$[w.height] > $[w.y]);
  798.  
  799. #}}}3
  800. # PackWindowLeft {{{3
  801. DestroyFunc PackLeft
  802. AddToFunc PackLeft
  803. + I NoWindow GetCoords
  804. + I SendToModule perlwops eval \
  805. my ($NEWX, $WIN) = (0, undef); \
  806. foreach $WIN (@b) { \
  807. $NEWX = $WIN->{x}+$WIN->{width} \
  808. if( $NEWX < $WIN->{x}+$WIN->{width} \
  809. && $WIN->{x}+$WIN->{width} < $[w.x] \
  810. && ( \
  811. ($WIN->{y} >= $[w.y] && $WIN->{y} <= $[w.y] + $[w.height]) \
  812. || ($WIN->{y}+$WIN->{height} >= $[w.y] \
  813. && $WIN->{y}+$WIN->{height} <= $[w.y]+$[w.height]) \
  814. ) \
  815. ) \
  816. ; \
  817. }; \
  818. cmd( "WindowId $[w.id] AnimatedMove +${NEWX}p w0") if( $NEWX < $[w.x]);
  819. #}}}3
  820. # PackWindowRight {{{3
  821. DestroyFunc PackRight
  822. AddToFunc PackRight
  823. + I NoWindow GetCoords
  824. + I SendToModule perlwops eval \
  825. my $DWIDTH = $[desk.width] / $[desk.pagesx]; \
  826. my ($NEWX, $WIN) = ($DWIDTH, undef); \
  827. foreach $WIN (@b) { \
  828. $NEWX = $WIN->{x} \
  829. if( $NEWX > $WIN->{x} && $WIN->{x} > $[w.x] + $[w.width] \
  830. && ( \
  831. ($WIN->{y} >= $[w.y] && $WIN->{y} <= $[w.y] + $[w.height]) \
  832. || ($WIN->{y}+$WIN->{height} >= $[w.y] \
  833. && $WIN->{y}+$WIN->{height} <= $[w.y]+$[w.height]) \
  834. ) \
  835. ) \
  836. ; \
  837. }; \
  838. cmd( "WindowId $[w.id] AnimatedMove +" . ($NEWX-$[w.width]) . "p w0") \
  839. if( $NEWX-$[w.width] > $[w.x] );
  840. #}}}3
  841. # GetCoords {{{3
  842. DestroyFunc GetCoords
  843. AddToFunc GetCoords
  844. + I SendToModule FvwmPerl eval @b=();
  845. + I All (CurrentPage, !Iconic, !Shaded, AcceptsFocus) SendToModule perlwops eval \
  846. push( @b, {x=>$[w.x], y=>$[w.y], width=>$[w.width], height=>$[w.height]});
  847. #}}}3
  848. #}}}2
  849. #}}}1
  850. # Menus {{{1
  851. # FvwmMenuWindowOps {{{2
  852. DestroyMenu "FvwmMenuWindowOps"
  853. AddToMenu "FvwmMenuWindowOps" "WindowOps" Title
  854. + "Clone" ThisWindow Exec exec $[w.resource]
  855. + "&Move" Pick Move
  856. #+ Function FvwmFuncMoveOrRaiseLower
  857. + "&Resize" Pick Resize
  858. #+ Function FuncFvwmResizeOrRaiseOrShade
  859. + "R&aise" Raise
  860. + "&Lower" Lower
  861. + "(De)&Iconify" Iconify
  862. + "(Un)&Stick" Stick
  863. + "(Un)Ma&ximize" Function FuncFvwmMaximizeFullScreen
  864. + "" Nop
  865. + "&Identify" Module FvwmIdent
  866. + "" Nop
  867. + "&Close" Close
  868. + "&Delete" Delete
  869. + "D&estroy" Destroy
  870. + "" Nop
  871. + "Re&fresh Screen" Refresh
  872. #}}}2
  873. # FvwmMenuWindowOps2 {{{2
  874. DestroyMenu "FvwmMenuWindowOps2"
  875. AddToMenu "FvwmMenuWindowOps2"
  876. + "Clone" Current Exec exec $[w.name]
  877. + "Move" Pick Move
  878. #+ Function FvwmFuncMoveOrRaiseLower
  879. + "Resize" Pick Resize
  880. #+ Function FuncFvwmResizeOrRaiseOrShade
  881. + "Raise" Raise
  882. + "Lower" Lower
  883. + "Iconify" Iconify
  884. + "(Un)Stick" Stick
  885. + "" Nop
  886. + "Identify" Module FvwmIdent
  887. + "" Nop
  888. + "Close" Close
  889. + "Destroy" Destroy
  890. + "Delete" Delete
  891. + "" Nop
  892. + "ScrollBar" Module FvwmScroll 2 2
  893. #}}}2
  894. # FvwmMenuRoot {{{2
  895. DestroyMenu "FvwmMenuRoot"
  896. AddToMenu "FvwmMenuRoot" "Root Menu" Title
  897. + MissingSubmenuFunction Beep
  898. + "&Shells" Popup FvwmMenuShellsPopup
  899. + "&Editors" Popup FvwmMenuEditorsPopup
  900. + "&Internet" Popup FvwmMenuInternetPopup
  901. + "&Games" Popup FvwmMenuGamesPopup
  902. + "&Drawing" Popup FvwmMenuDrawingPopup
  903. + "S&ystem" Popup FvwmMenuSystemPopup
  904. + "Musi&c" Popup FvwmMenuMusicPopup
  905. + "" Nop
  906. + "&File Management" Popup FvwmMenuFilePopup
  907. + "&Change Colorsets" Popup FvwmMenuColorset
  908. + "" Nop
  909. + "&Window Operations" Popup FvwmMenuWindowOps2
  910. + "&Modules" Popup FvwmMenuModulesPopup
  911. + "&Help" Popup FvwmMenuHelpPopup
  912. + "" Nop
  913. + "S&ession" Popup FvwmSession
  914. + "E&xit Fvwm" Popup FvwmExitFvwmPopup
  915. #}}}2
  916. # FvwmMenuMusicPopup {{{2
  917. DestroyMenu "FvwmMenuMusicPopup"
  918. AddToMenu "FvwmMenuMusicPopup" "Music" Title
  919. + "A&lsaplayer" Exec exec alsaplayer
  920. + "&Xmms" Exec exec xmms
  921. #+ "&Cplay (screen)" Function FvwmTitleRxvt -T "Cplay" -e "screen -T -RS cplay cplay"
  922. + "&Cplay (screen)" Exec exec rxvt -e cplay
  923. + "&Moc (screen)" Exec exec xterm -e mocp
  924. + "Gnome-alsamixer" Exec exec gnome-alsamixer
  925. + "&Audacious" Exec exec audacious
  926. + "&Audacity" Exec exec audacity
  927. + "&Alsamixer" Exec exec urxvt -e alsamixer
  928. + "&Gnome-volume-control" Exec exec gnome-volume-control
  929. + "&Sound Converter" Exec exec soundconverter
  930. + "&Asunder" Exec exec asunder
  931. + "&Tagtool" Exec exec tagtool
  932. + "&Video" Title
  933. + "&Camorama" Exec exec camoramax
  934. + "&Devede" Exec exec devede
  935. + "&Gnome-Mplayer" Exec exec gnome-mplayer
  936. + "&Xine" Exec exec xine
  937. + "&Cd Burn" Title
  938. + "&Xfburn" Exec exec xfburn
  939. + "&Gnomebaker" Exec exec gnomebaker
  940.  
  941. #}}}2
  942. # FvwmMenuShellsPopup {{{2
  943. DestroyMenu "FvwmMenuShellsPopup"
  944. AddToMenu "FvwmMenuShellsPopup" "Shells" Title
  945. + "&xterm (normal)" Exec exec xterm
  946. + "x&term (blue)" Exec exec xterm -bg blue -fg white
  947. + "" Nop
  948. + "&rxvt (normal)" Function FvwmTitleRxvt
  949. + "&urxvt (normal)" Exec exec urxvt -pe tabbed
  950. + "" Nop
  951. #}}}2
  952. # FvwmMenuSystemPopup {{{2
  953. DestroyMenu "FvwmMenuSystemPopup"
  954. AddToMenu "FvwmMenuSystemPopup" "System Utilities" Title
  955. + "&xloadtime" Exec exec xloadtime -bg darkgrey -update 1 -cpu -label -geometry 130x91+1033+859
  956. # "xlassie.&sh" Exec exec xlassie.sh
  957. + "x&buffy" Function FvwmStartXBuffy
  958. + "" Nop
  959. + "&qps" Exec exec qps
  960. + "&Gnome system Monitor" Exec exec gnome-system-monitor
  961. + "&. nitrogen" Exec exec nitrogen /home/dexter4/GNUstep/Library/WindowMaker/Backgrounds
  962. + "&Xcompmgr" Title
  963. + "&Xcompmgr" Exec exec xcompmgr -cCFf -D3
  964. + "K&ill Xcompmgr" Exec exec killall xcompmgr
  965. + "&File Manager" Title
  966. + "P&cmanfm" Exec exec pcmanfm
  967. + "&Utilidades" Title
  968. + "&T. Top" Exec exec urxvt -T Top -n Top -e top
  969. + "&C. Calculator" Exec exec xcalc
  970. + "&M. Xman" Exec exec xman
  971. + "&G. Xmag" Exec exec xmag
  972. + "&R. Xnetload" Exec exec xnetload -i eth0
  973. + "" Nop
  974. + "&L. Xscreensaver" Exec exec xscreensaver-command -lock
  975. + "Xlock" Title
  976. + "Julia" Exec exec xlock -mode julia
  977. + "Swarm" Exec exec xlock -mode swarm
  978. + "pyro" Exec exec xlock -mode pyro
  979. + "" Nop
  980. + "&D. $[gt.Reset X defaults]" Exec xrdb -load $HOME/.Xdefaults
  981. + "&F. $[gt.Refresh Screen]" Refresh
  982. + "&C. $[gt.Recapture Screen]" Recapture
  983.  
  984. #}}}2
  985. # FvwmMenuDrawingPopup {{{2
  986. DestroyMenu "FvwmMenuDrawingPopup"
  987. AddTomenu "FvwmMenuDrawingPopup"
  988. + "&Dia" Exec exec dia
  989. + "&xfig" Exec exec xfig
  990. + "&Gimp" Exec exec gimp
  991. #}}}2
  992. # FvwmMenuEditorsPopup {{{2
  993. DestroyMenu "FvwmMenuEditorsPopup"
  994. AddToMenu "FvwmMenuEditorsPopup"
  995. + MissingSubmenuFunction Beep
  996. + "&X11" Popup FvwmSubEditorsX11
  997. + "&Console" Popup FvwmSubEditorsConsole
  998. + "&Office" Popup FvwmSubEditorsOffice
  999.  
  1000. # FvwmMenuSubEditorsConsole {{{3
  1001. DestroyMenu "FvwmSubEditorsConsole"
  1002. AddToMenu "FvwmSubEditorsConsole" "Editors - Console" Title
  1003. + MissingSubmenuFunction Beep
  1004. + "&nano" Exec exec xterm -bg white -fg black -e nano
  1005. #}}}3
  1006. # FvwmSubEditorsX11 {{{3
  1007. DestroyMenu "FvwmSubEditorsX11"
  1008. AddToMenu "FvwmSubEditorsX11" "Editors - X11" Title
  1009. + MissingSubmenuFunction Beep
  1010. + "&gedit" Exec exec gedit
  1011. + "&Cooledit" Exec exec cooledit --look cool
  1012. + "g&cream" Exec exec gcream
  1013. + "x&less" Exec exec xless
  1014. + "X&emacs" Exec exec xemacs
  1015. + "G&V" Exec exec gv
  1016. + "x&pdf" Exec exec xpdf
  1017. + "E&vince" Exec exec evince
  1018. + "" Nop
  1019. #+ "L&yx" Exec exec lyx
  1020. #+ "&Texmacs" Exec exec texmacs
  1021. #}}}3
  1022. # FvwmSubEditorsOffice {{{3
  1023. DestroyMenu "FvwmSubEditorsOffice"
  1024. AddToMenu "FvwmSubEditorsOffice" "Office" Title
  1025. + MissingSubMenuFunction Beep
  1026. + "&OpenOffice" Popup FvwmMenuOOSubMenu
  1027. + "&AbiWord" Exec exec abiword
  1028. #}}}3
  1029. # FvwmMenuOOSubMenu {{{3
  1030. DestroyMenu "FvwmMenuOOSubMenu"
  1031. AddToMenu "FvwmMenuOOSubMenu" "OpenOffice" Title
  1032. + "&OpenOffice" Exec exec openoffice
  1033. + "" Nop
  1034. + "&Writer" Exec exec oowriter
  1035. + "&Spreadsheet" Exec exec oocalc
  1036. + "&Impress" Exec exec ooimpress
  1037. + "&Drawer" Exec exec oodraw
  1038. + "&Formulae" Exec exec oomath
  1039. #}}}3
  1040. #}}}2
  1041. # FvwmMenuGamesPopup {{{2
  1042. DestroyMenu "FvwmMenuGamesPopup"
  1043. AddToMenu "FvwmMenuGamesPopup" "Games - Console" Title
  1044. + "&moon-buggy" Exec exec rxvt -e moon-buggy
  1045. + "&Ninvaders" Exec exec rxvt -e ninvaders
  1046. + "Games - X11" Title
  1047. + "x&teddy" Exec exec xteddy
  1048. + "xt&artan" Exec exec xtartan
  1049. + "&vectoroids" Exec exec vectoroids
  1050. + "G&ens" Exec exec gens
  1051. + "etracer" Exec exec etracer
  1052. + "Frozen-Bubble" Exec exec frozen-bubble
  1053. + "LsdlDoom" Exec exec lsdldoom -width 800 -height 600
  1054. + "Medafen (frontend)" Exec exec mfe
  1055. + "Openarena" Exec exec openarenax
  1056. + "Kobodeluxe" Exec exec /usr/games/bin/kobodl
  1057. + "Ninvaders" Exec exec urxvt -e ninvaders
  1058. + "wolfgl-sdm" Exec exec wolfgl-sdm -width 800 -height 600
  1059. + "wolfgl-wl11" Exec exec wolfgl-wl1 -width 800 -height 600
  1060. + "Stella" Exec exec stella
  1061. + "Gfceux" Exec exec gfceux
  1062. + "&Emuladores" Title
  1063. + "&DosBox" Exec exec dosbox
  1064. + "&Dosemu" Exec exec dosemu -6
  1065. + "&VirtualBox" Exec exec VirtualBox
  1066. # }}}2
  1067. # FvwmInternetPopup
  1068. DestroyMenu "FvwmMenuInternetPopup"
  1069. AddToMenu "FvwmMenuInternetPopup"
  1070. + "&Browsers" Popup FvwmSubInternetBrowsers
  1071. + "&Mail" Popup FvwmSubInternetMail
  1072. + "&IRC" Popup FvwmSubInternetIRC
  1073. # FvwmSubInternetBrowsers {{{3
  1074. DestroyMenu "FvwmSubInternetBrowsers"
  1075. AddToMenu "FvwmSubInternetBrowsers" "Console Browsers" Title
  1076. + "&links" Function FvwmTitleRxvt -e 'links2s'
  1077. + "l&ynx" Function FvwmTitleRxvt -e 'lynx'
  1078. + "&elinks" Function FvwmTitleRxvt -e 'elinks'
  1079. + "X11 Browsers" Title
  1080. + "&Opera" Exec exec opera
  1081. + "&Mozilla" Exec exec mozilla
  1082. + "&Firefox" Exec exec firefox
  1083. + "&Dillo" Exec exec dillo
  1084. + "&XLinks" Exec exec links2 -g
  1085. + "&Microblogging" Title
  1086. + "&IdentiCurse" Exec exec xterm -e identicurse
  1087. + "&IM" Title
  1088. + "emesene" Exec exec emesene
  1089. + "Gajim" Exec exec gajim
  1090. + "aMsn" Exec exec amsn
  1091. + "Mcabber" Exec exec urxvt -e mcabber
  1092. + "Pidgin" Exec exec pidgin
  1093. + "&Ftp" Title
  1094. + "&Gftp" Exec exec gftp
  1095. + "&ftp" Exec exec urxvt -e ftp
  1096. + "&Filezilla" Exec exec filezilla
  1097. + "&P2p" Title
  1098. + "&aMule" Exec exec amule
  1099. + "&Nicotine" Exec exec nicotine
  1100. + "&Gtk-gnutella" Exec exec gtk-gnutella
  1101. + "&Transmission" Exec exec transmission-gtk
  1102. + "&Tucan" Exec exec tucan
  1103. + "&Linuxdcpp" Exec exec linuxdcpp
  1104. #}}}3
  1105. # FvwmSubInternetMail {{{3
  1106. DestroyMenu "FvwmSubInternetMail"
  1107. AddToMenu "FvwmSubInternetMail" "Console Mail Clients" Title
  1108. + "&mutt" Function FvwmTitleRxvt -e 'mutt'
  1109. + "&cone" Function FvwmTitleRxvt -e 'cone'
  1110. + "X11 Mail Clients" Title
  1111. + "&Sylpheed-claws" Exec exec sylpheed-claws
  1112. + "&Thunderbird" Exec exec thunderbird-bin
  1113. + "Syl&pheed" Exec exec sylpheed
  1114. + "&xmh" Exec exec xmh
  1115. #}}}3
  1116. # FvwmSubInternetIRC {{{3
  1117. DestroyMenu "FvwmSubInternetIRC"
  1118. AddToMenu "FvwmSubInternetIRC" "Console IRC" Title
  1119. + "&Irssi" Exec exec rxvt -e irssi
  1120. + "&Weechat" Exec exec rxvt -e weechat-curses
  1121. + "&BitchX" Exec exec rxvt -e bitchx
  1122. + "X11 IRC" Title
  1123. + "&Xchat" Exec exec xchat
  1124. + "xi&rssi" Exec exec xirssi
  1125. #}}}3
  1126. #}}}2
  1127. # FvwmMenuFilePopup {{{2
  1128. DestroyMenu "FvwmMenuFilePopup"
  1129. AddToMenu "FvwmMenuFilePopup"
  1130. + MissingSubMenuFunction FuncFvwmMenuDirectory
  1131. + "/" Popup /
  1132. + "/etc" Popup /etc
  1133. + "Home Directory" Popup $[HOME]
  1134. #}}}2
  1135. # FvwmMenuColorset {{{2
  1136. DestroyMenu "FvwmMenuColorset"
  1137. AddToMenu "FvwmMenuColorset" DynamicPopupAction FuncFvwmMenuColorset
  1138. #}}}2
  1139. # FvwmMenuMusicRC {{{2
  1140.  
  1141. DestroyMenu "FvwmMenuMusicRC"
  1142. AddToMenu "FvwmMenuMusicRC"
  1143. + "Eject" Exec exec cdcd eject
  1144. + "Play" PipeRead 'echo "Function SetButton" ;killall cdpause.sh ; echo "Exec exec cdcd play"'
  1145. + "Pause" PipeRead 'killall cdpause.sh ; echo "Exec exec cdpause.sh" && echo "Exec exec cdcd pause"'
  1146. + "Resume" PipeRead 'echo "Function SetButton" ; killall cdpause.sh ; echo "Exec exec cdcd resume"'
  1147. + "Stop" PipeRead 'echo "Function SetButton" ; killall cdpause.sh ; echo "Exec exec cdcd stop"'
  1148. + "Prev" PipeRead 'echo "Function SetButton" ; killall cdpause.sh ; echo "Exec exec cdcd prev"'
  1149. + "Next" PipeRead 'echo "Function SetButton" ; killall cdpause.sh ; echo "Exec exec cdcd next"'
  1150.  
  1151. # FvwmMenuPreMusic {{{2
  1152. DestroyMenu "FvwmMenuPreMusic"
  1153. AddToMenu "FvwmMenuPreMusic" DynamicPopupAction FuncMusicMenu
  1154. #}}}2
  1155. # FvwmExitFvwmPopup {{{2
  1156. DestroyMenu "FvwmExitFvwmPopup"
  1157. AddToMenu FvwmExitFvwmPopup "Exit Fvwm?" Title
  1158. + "&Restart Fvwm" Restart fvwm -f ~/.fvwm2rc
  1159. + "&Quit" Module FvwmForm FvwmForm-QuitVerify
  1160. estroyMenu "FvwmSession"
  1161. AddToMenu FvwmSession "Exit Seesion?" Title
  1162. + "&Restart" Exec exec sudo shutdown -r now
  1163. + "&Shutdown" Exec exec sudo shutdown -h now
  1164.  
  1165. #}}}2
  1166. # FvwmMenuHelpPopup {{{2
  1167. DestroyMenu "FvwmMenuHelpPopup"
  1168. AddToMenu "FvwmMenuHelpPopup" "Fvwm Manpages" Title
  1169. + "&Fvwm" FuncViewManPage fvwm
  1170. + "Fvwm&Animate" FuncViewManPage FvwmAnimate
  1171. + "FvwmA&uto" FuncViewManPage FvwmAuto
  1172. + "Fvwm&Backer" FuncViewManPage FvwmBacker
  1173. + "FvwmB&anner" FuncViewManPage FvwmBanner
  1174. + "FvwmB&uttons" FuncViewManPage FvwmButtons
  1175. + "Fvwm&Command" FuncViewManPage FvwmCommand
  1176. + "FvwmC&onsole" FuncViewManPage FvwmConsole
  1177. + "FvwmConsoleC.pl" FuncViewManPage FvwmConsoleC.pl
  1178. + "FvwmCpp" FuncViewManPage FvwmCpp
  1179. + "FvwmDebug" FuncViewManPage FvwmDebug
  1180. + "FvwmDragWell" FuncViewManPage FvwmDragWell
  1181. + "FvwmEvent" FuncViewManPage FvwmEvent
  1182. + "FvwmForm" FuncViewManPage FvwmForm
  1183. + "FvwmGtk" FuncViewManPage FvwmGtk
  1184. + "FvwmGtkDebug" FuncViewManPage FvwmGtkDebug
  1185. + "FvwmIconBox" FuncViewManPage FvwmIconBox
  1186. + "FvwmIconMan" FuncViewManPage FvwmIconMan
  1187. + "FvwmIdent" FuncViewManPage FvwmIdent
  1188. + "FvwmM4" FuncViewManPage FvwmM4
  1189. + "FvwmPager" FuncViewManPage FvwmPager
  1190. + "FvwmPerl" FuncViewManPage FvwmPerl
  1191. + "FvwmProxy" FuncViewManPage FvwmProxy
  1192. + "FvwmRearrange" FuncViewManPage FvwmRearrange
  1193. + "FvwmSave" FuncViewManPage FvwmSave
  1194. + "FvwmSaveDesk" FuncViewManPage FvwmSaveDesk
  1195. + "FvwmScript" FuncViewManPage FvwmScript
  1196. + "FvwmScroll" FuncViewManPage FvwmScroll
  1197. + "FvwmTaskBar" FuncViewManPage FvwmTaskBar
  1198. + "FvwmTheme" FuncViewManPage FvwmTheme
  1199. + "FvwmWharf" FuncViewManPage FvwmWharf
  1200. + "FvwmWinList" FuncViewManPage FvwmWinList
  1201. + "FvwmWindowMenu" FuncViewManPage FvwmWindowMenu
  1202. + "" Nop
  1203. + "fvwm-config" FuncViewManPage fvwm-config
  1204. + "fvwm-perllib" FuncViewManPage fvwm-perllib
  1205. + "fvwm-root" FuncViewManPage fvwm-root
  1206. + "fvwm-bug" FuncViewManPage fvwm-bug
  1207. + "fvwm-convert-2.2" FuncViewManPage fvwm-convert-2.2
  1208. + "fvwm-convert-2.4" FuncViewManPage fvwm-convert-2.4
  1209. + "" Nop
  1210. + "fvwm-menu-desktop" FuncViewManPage fvwm-menu-desktop
  1211. + "fvwm-menu-directory" FuncViewManPage fvwm-menu-directory
  1212. + "fvwm-menu-headlines" FuncViewManPage fvwm-menu-headlines
  1213. + "fvwm-menu-xlock" FuncViewManPage fvwm-menu-xlock
  1214. # }}}2
  1215. # FvwmMenuModulesPopup {{{2
  1216. DestroyMenu "FvwmMenuModulesPopup"
  1217. AddToMenu "FvwmMenuModulesPopup" "Modules" Title
  1218. + Audio Module FvwmAudio
  1219. + Auto Module FvwmAuto 200
  1220. + Buttons Module FvwmButtons
  1221. + Console Module FvwmConsole
  1222. + Event Module FvwmEvent
  1223. + Proxy Module FvwmProxy
  1224. + Ident Module FvwmIdent
  1225. + Banner Module FvwmBanner
  1226. + Pager Module FvwmPager 0 0
  1227. #}}}2
  1228. # FvwmExitFvwmPopup {{{2
  1229. DestroyMenu "FvwmExitFvwmPopup"
  1230. AddToMenu FvwmExitFvwmPopup "Exit Fvwm?" Title
  1231. + "&Restart" Restart fvwm -f ~/.fvwm2rc
  1232. + "&Quit" Module FvwmForm FvwmForm-QuitVerify
  1233. #}}}2
  1234. #}}}1
  1235. # Module Configs {{{1
  1236. # FvwmPager {{{2
  1237. DestroyModuleConfig FvwmPager: *
  1238. #*FvwmPager: Font -adobe-helvetica-bold-r-*-*-10-*-*-*-*-*-*-*
  1239. #*FvwmPager: Font none
  1240. *FvwmPager: SmallFont none
  1241. *FvwmPager: Back darkgrey
  1242. *FvwmPager: Fore Black
  1243. *FvwmPager: DeskHilight
  1244. *FvwmPager: WindowColors black skyblue3 orhid
  1245. *FvwmPager: Hilight orchid
  1246. *FvwmPager: DeskTopScale 29
  1247. *FvwmPager: SloppyFocus
  1248. *FvwmPager: UseSkipList
  1249. *FvwmPager: Balloons All
  1250. # }}}2
  1251. # FvwmPager-Multiple {{{2
  1252. DestroyModuleConfig FvwmPager-Multiple: *
  1253. *FvwmPager-Multiple: Rows 1
  1254. *FvwmPager-Multiple: Columns 1
  1255. *FvwmPager-Multiple: Geometry 99x356+0+0
  1256. *FvwmPager-Multiple: SmallFont none
  1257. *FvwmPager-Multiple: Back darkgrey
  1258. *FvwmPager-Multiple: Fore Black
  1259. *FvwmPager-Multiple: DeskHilight
  1260. *FvwmPager-Multiple: WindowColors black skyblue3 orhid
  1261. *FvwmPager-Multiple: Hilight orchid
  1262. *FvwmPager-Multiple: DeskTopScale 29
  1263. *FvwmPager-Multiple: SloppyFocus
  1264. *FvwmPager-Multiple: UseSkipList
  1265. *FvwmPager-Multiple: Balloons All
  1266. #}}}2
  1267. # FvwmButtons {{{2
  1268. # FvwmButtons: termbar {{{3
  1269. DestroyModuleConfig termbar: *
  1270. *termbar: Rows 1
  1271. *termbar: Back gray66
  1272. #*termbar: (2x1,Swallow(UseOld, NoHints, Respawn) "terme" \
  1273. # "Exec exec rxvt -T terme -bg darkgrey -fg black +sb -e bash --rcfile \
  1274. # /home/n6tadam/.bashrc2")
  1275. #*termbar: Geometry 379x80+199+870
  1276. #*termbar: Geometry 274x80+304+870
  1277. # }}}3
  1278. # FvwmButtons: bar {{{3
  1279. DestroyModuleConfig bar: *
  1280. *bar: Rows 1
  1281. *bar: Columns 11
  1282. *bar: Back gray66
  1283. *bar: Geometry 1253x80+15+880
  1284. #*bar: geometry 900x80+361+870
  1285. #*bar: geometry 684x80+586+870
  1286. #*bar: (5x1,Swallow(UseOld, NoHints, Respawn) "xbuffy" FvwmStartXBuffy
  1287. #*bar: (3x1,Swallow "termbar" 'Module FvwmButtons -g 379x80+199+870 termbar')
  1288. #*bar: (3x1,Swallow "mpdbar" 'Module FvwmButtons mpdbar')
  1289. #*bar: (1x1,Title 'Mutt',Swallow(UseOld, NoHints, Respawn) "xlassie" "Exec exec xlassie -offline -command 'fetchmail -s' -imap server -username n6tadam -password ask < ~/.mailpass -bg darkgrey -fg black -update 3 -mailcommand 'mailcommand.sh' -geometry 79x89+928+861")
  1290. #*bar: (1x1,Title 'station',Swallow(UseOld, NoHints, Respawn) "xloadtime" \
  1291. # "Exec exec xloadtime -cpu -update 1 -bg darkgrey")
  1292. #*bar: (1x1,Title 'gateway',Swallow "xloadtime" "Exec ssh -X gateway xloadtime -fg blue -bg darkgrey -cpu -update 1 &")
  1293. *bar: (1x1,Swallow "FvwmPager" "Module FvwmPager 0 0")
  1294. # }}}3
  1295. # FvwmButtons: Buttons-Slider {{{3
  1296. DestroyModuleConfig Buttons-Slider: *
  1297. *Buttons-Slider: Back gray66
  1298. *Buttons-Slider: Rows 1
  1299. *Buttons-Slider: Frame 1
  1300. *Buttons-Slider: Padding 0 0
  1301. *Buttons-Slider: (Panel(NoBorder, Nohints, left, steps 15, delay 6, indicator 10) "bar" \
  1302. 'Module FvwmButtons bar')
  1303. #}}}3
  1304. # FvwmButtons: mpdbar {{{3
  1305. DestroyModuleConfig mpdbar: *
  1306. *mpdbar: Back darkgrey
  1307. *mpdbar: Columns 5
  1308. *mpdbar: Rows 2
  1309. *mpdbar: (1x1, Action (Mouse 1) 'Exec mpc play &>/dev/null', Icon \
  1310. $[HOME]/.fvwm/icons/play.png)
  1311. *mpdbar: (1x1, Action (Mouse 1) 'Exec mpc pause &>/dev/null', Icon \
  1312. $[HOME]/.fvwm/icons/pause.png)
  1313. *mpdbar: (1x1, Action (Mouse 1) 'Exec mpc stop &>/dev/null', Icon \
  1314. $[HOME]/.fvwm/icons/stop.png)
  1315. *mpdbar: (1x1, Action (Mouse 1) 'Exec mpc prev &>/dev/null', Icon \
  1316. $[HOME]/.fvwm/icons/prev.png)
  1317. *mpdbar: (1x1, Action (Mouse 1) 'Exec mpc next &>/dev/null', Icon \
  1318. $[HOME]/.fvwm/icons/next.png)
  1319. *mpdbar: (5x1,Swallow(UseOld,Respawn,NoHints) "xcpustate" \
  1320. 'Exec exec "xcpustate -shorten -1 -colors grey,black,grey,grey,grey,grey,grey,grey,grey,grey"')
  1321. # }}}3
  1322. # FvwmButtons: FvwmButtons-bottom {{{3
  1323. DestroyModuleConfig FvwmButtonsBottom: *
  1324. #*FvwmButtonsBottom: Geometry 1280x40+0-0
  1325. *FvwmButtonsBottom: ButtonGeometry 2x2+0-0
  1326. *FVwmButtonsBottom: BoxSize dumb
  1327. *FvwmButtonsBottom: Back darkgrey
  1328. *FvwmButtonsBottom: Fore Black
  1329. *FvwmButtonsBottom: Rows 20
  1330. #*FvwmButtonsBottom: Font $[fvwm_smallfont]
  1331. #*FvwmButtonsBottom: Padding 0 0
  1332. *FvwmButtonsBottom: (18x20, Frame 2, Padding 0 0, Back darkgrey, Swallow(UseOld) "xlogo" "Exec exec xlogo -render -shape -fg blue -bg darkgrey")
  1333. PipeRead 'echo SetEnv width `expr $[vp.width] / 2 - 130`'
  1334.  
  1335. *FvwmButtonsBottom: ($[width]x20, Frame 1, Padding 0 1,Container(Columns 12, Rows 8, Frame 0, Padding 0 0))
  1336. #*FvwmButtonsBottom: (12x11, Back darkgrey, Swallow(UseOld, NoHints, NoClose, Respawn) "FvwmIconMan" "Module FvwmIconMan")
  1337. #*FvwmButtonsBottom: (1x9, Back darkgrey, Frame 1, Swallow (UseOld,NoClose, Respawn) "xmem" "Exec exec xmem -nolabel -jumpscroll 1 -update 1 -bg darkgrey")
  1338. #*FvwmButtonsBottom: (1x9, Back darkgrey, Frame 1, Swallow (USeOld,NoClose, Respawn) "xosview" "Exec exec xosview -captions -usedlabels -mem -disk -swap -battery -page -ints -labels -int")
  1339. #*FvwmButtonsBottom: (1x9, Back darkgrey, Frame 1, Swallow (UseOld,NoClose) "xmem" "Exec exec ssh -X server xmem -nolabel -jumpscroll 1 -update 1 -bg darkgrey", Action (Mouse 1) "Exec exec rxvt +sb -e ssh server")
  1340. #*FvwmButtonsBottom: (1x9, Back darkgrey, Frame 1, Swallow (USeOld,NoClose) "xosviews" "Exec exec ssh -X server xosview -captions -usedlabels -mem -disk -swap -battery -page -ints -labels -int -title xosviews -name xosviews -xrm "xosviews*background: darkgrey"")
  1341. *FvwmButtonsBottom: (1x9, Frame 1, Padding 0 0, Container (Columns 2, Rows 2, Frame 0, Padding 0 0))
  1342. *FvwmButtonsBottom: (1x1, Frame 1, Padding 0 0, Icon 16x16-general/cd-player.xpm)
  1343. *FvwmButtonsBottom: (1x1, Frame 1, Padding 0 0, Icon 16x16-general/chat.xpm, Action (Mouse 1) `Exec exec rxvt -title irssi -fn -misc-fixed-medium-r-normal--16-110-100-100-c-90-iso8859-1 +sb -fg white -bg black`, Action (Mouse 2) `All (irssi) Close`)
  1344. *FvwmButtonsBottom: (1x1, Frame 1, Padding 0 0, Icon 16x16-general/modules.xpm, Action (Mouse 1) Exec exec gcream)
  1345. *FvwmButtonsBottom: (1x1, Frame 1, Padding 0 0, Icon 16x16-general/home.xpm, Action (Mouse 1) `Exec exec rox $[HOME]`, Action (Mouse 3) `Exec exec gentoo`)
  1346. *FvwmButtonsBottom: (1x1, Frame 1, Padding 0 0, Icon 16x16-general/game-board.xpm, Action (Mouse 1) `Exec exec xboard -size middling`)
  1347. *FvwmButtonsBottom: (1x1, Frame 1, Padding 0 0, Icon 16x16-general/terminal-remote.xpm, Action (Mouse 1) `Function toggleWindow FvwmConsole`)
  1348. *FvwmButtonsBottom: (End)
  1349. *FvwmButtonsBottom: (1x9, Frame 1, Padding 0 0, Container (Columns 1, Rows
  1350. 1, Frame 0, Padding 0 0))
  1351. *FvwmButtonsBottom: (9x1, Frame 1, Padding 0 0, Id "A", Title "Hello")
  1352. *FvwmButtonsBottom: (End)
  1353. #*FvwmButtonsBottom: (1x5+11+0, Back darkgrey, Frame 1, Swallow "xlassie" "Exec exec xlassie -mailcommand 'mailcommand.sh' -command 'fetchmail -s' -imap 192.168.0.254 -username n6tadam -password ask < ~/.mailpass -bg darkgrey -fg black -update 10", Action (Mouse 3) 'Function ToggleWindow xbuffy')
  1354. #, Action (Mouse 3) 'FvwmStartXbuffy')
  1355. *FvwmButtonsBottom: (End)
  1356. UnsetEnv width
  1357.  
  1358. #*FvwmButtonsBottom: (1x8, Back darkgrey, Frame 1)
  1359. *FvwmButtonsBottom: (117x20, Frame 1, Padding 1 1, Container(Columns 116, Rows 19, Frame 0, Padding 0 0, Back darkgrey))
  1360. ##*FvwmButtonsBottom: (74x21, Frame 0, Padding 0 0, Back darkgrey, Swallow(UseOld, NoHints, NoClose, Respawn) "FvwmPager" "Module FvwmPager FvwmPager 0 0")
  1361. *FvwmButtonsBottom: (72x19, Frame 2, Back Darkgrey, Swallow(UseOld, NoHints, NoClose, Respawn) "FvwmPager" "Module FvwmPager FvwmPager 0 0")
  1362. *FvwmButtonsBottom: (8x6, Padding 2 2, Frame 1, Back darkgrey, Panel(up,indicator, position Module mlr right, steps 0) "FvwmPager" "Module FvwmPager FvwmPager 0 0")
  1363. *FvwmButtonsBottom: (17x18, Padding 0 0, Frame 0, Back darkgrey, Swallow(UseOld, NoHints, NoClose, Respawn) "xclock" "Exec exec xclock -digital -brief -twentyfour -padding 1 -chime -fg blue -bg darkgrey -fn -adobe-helvetica-bold-r-*-*-12-*-*-*-*-*-*-* -norender")
  1364. *FvwmButtonsBottom: (15x11, Id cd1, Padding 0 0, Frame 0, Back darkgrey, Left, Icon cd-player.xpm, Action (Mouse 1) 'Menu FvwmMenuPreMusic Rectangle +$left+$top 0', Action (Mouse 3) 'Menu FvwmMenuMusicRc' )
  1365. #*FvwmButtonsBottom: (35x11, Padding 0 0, Frame 0, Back
  1366. #darkgrey, #Swallow(UseOld, NoHints, NoClose, Respawn)
  1367. #"FvwmScript-Status" "Module FvwmScript FvwmScript-Time")
  1368. #*FvwmButtonsBottom: (End)
  1369. #}}}3
  1370. # FvwmButtons: FvwmBar {{{3
  1371. DestroyModuleConfig FvwmBar: *
  1372. *FvwmBar: Frame 1
  1373. *FvwmBar: Padding 2 2
  1374. *FvwmBar: Rows 23
  1375. *FvwmBar: Columns 71
  1376. *FvwmBar: (71x23, Swallow "FvwmIconMans" `Module FvwmIconMan FvwmIconMans`)
  1377. # }}}3
  1378. # FvwmButtons: FvwmButtons-Pager {{{3
  1379. *FvwmButtons-Pager: Geometry 99x99+0+0
  1380. *FvwmButtons-Pager: Columns 99
  1381. *FvwmButtons-Pager: Frame 2
  1382. *FvwmButtons-Pager: Padding 1 1
  1383. *FvwmButtons-Pager: Fore black
  1384. *FvwmButtons-Pager: Back darkgrey
  1385. *FvwmButtons-Pager: (99x89, Padding 0 0, Swallow "FvwmPager" 'FvwmPager * *')
  1386. *FvwmButtons-Pager: (12x10, Title "<", Action 'Desk -1 0 3')
  1387. #*FvwmButtons-Pager: (75x10,Panel (NoRespawn, down, steps 12, delay 0, position center mtb, indicator) "FvwmPager-Multiple" 'Module FvwmPager FvwmPager-Multiple 0 3')
  1388. *FvwmButtons-Pager: (12x10, Title ">", Action 'Desk +1 0 3')
  1389. #}}}3
  1390. # FvwmButtons: FvwmButtons-Compact {{{3
  1391. DestroyModuleConfig FvwmButtons-Compact: *
  1392. #*FvwmButtons-Compact: Colorset 10
  1393. *FvwmButtons-Compact: Geometry -0+0
  1394. *FvwmButtons-Compact: Columns 4
  1395. *FvwmButtons-Compact: Padding 1 1
  1396. #*FvwmButtons-Compact: Colorset 6
  1397. *FvwmButtons-Compact: (4x4, Back $[bg.cs5], Padding 0 0, Frame 1, \
  1398. Swallow "xclock" \
  1399. `Exec exec xclock -bg $[bg.cs5] -fg $[fg.cs4] -hd $[shadow.cs6] -hl \
  1400. $[hilight.cs4] -padding 2 -norender -geometry 86x86-0+0`)
  1401. *FvwmButtons-Compact: (4x2, Back firebrick3, Padding 0 0, Frame 2,\
  1402. Swallow "xload" \
  1403. `Exec exec xload -nolabel -update 1 -geometry 86x43-0+99 -bg firebrick3`)
  1404. *FvwmButtons-Compact: (4x2, Back darkgrey, Padding 0 0, Frame 2, \ Swallow "xmem" \
  1405. "Exec exec xmem -nolabel -jumpscroll 1 -update 1 -bg darkgrey")
  1406. #*FvwmButtons-Compact: (4x2, Back darkgreen, Padding 0 0, Frame 2, \ Swallow "xloadserver" \
  1407. #"Exec exec ssh -X server xload -title xloadserver -nolabel -update 1 \
  1408. #-geometry 86x43-0+99 -bg darkgreen -fg white -jumpscroll 1")
  1409. #*FvwmButtons-Compact: (4x2, Back blue, Padding 0 0, Frame 1,Swallow "xmems" \
  1410. #"Exec exec ssh -X server xmem -nolabel -title xmems -jumpscroll 1 -update 1 -bg blue",\
  1411. #Action (Mouse 1) "Exec exec rxvt +sb -e ssh server")
  1412. #*FvwmButtons-Compact: (4x2, Back darkgrey, Frame 1, Padding 0 0, \ Swallow "xlassie" \
  1413. #"Exec exec xlassie -mailcommand 'mailcommand.sh' -command 'fetchmail -s' -imap 192.168.0.254 -username n6tadam -password ask < ~/.mailpass -bg darkgrey -fg black -update 10", Action (Mouse 3) 'Function ToggleWindow xbuffy')
  1414. #*FvwmButtons-Compact: (4x4, Container(Columns 2, Colorset 3, Hilight))
  1415. #*FvwmButtons-Compact: (Frame 1, Fore darkgrey, Padding 0 0, Icon 32x32-general/cd-player.xpm)
  1416. #*FvwmButtons-Compact: (Frame 1, Padding 0 0, Icon 32x32-kde/chat.xpm, Action (Mouse 1) `Exec exec rxvt -title irssi -fn -misc-fixed-medium-r-normal--16-110-100-100-c-90-iso8859-1 +sb -fg white -bg black -e ssh -t server screen -RDS irssi irssi`, Action (Mouse 2) `All (irssi) Close`)
  1417. #*FvwmButtons-Compact: (Frame 1, Padding 0 0, Icon 32x32-kde/modules.xpm, Action (Mouse 1) Exec exec gcream, Action (Mouse 3) `Exec exec gvim)
  1418. #*FvwmButtons-Compact: (Frame 1, Padding 0 0, Icon 32x32-kde/home.xpm, Action (Mouse 1) `Exec exec rox $[HOME]`, Action (Mouse 3) `Exec exec gentoo`)
  1419. #*FvwmButtons-Compact: (Frame 1, Padding 0 0, Icon 32x32-kde/game-board.xpm, Action (Mouse 1) `Exec exec xboard -size middling`)
  1420. #*FvwmButtons-Compact: (Frame 1, Padding 0 0, Icon 32x32-kde/terminal-remote.xpm, Action (Mouse 1) `Function toggleWindow FvwmConsole`)
  1421. #*FvwmButtonsBottom: (End)
  1422. # }}}3
  1423. # }}}2
  1424. # FvwmEvent {{{2
  1425. # FvwmEvent: FvwmEvent-count {{{3
  1426. DestroyModuleConfig FvwmEvent-count: *
  1427. *FvwmEvent-count: Cmd
  1428. *FvwmEvent-count: PassId
  1429. *FvwmEvent-count: add_window FvwmCountDestroyWindows
  1430. *FvwmEvent-count: destroy_window FvwmCountDestroyWindows
  1431. #}}}3
  1432. # FvwmEvent: FvwmEvent-decrxvt {{{3
  1433. DestroyModuleConfig FvwmEvent-decrxvt: *
  1434. *FvwmEvent-decrxvt: Cmd Function
  1435. *FvwmEvent-decrxvt: PassId
  1436. *FvwmEvent-decrxvt: destroy_window FvwmDecrementRCount
  1437. # }}}3
  1438. # FvwmEvent: FvwmEvent-moveBB {{{3
  1439. DestroyModuleConfig FvwmEvent-moveBB: *
  1440. *FvwmEvent-moveBB: Cmd function
  1441. *FvwmEvent-moveBB: PassId
  1442. *FVwmEvent-moveBB: add_window FuncMoveBB
  1443. #}}}3
  1444. # FvwmEvent: Iconify check for FvwmButtonsBottom and to set EWMHBaseStruts {{{3
  1445. *FvwmEvent-Iconify: Cmd Function
  1446. *FvwmEvent-Iconify: iconify FuncMoveMaximised
  1447. #*FvwmEvent-Iconify: deiconify FuncUnMoveMaximised
  1448. #}}}3
  1449. # }}}2
  1450. # FvwmForm {{{2
  1451. # FvwmForm: Login {{{3
  1452. *LoginGrabServer
  1453. *LoginWarpPointer
  1454. *LoginFont -adobe-helvetica-bold-r-*-*-14-*-*-*-*-*-*-*
  1455. *LoginButtonFont -adobe-helvetica-bold-r-*-*-20-*-*-*-*-*-*-*
  1456. *LoginFore White
  1457. *LoginBack Blue4
  1458. *LoginItemFore Bisque
  1459. *LoginItemBack Gray50
  1460.  
  1461. # begin items
  1462. *LoginLine center
  1463. *LoginText "Start Options:"
  1464. *LoginLine center
  1465. *LoginButton quit " Quick Start " ^[
  1466. *LoginLine center
  1467. *LoginButton quit "All Programs" ^M
  1468. *LoginCommand RunProgs
  1469. #}}}3
  1470. # FvwmForm: Run {{{3
  1471. DestroyModuleConfig FvwmForm-Run: *
  1472. *FvwmForm-Run: Back darkgrey
  1473. *FvwmForm-Run: Fore black
  1474. *FvwmForm-Run: ItemBack darkgrey
  1475. *FvwmForm-Run: ItemFore black
  1476. *FvwmForm-Run: Title "Run Program"
  1477. *FvwmForm-Run: Line right
  1478. *FvwmForm-Run: Text "Command:"
  1479. *FvwmForm-Run: Input Program 30 ""
  1480. *FvwmForm-Run: Line right
  1481. #*FvwmForm-Run: Text "Host (optional):"
  1482. #*FvwmForm-Run: Input Host 20 ""
  1483. *FvwmForm-Run: Line expand
  1484. *FvwmForm-Run: Button quit "Run" ^M
  1485. #*FvwmForm-Run: Command Exec case "$(Program)" in '') exec x-terminal-emulator $(Host?-ut -T screen-ssh@$(Host) -n screen-ssh@$(Host))$(Host!-T screen@localhost -n screen@localhost) -e $(Host?hostinfo -S $(Host) -t) screen -RR ;; *://*|www.*) exec $(Host?ssh -X $(Host)) sensible-browser $(Program) ;; *) exec $(Host?ssh -X $(Host)) $(Program) ;; esac
  1486.  
  1487. # Before saving the data, remove any previously saved data:
  1488. *FvwmForm-Run: Command DestroyModuleConfig FvwmForm-RunDefault: *
  1489. *FvwmForm-Run: Command !( /bin/echo \
  1490. # "# This file last created by FvwmForm-Run on: `/bin/date`."; /bin/echo \
  1491. # '*FvwmForm-RunDefault: Program $(Program)' ; /bin/echo \
  1492. #) > ${FVWM_USERDIR}/.FvwmForm-Run
  1493. #*FvwmForm-Run: Command !( /bin/echo \
  1494. # "# This file last created by FvwmForm-Run on: `/bin/date`."; /bin/echo \
  1495. # Exec case '"$(Program)"' in "'')" exec x-terminal-emulator $(Host?-ut
  1496. # -T screen-ssh@$(Host) -n \
  1497. # screen-ssh@$(Host))$(Host! -T screen@localhost -n screen@localhost) -e
  1498. # $(Host?hostinfo -S \
  1499. # $(Host) -t) screen -RR ';; *://*|www.*)' exec $(Host?ssh -X $(Host))
  1500. # sensible-browser \
  1501. # '$(Program)' ';; *)' exec $(Host?ssh -X $(Host)) '$(Program)' ';;' esac \
  1502. #> ${FVWM_USERDIR}/.FvwmForm-RunLast
  1503.  
  1504. *FvwmForm-Run: Button quit "In Terminal" ^J
  1505. *FvwmForm-Run: Command Exec exec x-terminal-emulator $(Host?-ut) -name $(Host?ssh@$(Host)) $(Host!localhost) -n $(Host?ssh@$(Host)) $(Host!localhost) -e $(Host?ssh -Xt $(Host)) $(Program)
  1506. # Before saving the data, remove any previously saved data:
  1507. *FvwmForm-Run: Command DestroyModuleConfig FvwmForm-RunDefault: *
  1508. *FvwmForm-Run: Command !( /bin/echo \
  1509. # "# This file last created by FvwmForm-Run on: `/bin/date`."; /bin/echo \
  1510. # '*FvwmForm-RunDefault: Program $(Program)' ; /bin/echo \
  1511. #) > ${FVWM_USERDIR}/.FvwmForm-Run
  1512. #*FvwmForm-Run: Command !( /bin/echo \
  1513. # "# This file last created by FvwmForm-Run on: `/bin/date`."; /bin/echo \
  1514. # Exec exec x-terminal-emulator $(Host?-ut) -name $(Host?ssh@$(Host)) $(Host!localhost) -n $(Host?ssh@$(Host)) $(Host!localhost) -e $(Host?ssh -Xt $(Host)) #'$(Program)' \
  1515. #) > ${FVWM_USERDIR}/.FvwmForm-RunLast
  1516. *FvwmForm-Run: Button restart "Reset" F3
  1517. *FvwmForm-Run: Button quit "Cancel" ^[
  1518. *FvwmForm-Run: Command Nop
  1519. # Tell FvwmForm to read vars from the .FvwmForm-RunDefault file:
  1520. *FvwmForm-Run: UseData .FvwmForm-Run *FvwmForm-RunDefault
  1521. #}}}3
  1522. #}}}2
  1523. # FvwmIconMan {{{2
  1524. # FvwmIconMan {{{3
  1525. DestroyModuleConfig FvwmIconMan: *
  1526. *FvwmIconMan: *numManagers 1
  1527. *FvwmIconMan: *Resolution page
  1528. #*FvwmIconMan: *Background Darkgrey
  1529. *FvwmIconMan: *Background darkgrey
  1530. #*FvwmIconMan: *Foreground black
  1531. *FvwmIconMan: *Format "%t"
  1532. #*FvwmIconMan: *Font "$[fvwm_iconfont]"
  1533. *FvwmIconMan: *Action Mouse 1 A sendcommand "Focus", sendcommand "Raise"
  1534. *FvwmIconMan: *Action Mouse 2 A sendcommand "Iconify"
  1535. *FvwmIconMan: *Action Mouse 3 A sendcommand "Menu FvwmMenuWindowOps Nop"
  1536. *FvwmIconMan: *FollowFocus true
  1537. *FvwmIconMan: *UseWinList true
  1538. *FvwmIconMan: *Sort weighted
  1539. #*FvwmIconMan: *SortWeight 1 resource=screen@*
  1540. #*FvwmIconMan: *SortWeight 2 resource=*localhost
  1541. #*FvwmIconMan: *SortWeight 4 resource=screen-irc@*
  1542. #*FvwmIconMan: *SortWeight 5 resource=screen-ssh@*
  1543. #*FvwmIconMan: *SortWeight 7 resource=ssh@*
  1544. #*FvwmIconMan: *SortWeight 50
  1545. *FvwmIconMan: *PlainButton up black darkgrey
  1546. #LightSkyBlue PaleTurquoise
  1547. *FvwmIconMan: *IconButton up DimGrey darkgrey
  1548. *FvwmIconMan: *SelectButton up blue darkgrey
  1549. *FvwmIconMan: *FocusButton down black darkgrey
  1550. *FvwmIconMan: *FocusAndSelectButton down blue darkgrey
  1551. #*FvwmIconMan: FocusButton down yellow NavyBlue
  1552. #*FvwmIconMan: FocusAndSelectButton down yellow Blue
  1553. *FvwmIconMan: *TitleButton flat LightSteelBlue darkgrey
  1554. #*FvwmIconMan: *DontShow icon=Untitled resource=Untitled title=FvwmButtonsBottom title=xbuffy title=xloadtime title=xlassie title="Desk 0" title=ncmpc
  1555. *FvwmIconMan: *DrawIcons always
  1556. #*FvwmIconMan: *ButtonGeometry 200x19
  1557. *FvwmIconMan: *ManagerGeometry 1x2
  1558. *FvwmIconMan: Title ""
  1559. #}}}3
  1560. # README: Comments starting with '##' are the ones to be uncommented
  1561. # next time around.
  1562. # FvwmIconMan: FvwmIconMans {{{3
  1563. DestroyModuleConfig FvwmIconMans: *
  1564. *FvwmIconMans: ManagerGeometry 1x1
  1565. *FvwmIconMans: Background darkgrey
  1566. *FvwmIconMans: Foreground black
  1567. #*FvwmIconMans: ButtonGeometry 31x23
  1568. *FVwmIconMans: ButtonGeometry 35x16
  1569. *FvwmIconMans: Title ""
  1570. *FvwmIconMans: FocusAndSelectButton down black grey
  1571. *FvwmIconMans: FocusButton down black grey
  1572. *FvwmIconMans: IconButton down blue darkgrey
  1573. *FVwmIconMans: IconButton up blue darkgrey
  1574. *FvwmIconMans: PlainButton up black darkgrey
  1575. *FvwmIconMans: SelectButton down black grey
  1576. # disable default binding of "Iconify"
  1577. *FvwmIconMans: Action Mouse 0 N sendcommand Nop
  1578. # redefine buttons 1, 2 and 3.
  1579. *FvwmIconMans: Action Mouse 2 N sendcommand Iconify
  1580. *FvwmIconMans: Action Mouse 1 N sendcommand "Iconify off", sendcommand RaiseLower, sendcommand FlipFocus
  1581. *FvwmIconMans: Action Mouse 3 N sendcommand "Popup FvwmMenuWindowOps Rectangle +$left+$top 0 -100m"
  1582. #*FvwmIconMans: Action Mouse 4 N sendcommand "LockingSlide keep w-3p"
  1583. #*FvwmIconMans: Action Mouse 5 N sendcommand "LockingSlide keep w3p"
  1584. #*FvwmIconMans: Colorset 15
  1585. *FvwmIconMans: ReliefThickness 1
  1586. #*FvwmIconMans: Font "xft:Bitstream Vera Sans Mono:style=Roman:size=8"
  1587. #*FvwmIconMans: FocusAndSelectColorset 16
  1588. #*FvwmIconMans: FocusColorset 16
  1589. *FvwmIconMans: Resolution Page
  1590. *FvwmIconMans: DrawIcons false
  1591. *FvwmIconMans: FollowFocus True
  1592. *FvwmIconMans: UseWinList True
  1593. *FvwmIconMans: ShowOnlyIcons False
  1594. *FvwmIconMans: Format "%t"
  1595. #*FvwmIconMans: Title ""
  1596. *FvwmIconMans: Sort id
  1597. *FvwmIconMans: DontShow icon=Untitled resource=Untitled title=FvwmButtonsBottom title=xbuffy title=xloadtime title=xlassie title="Desk 0" title=ncmpc class=Fvwm*
  1598. #}}}3
  1599. #}}}2
  1600. #}}}1
  1601. #deactivate autofocus
  1602. DestroyFunc UrgencyFunc
  1603.  
  1604. DestroyFunc StartFunction
  1605. AddToFunc StartFunction
  1606. + I Module FvwmPerl perlwops
  1607. + I Schedule 600 Module FvwmEvent FvwmEvent-moveBB
  1608. #+ I Test (Init) Exec exec unclutter -noevents -notclass TeXmacs -notclass Gnome-breakout
  1609. + I Module FvwmButtons FvwmButtons-Pager -g 99x99+0+0
  1610. + I Wait FvwmButtons-Pager
  1611. + I Schedule 300 All (FvwmButtons-Pager) Move 0p 0p
  1612. + I Module FvwmButtons FvwmButtons-Compact -g 100x337+0+107
  1613. + I Wait FvwmButtons-Compact
  1614. + I Schedule 500 All (FvwmButtons-Compact) Move 0p 107p
  1615. + I Exec exec xsetroot -solid lightskyblue4
  1616. + I Module FvwmCommandS
  1617. + I Module FvwmAnimate
  1618. + I Module FvwmProxy
  1619. #+ I Test (Init) Module FvwmForm Login
  1620. #+ I Test (Init) Exec exec xcompmgr -c 1
  1621. + I Exec exec xcompmgr -cCFf -D3
  1622. + I Exec exec nitrogen --restore
  1623. #+ I Test (Init) Exec exec rclock -geometry 80x80+1279+550 -bg \#a0a0a0
  1624. #+ I Test (Init) Exec exec xload -geometry 80x80+1279+640 -update 3 -fg black -bg \#a0a0a0
  1625. #+ I test (Init) Exec exec numlockx
  1626. #+ I Test (Init) Exec exec trayer --transparent false --edge bottom --distance 5 --widthtype request --width 100 --alpha 250 --tint blue --SetDockType True --SetPartialStrut True
  1627. + I Test (Init) Exec exec trayer --transparent true --edge top --distance 5 --widthtype request --width 100 --alpha 250 --tint blue --SetDockType false --SetPartialStrut True
Advertisement
RAW Paste Data Copied
Advertisement