BSDG33KCLUB

My FVWM Config so far [basic]

Jun 25th, 2013
318
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.40 KB | None | 0 0
  1. # This file is copied to a new user's FVWM_USERDIR by FvwmForm-Setup form.
  2. # This file contains the commands fvwm reads while starting.
  3. #
  4.  
  5. EdgeResistance -1 -1
  6. EdgeScroll 100 100
  7. ClickTime 750
  8.  
  9. DeskTopSize 2x2
  10. MenuStyle * fvwm, Foreground white, Background dimgrey, Greyed grey40
  11. MenuStyle * Font -adobe-times-bold-r-*-*-14-*-*-*-*-*-*-*
  12.  
  13. ColormapFocus FollowsMouse
  14.  
  15. # default Styles:
  16. # make sure these fonts exist on your system:
  17. Style * Font -Sans-bold-r-*-*-10-*-*-*-*-*-*-*
  18. Style * IconFont -Sans-times-bold-r-*-*-10-*-*-*-*-*-*-*
  19. Style * HilightFore black, HilightBack grey
  20. Style * BorderWidth 7, HandleWidth 7
  21. Style * Icon unknown1.xpm, Color lightgrey/dimgrey
  22. Style * MWMFunctions, MWMDecor, HintOverride
  23. Style * DecorateTransient, NoPPosition
  24. Style * IconBox 0 -10 -280 -1
  25. Style * FocusFollowsMouse
  26. Style * TileCascadePlacement
  27.  
  28. # Styles for various Fvwm modules:
  29. Style Fvwm* NoTitle, Sticky, WindowListSkip
  30. Style Fvwm* BorderWidth 2, CirculateSkipIcon, CirculateSkip
  31. Style FvwmPager StaysOnTop
  32. Style FvwmBanner StaysOnTop
  33. Style FvwmButtons Icon toolbox.xpm, ClickToFocus
  34.  
  35. # Styles for your common terminal emulator programs.
  36. # xterms and rxvts in a separate icon box:
  37. Style XTerm Icon xterm.xpm, SloppyFocus, IconBox -70 1 -1 -140
  38. Style rxvt Icon term.xpm, SloppyFocus, IconBox -70 1 -1 -140
  39. Style rxvt MWMBorder, MWMButtons
  40.  
  41. # Styles for various common programs:
  42. Style *lock NoTitle, NoHandles, Sticky, WindowListSkip, ClickToFocus
  43. Style xbiff NoTitle, Sticky, WindowListSkip, ClickToFocus
  44. Style xcalc Icon xcalc.xpm, NoButton 2,ClickToFocus
  45. Style xmh Icon mail1.xpm, NoIconTitle,StickyIcon
  46. Style xmh NoButton 2
  47. Style xman Icon xman.xpm, ClickToFocus
  48. Style xmag Icon mag_glass.xpm, ClickToFocus
  49. Style xgraph Icon graphs.xpm, ClickToFocus
  50. Style xmosaic Color Green/Yellow, ClickToFocus
  51.  
  52.  
  53. # some simple default key bindings:
  54. Key Next A SCM Next [*] Focus
  55. Key Prior A SCM Prev [*] Focus
  56. Key p A 4 Exec dmenu_run -i
  57. Key w A 4 Exec chrome
  58. Key f A 4 Exec rox
  59. Key e A 4 Exec geany
  60. Key t A 4 Exec urxvt -e /usr/bin/zsh
  61. Key a A 4 Exec urxvt -e xmms2
  62. Key m A 4 Exec urxvt -e tmux
  63. Key v A 4 Exec vlc
  64. Key n A 4 Exec nitrogen
  65. Key l A 4 Exec lxappearance
  66. Key r A 4 Fullscreen
  67. Key q A 4 Quit
  68. Key s A 4 Maximize
  69. Key d A 4 Iconify
  70. Key c A 4 Close
  71. # some simple default mouse bindings:
  72. # for the root window:
  73. Mouse 1 R A Menu MenuFvwmRoot Nop
  74. Mouse 2 R A Menu MenuFvwmWindowOps Nop
  75. Mouse 3 R A WindowList
  76.  
  77. # for the title bar buttons:
  78. Mouse 0 1 A Close
  79. Mouse 0 2 A FuncFvwmMaximize
  80. Mouse 0 4 A Iconify
  81.  
  82. # for other parts of the window/borders/icons:
  83. Mouse 1 F A FuncFvwmResizeOrRaise
  84. Mouse 1 TS A FuncFvwmMoveOrRaise
  85. Mouse 1 I A FuncFvwmMoveOrIconify
  86. Mouse 2 I A Iconify
  87. Mouse 2 FST A Menu MenuFvwmWindowOps2 Nop
  88. Mouse 3 TSIF A RaiseLower
  89.  
  90. ######################## Initialization Functions ############################
  91. AddToFunc StartFunction
  92. + I Module FvwmAnimate
  93. + I Module FvwmBanner
  94. + I Module FvwmButtons
  95.  
  96. AddToFunc InitFunction
  97. + I exec xsetroot -mod 2 2 -fg rgb:55/40/55 -bg rgb:70/50/70
  98.  
  99. # For some SM-s (like gnome-session) there is an internal background setter.
  100. AddToFunc SessionInitFunction
  101. + I Nop
  102.  
  103. ######################## Menus ###################
  104. DestroyMenu MenuFvwmRoot
  105. AddToMenu MenuFvwmRoot "$[gt.Root Menu]" Title
  106. + "&1. XTerm" Exec exec xterm
  107. + "&2. Rxvt" Exec exec rxvt
  108. + "" Nop
  109. + "&R. $[gt.Remote Logins]" Popup MenuFvwmLogins
  110. + "" Nop
  111. + "&U. $[gt.Utilities]" Popup MenuFvwmUtilities
  112. + "" Nop
  113. + "&M. $[gt.Fvwm Modules]" Popup MenuFvwmModules
  114. + "&W. $[gt.Fvwm Window Ops]" Popup MenuFvwmWindowOps
  115. + "&S. $[gt.Fvwm Config Ops]" Popup MenuFvwmConfig
  116. + "" Nop
  117. + "&F. $[gt.Refresh Screen]" Refresh
  118. + "&C. $[gt.Recapture Screen]" Recapture
  119. + "" Nop
  120. + "&X. $[gt.Exit Fvwm]" Popup MenuFvwmQuitVerify
  121.  
  122. DestroyMenu MenuFvwmUtilities
  123. AddToMenu MenuFvwmUtilities "$[gt.Utilities]" Title
  124. + "&T. Top" Exec exec xterm -T Top -n Top -e top
  125. + "&C. Calculator" Exec exec xcalc
  126. + "&M. Xman" Exec exec xman
  127. + "&G. Xmag" Exec exec xmag
  128. + "&R. Editres" Exec exec editres
  129. + "" Nop
  130. + "&E. XEmacs" Exec exec xemacs
  131. + "&A. Xmh Mail" FuncFvwmMailXmh xmh "-font fixed"
  132. + "" Nop
  133. + "&L. XLock" Exec exec xlock -mode random
  134. + "" Nop
  135. + "&D. $[gt.Reset X defaults]" Exec xrdb -load $HOME/.Xdefaults
  136.  
  137. DestroyMenu MenuFvwmConfig
  138. AddToMenu MenuFvwmConfig "$[gt.Fvwm Config Ops]" Title
  139. + "&S. $[gt.Sloppy Focus]" FuncFvwmFocusPolicyChange SloppyFocus
  140. + "&C. $[gt.Click To Focus]" FuncFvwmFocusPolicyChange ClickToFocus
  141. + "&F. $[gt.Focus Follows Mouse]" FuncFvwmFocusPolicyChange FocusFollowsMouse
  142. + "" Nop
  143. + "&1. $[gt.Colormap Follows Mouse]" ColormapFocus FollowsMouse
  144. + "&2. $[gt.Colormap Follows Focus]" ColormapFocus FollowsFocus
  145. + "" Nop
  146. + "&3. $[gt.Full Paging ON]" EdgeScroll 100 100
  147. + "&4. $[gt.All Paging OFF]" EdgeScroll 0 0
  148. + "&5. $[gt.Horizontal Paging Only]" EdgeScroll 100 0
  149. + "&6. $[gt.Vertical Paging Only]" EdgeScroll 0 100
  150. + "&7. $[gt.Partial Paging]" EdgeScroll 50 50
  151. + "&8. $[gt.Full Paging && Edge Wrap]" EdgeScroll 100000 100000
  152.  
  153. # The window Ops menus exhibit a different HotKey style.
  154. # There are 2 versions of the WindowOps Menu, meant to be bound to different
  155. # things. Here is the "common" part:
  156. DestroyFunc FuncFvwmWindowCommon
  157. AddToFunc FuncFvwmWindowCommon
  158. + I AddToMenu $0 "$[gt.&Move]" Move
  159. + I AddToMenu $0 "$[gt.&Resize]" Resize
  160. + I AddToMenu $0 "$[gt.R&aise]" Raise
  161. + I AddToMenu $0 "$[gt.&Lower]" Lower
  162. + I AddToMenu $0 "$[gt.(De)&Iconify]" Iconify
  163. + I AddToMenu $0 "$[gt.(Un)&Stick]" Stick
  164. + I AddToMenu $0 "$[gt.(Un)Ma&ximize]" Maximize
  165. + I AddToMenu $0 "" Nop
  166. + I AddToMenu $0 "$[gt.&Delete]" Delete
  167. + I AddToMenu $0 "$[gt.&Close]" Close
  168. + I AddToMenu $0 "$[gt.Destroy]" Destroy
  169. + I AddToMenu $0 "" Nop
  170.  
  171. # First windowops menu, bound to:
  172. # mouse 2 on root
  173. # Root menu
  174. DestroyMenu MenuFvwmWindowOps
  175. AddToMenu MenuFvwmWindowOps "$[gt.Window Ops]" Title
  176. FuncFvwmWindowCommon MenuFvwmWindowOps
  177. + "$[gt.Re&fresh Window]" RefreshWindow
  178.  
  179. # Second windowops menu, bound to:
  180. # any mouse on titlebar button 1
  181. # mouse 2 on frame, side or titlebar
  182. DestroyMenu MenuFvwmWindowOps2
  183. AddToMenu MenuFvwmWindowOps2
  184. FuncFvwmWindowCommon MenuFvwmWindowOps2
  185. + Scroll&Bar Module FvwmScroll 2 2
  186. + "&$[gt.Print]" FuncFvwmPrint
  187. + "$[gt.Print Re&verse]" FuncFvwmPrintReverse
  188.  
  189. # 3 different ways to log on, take your pick:
  190. DestroyFunc FuncFvwmRloginXterm
  191. AddToFunc FuncFvwmRloginXterm \
  192. I Exec xterm -name $0 -title "$USER @ $0" -e rlogin $0
  193. DestroyFunc FuncFvwmRloginRxvt
  194. AddToFunc FuncFvwmRloginRxvt \
  195. I Exec rxvt -name $0 -n $0 -title $USER@$0 -e rlogin $0
  196. DestroyFunc FuncFvwmRloginSshRxvt
  197. AddToFunc FuncFvwmRloginSshRxvt \
  198. I Exec Exec ssh $0 rxvt -display $HOSTDISPLAY
  199.  
  200. # be sure to fill these in with your correct machine names:
  201. DestroyMenu MenuFvwmLogins
  202. AddToMenu MenuFvwmLogins
  203. + &dopey FuncFvwmRloginXterm dopey
  204. + &snoopy FuncFvwmRloginXterm snoopy
  205. + s&ignal Exec rxterm signal
  206.  
  207. DestroyMenu MenuFvwmModules
  208. AddToMenu MenuFvwmModules "$[gt.Fvwm Modules]" Title
  209. + "&1. $[gt.Control Animation]" Popup MenuFvwmAnimate
  210. + "&B. Button-Bar" Module FvwmButtons
  211. + "&O. IconBox" FuncFvwmConfigureIconBox
  212. + "&F. Forms" Popup MenuFvwmForms
  213. + "&I. Identify" Module FvwmIdent
  214. + "&M. IconMan" Module FvwmIconMan
  215. + "&N. Banner" Module FvwmBanner
  216. + "&C. Console" Module FvwmConsole
  217. + "&P. Pager" Module FvwmPager 0 0
  218. + "&2. Pager (2 $[gt.desks])" Module FvwmPager 0 1
  219. + "&R. Backer" Module FvwmBacker
  220. + "&S. ScrollBar" Module FvwmScroll 50 50
  221. + "&T. FvwmTaskBar" Module FvwmTaskBar
  222. + "&U. AutoRaise" Module FvwmAuto 200 Raise Nop
  223. + "&W. WinList" Module FvwmWinList
  224. + "&X. $[gt.Stop Module Menu]" Popup MenuFvwmStopModule
  225.  
  226. DestroyMenu MenuFvwmStopModule
  227. AddToMenu MenuFvwmStopModule "$[gt.Stop Fvwm Modules]" Title
  228. + "&B. $[gt.Stop] Button-Bar" KillModule FvwmButtons
  229. + "&O. $[gt.Stop] IconBox" KillModule FvwmIconBox
  230. + "&M. $[gt.Stop] IconMan" KillModule FvwmIconMan
  231. + "&P. $[gt.Stop] Pager" KillModule FvwmPager
  232. + "&R. $[gt.Stop] Backer" KillModule FvwmBacker
  233. + "&S. $[gt.Stop] ScrollBar" KillModule FvwmScroll
  234. + "&T. $[gt.Stop] FvwmTaskBar" KillModule FvwmTaskBar
  235. + "&U. $[gt.Stop] AutoRaise" KillModule FvwmAuto
  236. + "&W. $[gt.Stop] WinList" KillModule FvwmWinList
  237.  
  238. DestroyMenu MenuFvwmForms
  239. AddToMenu MenuFvwmForms
  240. + "&C. Capture" Module FvwmForm FvwmForm-Capture
  241. + "&D. Form Defaults" Module FvwmForm FvwmForm-Form
  242. + "&R. Rlogin" Module FvwmForm FvwmForm-Rlogin
  243. + "&P. RootCursor" Module FvwmForm FvwmForm-RootCursor
  244. + "&S. Setup" Module FvwmForm FvwmForm-Setup
  245. + "&T. Talk Form" Module FvwmForm FvwmForm-Talk
  246. + "&Q. QuitVerify" Module FvwmForm FvwmForm-QuitVerify
  247.  
  248. # Configure and start using an iconbox on the fly
  249. DestroyFunc FuncFvwmConfigureIconBox
  250. AddToFunc FuncFvwmConfigureIconBox
  251. + I Module FvwmIconBox
  252. + I Style * NoIcon
  253.  
  254. DestroyMenu MenuFvwmQuitVerify
  255. AddToMenu MenuFvwmQuitVerify "$[gt.Really Quit Fvwm?]" Title
  256. + "&Q. $[gt.Yes, Really Quit]" Quit
  257. + "" Nop
  258. + "&R. $[gt.Restart]" Restart
  259. + "" Nop
  260. + "&T. $[gt.Start] twm" Restart twm
  261. + "&C. $[gt.Start] ctwm" Restart ctwm
  262. + "&2. $[gt.Start] tvtwm" Restart tvtwm
  263. + "&V. $[gt.Start] vtwm" Restart vtwm
  264. + "&M. $[gt.Start] mwm" Restart mwm
  265. + "&O. $[gt.Start] olwm" Restart /usr/openwin/bin/olwm
  266. + "" Nop
  267. + "&X. $[gt.Just an Xterm]" Restart xterm -n '"X Console"' -T '"X Console"'
  268. + "" Nop
  269. + "&N. $[gt.No, Don't Quit]" Nop
  270.  
  271. ######################## Sample Functions ##########################
  272.  
  273. DestroyFunc FuncFvwmMailXmh
  274. AddToFunc FuncFvwmMailXmh
  275. + I Next [$0] Iconify false
  276. + I Next [$0] Focus
  277. + I None [$0] Exec $0 $1
  278.  
  279. DestroyFunc FuncFvwmMoveOrRaise
  280. AddToFunc FuncFvwmMoveOrRaise
  281. + I Raise
  282. + M Move
  283. + D Lower
  284.  
  285. DestroyFunc FuncFvwmMaximize
  286. AddToFunc FuncFvwmMaximize
  287. + M Maximize 0 100
  288. + H Maximize 0 100
  289. + C Maximize 0 80
  290. + D Maximize 100 100
  291.  
  292. DestroyFunc FuncFvwmMoveOrIconify
  293. AddToFunc FuncFvwmMoveOrIconify
  294. + I Raise
  295. + M Move
  296. + D Iconify
  297.  
  298. DestroyFunc FuncFvwmResizeOrRaise
  299. AddToFunc FuncFvwmResizeOrRaise
  300. + I Raise
  301. + M Resize
  302. + D Lower
  303.  
  304. DestroyFunc FuncFvwmPrint
  305. AddToFunc FuncFvwmPrint
  306. + I Raise
  307. + I Exec xdpr -id $w
  308.  
  309. DestroyFunc FuncFvwmPrintReverse
  310. AddToFunc FuncFvwmPrintReverse
  311. + I Raise
  312. + I Exec xdpr 1/2 -h -rv -id $w
  313.  
  314. DestroyFunc FuncFvwmFocusPolicyChange
  315. AddToFunc FuncFvwmFocusPolicyChange
  316. + I Style * $0
  317. + I Recapture
  318.  
  319. # Read config files for modules:
  320. #read ConfigFvwmBacker
  321. #read ConfigFvwmButtons
  322. #read ConfigFvwmIconBox
  323. #read ConfigFvwmIconMan
  324. #read ConfigFvwmIdent
  325. #read ConfigFvwmPager
  326. #read ConfigFvwmScroll
  327. #read ConfigFvwmTaskBar
  328. #read ConfigFvwmWinList
Advertisement
Add Comment
Please, Sign In to add comment