Advertisement
Dj_Dexter

.fvwm2rc

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