Advertisement
Guest User

Untitled

a guest
Jan 25th, 2020
495
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 18.25 KB | None | 0 0
  1. ###########################################################################
  2. # set up the colors
  3. #
  4. # OK some people like bright clear colors on their window decorations.
  5. # These people, I guess would mostly be from nice sunny/good weather places
  6. # line California.
  7. #
  8. # StdForeColor Black
  9. # StdBackColor LightSkyBlue
  10. # HiForeColor yellow
  11. # HiBackColor PeachPuff1
  12. # PagerBackColor BlanchedAlmond
  13.  
  14. # Me, I'm from Upstate New York, and live in New Hampshire, so I prefer
  15. # these dark muddy colors...
  16.  
  17. # this is used for non-selected windows, menus, and the panner
  18. # StdForeColor Black
  19. # StdBackColor #60a0c0
  20.  
  21. # this is used for the selected window
  22. HiForeColor Black
  23. HiBackColor #c06077
  24.  
  25. #PagerBackColor #5c54c0
  26. #PagerForeColor orchid
  27.  
  28. StickyForeColor Black
  29. StickyBackColor #60c0a0
  30.  
  31. # Menu colors
  32. MenuForeColor Black
  33. MenuBackColor grey
  34. MenuStippleColor SlateGrey
  35.  
  36. ############################################################################
  37. # Now the fonts - one for menus, another for window titles, another for icons
  38. #Font -adobe-helvetica-medium-r-*-*-12-*-*-*-*-*-*-*
  39. Font -*-times-medium-i-*-*-*-120-*-*-*-*-*-*
  40. WindowFont -adobe-helvetica-bold-r-*-*-12-*-*-*-*-*-*-*
  41. #IconFont -adobe-helvetica-medium-r-*-*-11-*-*-*-*-*-*-*
  42. IconFont fixed
  43.  
  44. ###########################################################################
  45. # Set up the major operating modes
  46. #
  47. ######################## FOCUS STUFF ##############################
  48. # Set windows to auto-raise after 750 milliseconds if you like it.
  49. # Autoraise can sometimes obscure pop-up windows. Performance is now
  50. # similar to olvwm's auto-raise feature.
  51. #AutoRaise 750
  52.  
  53. # Normally, we'll be in focus-follows mouse mode, but uncomment this
  54. # for mwm-style click-to-focus
  55. #ClickToFocus
  56.  
  57. ######################## ICON STUFF ##############################
  58. # Auto Place Icons is a nice feature....
  59. # This creates two icon boxes, one on the left side, then one on the
  60. # bottom. Leaves room in the upper left for my clock and xbiff,
  61. # room on the bottom for the Pager.
  62. #IconBox -150 90 -5 -140
  63. #IconBox 5 -140 -140 -5
  64. IconBox -70 1 -1 -140
  65.  
  66. # If you uncomment this, and make sure that the WindowList is bound to
  67. # something, it works pretty much like an icon manager.
  68. #SuppressIcons
  69.  
  70. # StubbornIcons makes icons de-iconify into their original position on the
  71. # desktop, instead of on the current page.
  72. #StubbornIcons
  73.  
  74. # With AutoPlacement, icons will normally place themselves underneath active
  75. # windows. This option changes that.
  76. #StubbornIconPlacement
  77.  
  78. # If you want ALL you icons to follow you around the desktop (Sticky), try
  79. # this
  80. #StickyIcons
  81.  
  82. ######################## MWM EMULATION #######################
  83. #
  84. # My feeling is that everyone should use MWMDecorHints and MWMFunctionHints,
  85. # since some applications depend on having the window manager respect them
  86.  
  87. # MWMFunction hints parses the function information in the MOTIF_WM_HINTS
  88. # property, and prohibits use of these functions on the window. Appropriate
  89. # portions of the window decorations are removed.
  90. MWMFunctionHints
  91.  
  92. # MWM is kinda picky about what can be done to transients, and it was keeping
  93. # me from iconifying some windows that I like to iconify, so here's an
  94. # over-ride that will allow me to do the operation, even tough the menu
  95. # item is shaded out.
  96. MWMHintOverride
  97.  
  98. # MWMDecor hints parses the decoration information in the MOTIF_WM_HINTS
  99. # property, and removes these decoratons from the window. This does not affect
  100. # the functions that can be performed via the menus.
  101. MWMDecorHints
  102.  
  103. # These are affect minor aspects for the look-and-feel.
  104. # Sub-menus placement mwm-style?
  105. # MWMMenus
  106. # mwm-style border reliefs (less deep than default fvwm) ?
  107. # MWMBorders
  108. # Maximize button does mwm-inversion thingy
  109. # MWMButtons
  110. ######################## MISCELLANEOUS STUFF #######################
  111. # If you don't like the default 150 msec click delay for the complex functions
  112. # change this and uncomment it.
  113. #ClickTime 150
  114.  
  115. # OpaqueMove has a number (N) attached to it (default 5).
  116. # if the window occupies less than N% of the screen,
  117. # then opaque move is used. 0 <= N <= 100
  118. # OpaqueMove 100
  119.  
  120. # flip by whole pages on the edge of the screen.
  121. EdgeScroll 100 100
  122.  
  123. # A modest delay before flipping pages seems to be nice...
  124. # I thresh in a 50 pixel Move-resistance too, just so people
  125. # can try it out.
  126. EdgeResistance 250 50
  127.  
  128.  
  129. ######################## WINDOW PLACEMENT #######################
  130. # RandomPlacement prevents user interaction while placing windows:
  131. # RandomPlacement
  132.  
  133. # SmartPlacement makes new windows pop-up in blank regions of screen
  134. # if possible, or falls back to random or interactive placement.
  135. SmartPlacement
  136.  
  137. # With SmartPlacement, windows will normally place themselves over icons.
  138. # Uncomment this to change that.
  139. #StubbornPlacement
  140.  
  141. # NoPPosition instructs fvwm to ignore the PPosition field in window
  142. # geometry hints. Emacs annoyingly sets PPosition to (0,0)!
  143. NoPPosition
  144.  
  145.  
  146. ######################## DECORATIONS #######################
  147. # If you want decorated transient windows, uncomment this:
  148. #DecorateTransients
  149.  
  150.  
  151. ###########################################################################
  152. # Set up the virtual desktop and pager
  153.  
  154. #set the desk top size in units of physical screen size
  155. DeskTopSize 2x2
  156.  
  157. # and the reduction scale used for the panner/pager
  158. DeskTopScale 32
  159.  
  160. ##########################################################################
  161. # Module path and paths to the icons
  162. #
  163. # ModulePath is a colon-separated list, just like regular unix PATH
  164. ModulePath /usr/lib/X11/fvwm
  165. PixmapPath /usr/include/X11/pixmaps/
  166. IconPath /usr/include/X11/bitmaps/
  167.  
  168. ############################################################################
  169. # Set the decoration styles and window options
  170. # Order is important!!!!
  171. # If compatible styles are set for a single window in multiple Style
  172. # commands, then the styles are ORed together. If conflicting styles
  173. # are set, the last one specified is used.
  174.  
  175. # These commands should command before any menus or functions are defined,
  176. # and before the internal pager is started.
  177.  
  178. # change the default width.
  179. Style "*" BorderWidth 5, HandleWidth 5, Color Black/#60a0c0,Icon unknown1.xpm
  180.  
  181. Style "Fvwm*" NoTitle, NoHandles, Sticky, WindowListSkip,BorderWidth 0
  182. Style "Fvwm Pager" StaysOnTop
  183. Style "FvwmBanner" StaysOnTop
  184. Style "GoodStuff" NoTitle, NoHandles, Sticky, WindowListSkip,BorderWidth 0
  185. Style "*lock" NoTitle, NoHandles, Sticky, WindowListSkip
  186. Style "xbiff" NoTitle, Sticky, WindowListSkip
  187. Style "Maker" StartsOnDesk 1
  188. Style "matlab" StartsOnDesk 3
  189. Style "signal" StartsOnDesk 3
  190. Style "rxvt" Icon term.xpm
  191. Style "xterm" Icon xterm.xpm, Color black/grey
  192. Style "Appointment" Icon datebook.xpm
  193. Style "xcalc" Icon xcalc.xpm
  194. Style "xbiff" Icon mail1.xpm
  195. Style "xmh" Icon mail1.xpm, StartsOnDesk 2
  196. Style "xman" Icon xman.xpm
  197. Style "xvgr" Icon graphs.xpm
  198. Style "matlab" Icon math4.xpm
  199. Style "xmag" Icon mag_glass.xpm
  200. Style "xgraph" Icon graphs.xpm
  201. Style "GoodStuff" Icon toolbox.xpm
  202.  
  203.  
  204. #############################################################################
  205.  
  206. # Stuff to do at start-up
  207.  
  208. Function "InitFunction"
  209. Module "I" FvwmBanner
  210. Exec "I" xpmroot /usr/include/X11/pixmaps/fvwm.xpm &
  211. Module "I" GoodStuff
  212. Module "I" FvwmPager 0 3
  213. Exec "I" exec xterm -geometry 80x64+0+0 &
  214. Wait "I" xterm
  215. Desk "I" 0 2
  216. Exec "I" exec xmh -font fixed -geometry 507x750+0+0 &
  217. Wait "I" xmh
  218. Desk "I" 0 0
  219. EndFunction
  220.  
  221. Function "RestartFunction"
  222. Exec "I" xsetroot -solid "#266294"
  223. Module "I" GoodStuff
  224. Module "I" FvwmPager 0 3
  225. EndFunction
  226.  
  227.  
  228. ############################################################################
  229. # Now define some handy complex functions
  230.  
  231. # This one moves and then raises the window if you drag the mouse,
  232. # only raises the window if you click, or does a RaiseLower if you double
  233. # click
  234. Function "Move-or-Raise"
  235. Move "Motion"
  236. Raise "Motion"
  237. Raise "Click"
  238. RaiseLower "DoubleClick"
  239. EndFunction
  240.  
  241. # This one maximizes vertically if you click (leaving room for the GoodStuff bar at the
  242. # bottom, or does a full maximization if you double click, or a true full vertical
  243. # maximization if you just hold the mouse button down.
  244. Function "maximize_func"
  245. Maximize "Motion" 0 100
  246. Maximize "Click" 0 80
  247. Maximize "DoubleClick" 100 100
  248. EndFunction
  249.  
  250.  
  251. # This one moves and then lowers the window if you drag the mouse,
  252. # only lowers the window if you click, or does a RaiseLower if you double
  253. # click
  254. Function "Move-or-Lower"
  255. Move "Motion"
  256. Lower "Motion"
  257. Lower "Click"
  258. RaiseLower "DoubleClick"
  259. EndFunction
  260.  
  261. # This one moves or (de)iconifies:
  262. Function "Move-or-Iconify"
  263. Move "Motion"
  264. Iconify "DoubleClick"
  265. EndFunction
  266.  
  267. # This one resizes and then raises the window if you drag the mouse,
  268. # only raises the window if you click, or does a RaiseLower if you double
  269. # click
  270. Function "Resize-or-Raise"
  271. Resize "Motion"
  272. Raise "Motion"
  273. Raise "Click"
  274. RaiseLower "DoubleClick"
  275. EndFunction
  276.  
  277.  
  278. # This is provided as a hint only.
  279. # Move to a known page on the desktop, then start an application in a
  280. # known location. Could also switch to a known desktop, I guess
  281. #Function "abs_coord"
  282. # GoToPage "Immediate" 1,1
  283. # Exec "Immediate" exec xcalc -geometry +100+100&
  284. #EndFunction
  285.  
  286.  
  287. ##############################################################################
  288. #now define the menus - defer bindings until later
  289.  
  290. # This menu is invoked as a sub-menu - it allows you to quit,
  291. # restart, or switch to another WM.
  292. Popup "Quit-Verify"
  293. Title "Really Quit Fvwm?"
  294. Quit "Yes, Really Quit"
  295. Restart "Restart Fvwm" fvwm
  296. Restart "Start twm" twm
  297. Restart "Start tvtwm" tvtwm
  298. Restart "Start mwm" mwm
  299. Restart "Start olwm" /usr/openwin/bin/olwm
  300. Nop ""
  301. Nop "No, Don't Quit"
  302. EndPopup
  303.  
  304. # Provides a list of modules to fire off
  305. Popup "Module-Popup"
  306. Title "Modules"
  307. Module "GoodStuff" GoodStuff
  308. Module "Clean-Up" FvwmClean
  309. Module "Identify" FvwmIdent
  310. Module "SaveDesktop" FvwmSave
  311. Module "Debug" FvwmDebug
  312. Module "Pager" FvwmPager 0 3
  313. Module "FvwmWinList" FvwmWinList
  314. EndPopup
  315.  
  316. # This menu will fire up some very common utilities
  317. Popup "Utilities"
  318. Title "Utilities"
  319. Exec "Xterm" exec xterm -e tcsh &
  320. Exec "Rxvt" exec rxvt &
  321. Exec "Top" exec rxvt -T Top -n Top -e top &
  322. Exec "Calculator" exec xcalc &
  323. Exec "Xman" exec xman &
  324. Exec "Xmag" exec xmag &
  325. Nop ""
  326. Popup "Modules" Module-Popup
  327. Nop ""
  328. Popup "Exit Fvwm" Quit-Verify
  329. EndPopup
  330.  
  331. # This defines the most common window operations
  332. Popup "Window Ops"
  333. Title "Window Ops"
  334. Function "Move" Move-or-Raise
  335. Function "Resize" Resize-or-Raise
  336. Raise "Raise"
  337. Lower "Lower"
  338. Iconify "(De)Iconify"
  339. Stick "(Un)Stick"
  340. Function "(Un)Maximize" maximize_func
  341. Nop ""
  342. Destroy "Destroy"
  343. Delete "Delete"
  344. Nop ""
  345. Refresh "Refresh Screen"
  346. EndPopup
  347.  
  348. # A trimmed down version of "Window Ops", good for binding to decorations
  349. Popup "Window Ops2"
  350. Function "Move" Move-or-Raise
  351. Function "Resize" Resize-or-Raise
  352. Raise "Raise"
  353. Lower "Lower"
  354. Iconify "Iconify"
  355. Stick "(Un)Stick"
  356. Nop ""
  357. Destroy "Destroy"
  358. Delete "Delete"
  359. Nop ""
  360. Module "ScrollBar" FvwmScroll 2 2
  361. EndPopup
  362.  
  363. #############################################################################
  364. # One more complex function - couldn't be defined earlier because it used
  365. # pop-up menus
  366. #
  367. # This creates a motif-ish sticky menu for the title-bar window-ops
  368. # pop-up
  369. # Menu acts like normal twm menu if you just hold the button down,
  370. # but if you click instead, the menu stays up, motif style
  371. Function "window_ops_func"
  372. PopUp "Click" Window Ops2
  373. PopUp "Motion" Window Ops2
  374. # Motif would add
  375. # Delete "DoubleClick"
  376. EndFunction
  377.  
  378.  
  379. ##############################################################################
  380. # This defines the mouse bindings
  381.  
  382. # First, for the mouse in the root window
  383. # Button 1 gives the Utilities menu
  384. # Button 2 gives the Window Ops menu
  385. # Button 3 gives the WindowList (like TwmWindows)
  386. # I use the AnyModifier (A) option for the modifier field, so you can hold down
  387. # any shift-control-whatever combination you want!
  388.  
  389. # Button Context Modifi Function
  390. Mouse 1 R A PopUp "Utilities"
  391. Mouse 2 R A PopUp "Window Ops"
  392. Mouse 3 R A Module "winlist" FvwmWinList transient
  393.  
  394.  
  395.  
  396. # Now the title bar buttons
  397. # Any button in the left title-bar button gives the window ops menu
  398. # Any button in the right title-bar button Iconifies the window
  399. # Any button in the rightmost title-bar button maximizes
  400. # Note the use of "Mouse 0" for AnyButton.
  401.  
  402. # Button Context Modifi Function
  403. Mouse 0 1 A Function "window_ops_func"
  404. Mouse 0 2 A Function "maximize_func"
  405. Mouse 0 4 A Iconify
  406.  
  407. # Now the rest of the frame
  408. # Here I invoke my complex functions for Move-or-lower, Move-or-raise,
  409. # and Resize-or-Raise.
  410. # Button 1 in the corner pieces, with any modifiers, gives resize or raise
  411. Mouse 1 F A Function "Resize-or-Raise"
  412. # Button 1 in the title, sides, or icon, w/ any modifiers, gives move or raise
  413. Mouse 1 TS A Function "Move-or-Raise"
  414.  
  415. # Button 1 in an icons gives move for a drag, de-iconify for a double-click,
  416. # nothing for a single click
  417. # Button 2 in an icon, w/ any modifiers, gives de-iconify
  418.  
  419. Mouse 1 I A Function "Move-or-Iconify"
  420. Mouse 2 I A Iconify
  421.  
  422. # Button 2 in the corners, sides, or title-bar gives the window ops menu
  423. Mouse 2 FST A Function "window_ops_func"
  424. # Button 3 anywhere in the decoration (except the title-bar buttons)
  425. # does a raise-lower
  426. Mouse 3 TSIF A RaiseLower
  427.  
  428. # Button 3 in the window, with the Modifier-1 key (usually alt or diamond)
  429. # gives Raise-Lower. Used to use control here, but that interferes with xterm
  430. Mouse 3 W M RaiseLower
  431.  
  432. ############################################################################
  433. # Now some keyboard shortcuts.
  434.  
  435. # Arrow Keys
  436. # press arrow + control anywhere, and scroll by 1 page
  437. Key Left A C Scroll -100 0
  438. Key Right A C Scroll +100 +0
  439. Key Up A C Scroll +0 -100
  440. Key Down A C Scroll +0 +100
  441.  
  442. # press arrow + meta key, and scroll by 1/10 of a page
  443. Key Left A M Scroll -10 +0
  444. Key Right A M Scroll +10 +0
  445. Key Up A M Scroll +0 -10
  446. Key Down A M Scroll +0 +10
  447.  
  448. # press shift arrow + control anywhere, and move the pointer by 1% of a page
  449. Key Left A SC CursorMove -1 0
  450. Key Right A SC CursorMove +1 +0
  451. Key Up A SC CursorMove +0 -1
  452. Key Down A SC CursorMove +0 +1
  453.  
  454. # press shift arrow + meta key, and move the pointer by 1/10 of a page
  455. Key Left A SM CursorMove -10 +0
  456. Key Right A SM CursorMove +10 +0
  457. Key Up A SM CursorMove +0 -10
  458. Key Down A SM CursorMove +0 +10
  459.  
  460. # Keyboard accelerators
  461. Key F1 A M Popup "Utilities"
  462. Key F1 A M Popup "Utilities"
  463. Key F2 A M Popup "Window Ops"
  464. Key F3 A M Module "WindowList" FvwmWinList
  465. Key F4 A M Iconify
  466. Key F5 A M Move
  467. Key F6 A M Resize
  468. Key F7 A M CirculateUp
  469. Key F8 A M CirculateDown
  470.  
  471. #Page Up/Dapge Down keys are used to scroll by one desktop page
  472. # in any context, press page up/down + control
  473. # in root context, just pressing page up/down is OK
  474. #
  475. # I prefer the non-wrapping scroll. These are for example purposes only
  476. #Key Next A C Scroll 100000 0
  477. #Key Next R N Scroll 100000 0
  478. #Key Prior A C Scroll -100000 0
  479. #Key Prior R N Scroll -100000 0
  480.  
  481.  
  482. ############################################################################
  483. ############################################################################
  484. #Definitions used by the modules
  485.  
  486. ###################### GoodStuff button-bar ################################
  487. # Colors
  488. *GoodStuffFore Black
  489. *GoodStuffBack #908090
  490.  
  491. # Font
  492. *GoodStuffFont -adobe-helvetica-bold-r-*-*-10-*-*-*-*-*-*-*
  493. # Geometry - really likes to pick its own size, but giving a position is OK
  494. *GoodStuffGeometry -1-90
  495.  
  496. # Layout: specify rows or columns, not both
  497. *GoodStuffColumns 1
  498.  
  499. # Define the buttons to use.....
  500. *GoodStuff Kill rbomb.xpm Destroy
  501.  
  502. # xterm or rxvts on remote machines can be done like this
  503. # Output re-direction is csh style, not sh style
  504. # You will want to substitute your own hosts here!
  505.  
  506. *GoodStuff Dopey rterm.xpm Exec "dopey" rsh dopey "exec xterm -T dopey -display $HOSTDISPLAY </dev/null >&/dev/null & "&
  507. *GoodStuff Grumpy rterm.xpm Exec "grumpy" rsh grumpy "exec xterm -T grumpy -display $HOSTDISPLAY </dev/null >&/dev/null & "&
  508. *GoodStuff Snoopy rterm.xpm Exec "snoopy" rsh snoopy "exec xterm -T snoopy -display $HOSTDISPLAY </dev/null >&/dev/null & "&
  509. *GoodStuff Xcalc rcalc.xpm Exec "Calculator" xcalc &
  510. *GoodStuff mail mail2.xpm Exec "xmh" xmh &
  511.  
  512. *GoodStuff Paging clamp.xpm TogglePage
  513. *GoodStuff xclock clock.xpm Swallow "xclock" xclock -bg \#908090 -geometry -1500-1500 -padding 0 &
  514.  
  515.  
  516. ######################### No Clutter ########################################
  517. # I only wrote NoClutter as a simple test case, but maybe some big sites like
  518. # universities really have usage problems (too many open windows)....
  519. # Time delays are in seconds.
  520. *FvwmNoClutter 3600 Iconify 1
  521. *FvwmNoClutter 86400 Delete
  522. *FvwmNoCLutter 172800 Destroy
  523.  
  524. ########################## Window-Identifier ###############################
  525. # Just choose colors and a fonts
  526. *FvwmIdentBack MidnightBlue
  527. *FvwmIdentFore Yellow
  528. *FvwmIdentFont -adobe-helvetica-medium-r-*-*-12-*-*-*-*-*-*-*
  529.  
  530. ########################### Pager #########################################
  531. *FvwmPagerBack #908090
  532. *FvwmPagerFore #484048
  533. *FvwmPagerFont -adobe-helvetica-bold-r-*-*-10-*-*-*-*-*-*-*
  534. *FvwmPagerHilight #cab3ca
  535. *FvwmPagerGeometry -1-1
  536. *FvwmPagerLabel 0 Misc
  537. *FvwmPagerLabel 1 FrameMaker
  538. *FvwmPagerLabel 2 Mail
  539. *FvwmPagerLabel 3 Matlab
  540. *FvwmPagerSmallFont 5x8
  541.  
  542.  
  543. ##########################FvwmWinList##################################
  544. *FvwmWinListBack #908090
  545. *FvwmWinListFore Black
  546. *FvwmWinListFont -adobe-helvetica-bold-r-*-*-10-*-*-*-*-*-*-*
  547. *FvwmWinListAction Click1 Iconify -1,Focus
  548. *FvwmWinListAction Click2 Iconify
  549. *FvwmWinListAction Click3 Module "FvwmIdent" FvwmIdent
  550. *FvwmWinListUseSkipList
  551. *FvwmWinListGeometry +0-1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement