Advertisement
Guest User

.fvwm2rc

a guest
Sep 1st, 2011
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 18.19 KB | None | 0 0
  1. #######################################################
  2. ### .fvwm2rc BEGIN
  3. #######################################################
  4. # System configuration file for Fvwm2 ( .fwm2rc )
  5. #
  6.  
  7. # Paths
  8. #IconPath /usr/X11R6/include/X11/bitmaps/:$HOME/bitmaps
  9. #PixmapPath /usr/X11R6/include/X11/pixmaps/:$HOME/xpms:$HOME/pixmaps
  10. #ModulePath $FVWM_MODULEDIR:$HOME/fvwm-modules
  11. ImagePath /usr/share/pixmaps/:$HOME/.fvwm/icons
  12.  
  13. # 'rubber-band' window-borders when moving and resizing windows.
  14. XORvalue 208
  15.  
  16. # Make our windows snap-up against other windows and make icons snap
  17. # up against other icons
  18. Style "*" SnapAttraction 20 SameType
  19.  
  20. # Font configuration
  21. WindowFont -adobe-helvetica-bold-r-*-*-14-*-*-*-*-*-*-*
  22. IconFont -adobe-helvetica-bold-r-*-*-10-*-*-*-*-*-*-*
  23.  
  24. # HighlightColor
  25. HilightColor linen SteelBlue4
  26.  
  27. # BorderStyle
  28. BorderStyle Active Solid SteelBlue4 -- NoInset HiddenHandles
  29. BorderStyle Inactive Solid #11236b -- NoInset HiddenHandles
  30.  
  31. # TitleStyle
  32. TitleStyle ActiveUp Solid SteelBlue4 -- flat
  33. TitleStyle ActiveDown Solid SteelBlue4 -- flat
  34. TitleStyle Inactive Solid #11236b -- flat
  35.  
  36. # The Second Variation of TitleStyle:
  37. TitleStyle LeftJustified height 18
  38.  
  39. # Button Styles
  40. ButtonStyle All -- UseTitleStyle flat
  41. ButtonStyle 1 14 20x20@1 20x70@1 70x70@0 70x20@0 20x20@1 60x60@0 60x50@0 60x60@0 50x60@0 60x60@0 60x80@0 80x80@0 80x60@0 60x60@0
  42. ButtonStyle 2 16 60x40@1 60x80@0 15x80@0 15x40@1 60x40@1 40x40@1 40x25@1 75x25@1 75x60@0 60x60@0 75x60@0 75x40@0 85x40@0 85x15@0 60x15@1 60x25@1
  43. ButtonStyle 4 12 50x10@1 25x35@1 40x35@1 40x60@1 25x60@1 50x85@1 75x60@0 60x60@0 60x35@0 75x35@0 50x10@0 50x10@1
  44. ButtonStyle 6 12 10x50@1 35x25@1 35x40@1 65x40@1 65x25@1 90x50@1 65x75@0 65x60@0 35x60@0 35x75@0 10x50@0 10x50@1
  45. ButtonStyle 8 17 20x20@1 30x20@1 50x40@1 70x20@1 80x20@1 80x30@0 60x50@0 80x70@1 80x80@0 70x80@0 50x60@0 30x80@0 20x80@0 20x70@0 40x50@1 20x30@0 20x20@1
  46.  
  47. # MenuStyle
  48. #MenuStyle * background #455561, ActiveFore #ccfcf0, ForeGround black
  49. MenuStyle * popupoffset 0 100
  50. #MenuStyle * MenuFace HGradient 64 1 #758591 100 #102030, Animation
  51. MenuStyle * Foreground black, Background grey60, Greyed grey40
  52. MenuStyle * Font -adobe-times-bold-r-*-*-14-*-*-*-*-*-*-*
  53. # Set up some desktop options
  54. DesktopSize 1x1
  55.  
  56. # EdgeResistance scrolling moving
  57. #EdgeResistance 750 75
  58. # EdgeScroll horizontal vertical
  59. EdgeScroll 100 100
  60. Style * EdgeMoveDelay scrolling
  61. Style * EdgeMoveResistance 100 100
  62. # OpaqueMoveSize percentage
  63. OpaqueMoveSize 1
  64.  
  65. # Style related options
  66. Style "*" ForeColor grey40
  67. Style "*" BackColor #11236b
  68. Style "*" SmartPlacement, CleverPlacement
  69. Style "*" StickyIcon
  70. #Style "*" IconBox 5 -50 -134 -5
  71. #Style "*" IconBox -5 -290 -134 -5
  72. Style "*" IconBox -5 -730 -134 -5
  73. Style "*" BorderWidth 5, HandleWidth 5
  74. Style "*" !UsePPosition
  75. Style "*" NakedTransient
  76. Style "*" SloppyFocus, MouseFocusClickRaises
  77. Style "*" ResizeOutline
  78. Style "*" IconSize 36 36
  79.  
  80. # Some Fvwm-Related Styles
  81. Style "Fvwm*" !Title, !Handles, Sticky, WindowListSkip
  82. Style "FvwmWinList" !Title
  83. Style "FvwmPager" Sticky, StaysOnTop, BorderWidth 0
  84. Style "FvwmBanner" StaysOnTop
  85.  
  86. # Resources for Modules
  87. DestroyModuleConfig FvwmPager: *
  88. *FvwmPager: Back #150525
  89. *FvwmPager: Fore #484058
  90. *FvwmPager: Font -adobe-helvetica-bold-r-*-*-10-*-*-*-*-*-*-*
  91. *FvwmPager: Hilight #908090
  92. *FvwmPager: DeskTopScale 64
  93. *FvwmPager: Geometry -0-0
  94. *FvwmPager: Label 0 Pager
  95. *FvwmPager: SmallFont 5x8
  96. *FvwmPager: Columns 1
  97. *FvwmPager: Label 0 I
  98. *FvwmPager: Label 1 II
  99. *FvwmPager: Label 2 III
  100. *FvwmPager: Label 3 IV
  101. *FvwmPager: Balloons Pager
  102. *FvwmPager: Balloonfore white
  103.  
  104. # Custom styles
  105. style "xterm" BorderWidth 6, Handlewidth 6
  106. Style "gkrellm" BorderWidth 0, !Title, !Handles
  107. Style "Audacious" BorderWidth 0, !Title, !Handles
  108. #Style "firefox" CenterPlacement
  109. Style "*Dialog_popup" WindowListSkip
  110. Style "rclock" !Title, !Borders, !Handles, Sticky
  111. Style "xload" !Title, !Borders, !Handles, Sticky
  112. Style "trayer" !Title, !Borders, !Handles
  113.  
  114. #
  115. #################
  116. # Icons applications
  117. #################
  118. #
  119. Style * IconOverride
  120. #Style * ExactIconName
  121. Style * DecorateTransient
  122. Style xterm Icon yax_winterm.xpm
  123. Style urxvt Icon yax_winterm.xpm
  124. Style MPlayer Icon default.xpm
  125. Style Xpdf Icon default.xpm
  126. Style xmag Icon default.xpm
  127. Style xnetload Icon default.xpm
  128. Style Dillo Icon default.xpm
  129.  
  130. #
  131. #################
  132. #I think it is posible to get red cursor
  133. #################
  134. #
  135. CursorStyle ROOT left_ptr white red
  136.  
  137. OpaqueMoveSize -1
  138. Style "*" SnapAttraction 4 SameType
  139. Style "*" SnapGrid 1 1
  140. MoveThreshold 3
  141. BugOpts FlickeringMoveWorkAround On
  142.  
  143. # Function definitions
  144. AddToFunc "Move-or-Raise" "M" Move
  145. + "M" Raise
  146. + "C" Raise
  147. + "D" WindowShade
  148.  
  149. AddToFunc "Move-or-Iconify" "M" Move
  150. + "D" Iconify
  151. + "C" RaiseLower
  152.  
  153. AddToFunc "Resize-or-Raise" "M" Resize
  154. + "M" Raise
  155. + "C" Raise
  156. + "D" RaiseLower
  157.  
  158. AddToFunc "InitFunction" "Immediate" #Module FvwmPager 0 3
  159. + "Inmediate" Exec xrandr -s 1366x768 &
  160. + "Immediate" Module FvwmAudio
  161. + "Immediate" Exec xsetroot -solid \#050530
  162. + "Immediate" Exec xscreensaver &
  163. + "Immediate" Desk 0 0
  164.  
  165. AddToFunc "Maximize_func" "M" Maximize 0 100
  166. + "C" Maximize 0 80
  167. + "D" Maximize 100 100
  168.  
  169. # Key bindings
  170. Key F9 A M Desk 0 0
  171. Key F10 A M Desk 0 1
  172. Key F11 A M Desk 0 2
  173. Key F12 A M Desk 0 3
  174.  
  175. # Mouse bindings
  176. # Button Context Modifi Function
  177. Mouse 1 R A Menu "MainMenu" Nop
  178. Mouse 3 R A Menu "Window-ops-Popup" Nop
  179. Mouse 2 R A WindowList
  180. Mouse 4 R A Menu Nop
  181. Mouse 5 R A Menu Nop
  182. Mouse 1 1 N Iconify
  183. Mouse 1 I N Function "Move-or-Iconify"
  184. Mouse 1 2 N Maximize
  185. Mouse 1 4 N Maximize 0 100
  186. Mouse 1 6 N Maximize 100 0
  187. Mouse 1 8 N Delete
  188. Mouse 1 SF N Function "Resize-or-Raise"
  189. Mouse 1 T N Function "Move-or-Raise"
  190.  
  191. # Menu Definitions
  192. AddToMenu "Window-ops-Popup" "Move" Function Move-or-Raise
  193. + "(Un)Stick" Stick
  194. + "Identify" Module FvwmIdent
  195. + "" Nop
  196. + "Destroy" Destroy
  197. + "Close" Close
  198.  
  199. AddToMenu "MainMenu"
  200. + "" Nop
  201. #+ "xterm" Exec xset r rate 175 60;xterm -tn xterm -r +sb -j -s -sl 1000 -geometry 128x89 -fg white -bg black &
  202. + "xterm" Exec xterm &
  203. + "Urxvt" Exec urxvt -pe tabbed &
  204. + "Pcmanfm" Exec pcmanfm &
  205. + "" Nop
  206. + "Run App" Exec gmrun &
  207. + "" Nop
  208. + "opera" Exec opera &
  209. + "Menu" Popup MenuRoot
  210. #+ "" Nop
  211. #+ "XLock" Exec xscreensaver-command -lock
  212. + "Session" Popup Quit-Session
  213. + "Quit X" Popup Quit-Verify
  214. #+ "" Nop
  215.  
  216.  
  217. AddToMenu "Quit-Verify"
  218. + "Restart" Restart fvwm -f ~/.fvwm/.fvwm2rc
  219. + "Yes, Quit X" Quit
  220. AddToMenu "Quit-Session"
  221. + "Restart" Exec sudo shutdown -r now &
  222. + "Shutdown" Exec sudo shutdown -h now &
  223.  
  224.  
  225. ######################## Menus ###################
  226. #DestroyMenu MenuFvwmRoot
  227. AddToMenu "MenuRoot" "$[gt.Root Menu]" Title
  228. + "&Urxvt" Exec exec urxvt -pe tabbed
  229. + "&Pcmanfm" Exec exec pcmanfm
  230. + "&Edit Config" Exec exec urxvt -e nano ~/.fvwm/.fvwm2rc
  231. + "&Utilidad" Popup MenuFvwmUtil
  232. + "&IM" Popup MenuFvwmIM
  233. + "&Irc" Popup MenuFvwmIrc
  234. + "&Pic" Popup MenuFvwmPic
  235. + "&Pdf" Popup MenuFvwmPdf
  236. + "&Correo" Popup MenuFvwmCorreo
  237. + "&Libreoffice" Popup MenuFvwmLibreoffice
  238. + "&Editores" Popup MenuFvwmEditores
  239. + "&Emuladores" Popup MenuFvwmEmuladores
  240. + "&Juegos" Popup MenuFvwmJuegos
  241. + "&Audio" Popup MenuFvwmAudio
  242. + "&Video" Popup MenuFvwmVideo
  243. + "&Ftp" Popup MenuFvwmFtp
  244. + "&P2p" Popup MenuFvwmP2p
  245. + "" Nop
  246. #+ "&R. $[gt.Remote Logins]" Popup MenuFvwmLogins
  247. + "" Nop
  248. + "&U. $[gt.Utilities]" Popup MenuFvwmUtilities
  249. #+ "" Nop
  250. #+ "&M. $[gt.Fvwm Modules]" Popup #MenuFvwmModules
  251. #+ "&W. $[gt.Fvwm Window Ops]" Popup #MenuFvwmWindowOps
  252. #+ "&S. $[gt.Fvwm Config Ops]" Popup MenuFvwmConfig
  253. #+ "" Nop
  254. #+ "&F. $[gt.Refresh Screen]" Refresh
  255. #+ "&C. $[gt.Recapture Screen]" Recapture
  256. #+ "" Nop
  257. #+ "&X. $[gt.Exit Fvwm]" Popup MenuFvwmQuitVerify
  258.  
  259. DestroyMenu MenuFvwmIM
  260. AddToMenu MenuFvwmIM "$[gt.IM Menu]" Title
  261. + "&1. emesene" Exec exec emesene
  262. + "&2. Gajim" Exec exec gajim
  263. + "&3. aMsn" Exec exec amsn
  264. + "&4. Mcabber" Exec exec urxvt -e mcabber
  265. + "&5. Pidgin" Exec exec pidgin
  266.  
  267. DestroyMenu MenuFvwmIrc
  268. AddToMenu MenuFvwmIrc "$[gt.Irc Menu]" Title
  269. + "&1. xchat" Exec exec xchat
  270. + "&2. irssi (screen)" Exec exec urxvt -e screen irssi
  271. + "&3. irssi" Exec exec urxvt -e irssi
  272. + "&4. Weechat" Exec exec urxvt -e weechat-curses
  273.  
  274. DestroyMenu MenuFvwmPic
  275. AddToMenu MenuFvwmPic "$[gt.Pic Menu]" Title
  276. + "&1. eog" Exec exec eog
  277. + "&2. Gimp" Exec exec gimp
  278. + "&3. Gpicview" Exec exec gpicview
  279. + "&4. Gthumb" Exec exec gthumb
  280. + "&5. GQview" Exec exec gqview
  281. + "&6. Xv" Exec exec xv
  282.  
  283. DestroyMenu MenuFvwmPdf
  284. AddToMenu MenuFvwmPdf "$[gt.Pdf Menu]" Title
  285. + "&1. Evince" Exec exec evince
  286. + "&2. xpdf" Exec exec xpdf
  287. + "&3. Fbreader" Exec exec fbreader
  288.  
  289. DestroyMenu MenuFvwmCorreo
  290. AddToMenu MenuFvwmCorreo "$[gt.Correo Menu]" Title
  291. + "&1. Thunderbird" Exec exec thunderbird-bin
  292.  
  293. DestroyMenu MenuFvwmLibreoffice
  294. AddToMenu MenuFvwmLibreoffice "$[gt.Libreoffice Menu]" Title
  295. #+ "&1. Libreoffice" Exec exec soffice
  296. #+ "&2. Writer" Exec exec lowriter
  297. #+ "&3. Spreadsheet" Exec exec localc
  298. #+ "&4. Draw" Exec exec lodraw
  299. #+ "&5. Impress" Exec exec loimpress
  300. + "&. Libreoffice" Exec exec libreoffice
  301. + "&. Writer" Exec exec libreoffice --writer
  302. + "&. Spreadsheet" Exec exec libreoffice --calc
  303. + "&. Draw" Exec exec libreoffice --draw
  304. + "&. Impress" Exec exec libreoffice --impress
  305.  
  306. DestroyMenu MenuFvwmEditores
  307. AddToMenu MenuFvwmEditores "$[gt.Editores Menu]" Title
  308. + "&1. Gedit" Exec exec gedit
  309. + "&2. Cooledit" Exec exec cooledit --look cool
  310. + "&3. Ghex" Exec exec ghex2
  311. + "&4. VI" Exec exec urxvt -e vi
  312. + "&5. Nano" Exec exec urxvt -e nano
  313.  
  314. DestroyMenu MenuFvwmEmuladores
  315. AddToMenu MenuFvwmEmuladores "$[gt.Emuladores Menu]" Title
  316. + "&1. DosBox" Exec exec dosbox
  317. + "&2. Dosemu" Exec exec dosemu -6
  318. + "&3. VirtualBox" Exec exec VirtualBox
  319.  
  320. DestroyMenu MenuFvwmJuegos
  321. AddToMenu MenuFvwmJuegos "$[gt.Juegos Menu]" Title
  322. + "&1. Gens" Exec exec gens
  323. + "&2. etracer" Exec exec etracer
  324. + "&3. Frozen-Bubble" Exec exec frozen-bubble
  325. + "&4. LsdlDoom" Exec exec lsdldoom -width 800 -height 600
  326. + "&5. Quake III" Exec exec quake3x
  327. + "&6. Quake III Matrix" Exec exec quake3-matrixX
  328. + "&7. Openarena" Exec exec openarenax
  329. + "&8. Kobodeluxe" Exec exec /usr/games/bin/kobodl
  330. + "&9. Ninvaders" Exec exec urxvt -e ninvaders
  331. + "&10. wolfgl-sdm" Exec exec wolfgl-sdm -width 800 -height 600
  332. + "&11. wolfgl-wl11" Exec exec wolfgl-wl1 -width 800 -height 600
  333. + "&12. Stella" Exec exec stella
  334. + "&13. Gfceux" Exec exec gfceux
  335. DestroyMenu MenuFvwmAudio
  336. AddToMenu MenuFvwmAudio "$[gt.Audio Menu]" Title
  337. + "&1. Gnome-alsamixer" Exec exec gnome-alsamixer
  338. + "&2. Audacious" Exec exec audacious
  339. + "&3. Audacity" Exec exec audacity
  340. + "&4. Alsamixer" Exec exec urxvt -e alsamixer
  341. + "&5. Gnome-volume-control" Exec exec gnome-volume-control
  342. + "&6. AlsaPlayer" Exec exec alsaplayer
  343. + "&7. Mmp" Exec exec mmp
  344. + "&8. Moc" Exec exec xterm -e mocp -T transparent-background
  345. + "&9. Exaile" Exec exec exaile
  346. + "&10. Sound Converter" Exec exec soundconverter
  347. + "&11. Asunder" Exec exec asunder
  348.  
  349. DestroyMenu MenuFvwmVideo
  350. AddToMenu MenuFvwmVideo "$[gt.Video Menu]" Title
  351. + "&. Camorama" Exec exec LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so camorama
  352. + "&. Devede" Exec exec devede
  353. + "&. Gnome-Mplayer" Exec exec gnome-mplayer
  354. + "&. Xine" Exec exec xine
  355.  
  356. DestroyMenu MenuFvwmFtp
  357. AddToMenu MenuFvwmFtp "$[gt.Ftp Menu]" Title
  358. + "&. Gftp" Exec exec gftp
  359. + "&. ftp" Exec exec urxvt -e ftp
  360.  
  361. DestroyMenu MenuFvwmUtil
  362. AddToMenu MenuFvwmUtil "$[gt.Utilidad]" Title
  363. + "&. File-roller" Exec exec file-roller
  364. + "&. nitrogen" Exec exec nitrogen /home/dexter4/GNUstep/Library/WindowMaker/Backgrounds
  365. + "&. Opera" Exec exec opera
  366. + "&. Gwget" Exec exec gwget
  367. + "&. Geany" Exec exec geany
  368. + "&. xfburn" Exec exec xfburn
  369. + "&. gnome-system-monitor" Exec exec gnome-system-monitor
  370. + "&. Pager" Module FvwmPager 0 3
  371. + "&. Kill Pager" KillModule FvwmPager
  372. + "" Nop
  373. + "&.Run Xcompmgr" Exec exec xcompmgr -c 1
  374. + "&.Kill Xcompmgr" Exec exec killall -9 xcompmgr
  375.  
  376. DestroyMenu MenuFvwmP2p
  377. AddToMenu MenuFvwmP2p "$[gt.P2p Menu]" Title
  378. + "&. aMule" Exec exec amule
  379. + "&. Nicotine" Exec exec nicotine
  380. + "&. Gtk-gnutella" Exec exec gtk-gnutella
  381. + "&. Transmission" Exec exec transmission-gtk
  382. + "&. Tucan" Exec exec tucan
  383. + "&. Linuxdcpp" Exec exec linuxdcpp
  384. DestroyMenu MenuFvwmUtilities
  385. AddToMenu MenuFvwmUtilities "$[gt.Utilities]" Title
  386. + "&T. Top" Exec exec urxvt -T Top -n Top -e top
  387. + "&C. Calculator" Exec exec xcalc
  388. + "&M. Xman" Exec exec xman
  389. + "&G. Xmag" Exec exec xmag
  390. + "&R. Xnetload" Exec exec xnetload -i eth0
  391. + "" Nop
  392. + "&L. Xscreensaver" Exec exec xscreensaver-command -lock
  393. + "" Nop
  394. + "&D. $[gt.Reset X defaults]" Exec xrdb -load $HOME/.Xdefaults
  395. + "&F. $[gt.Refresh Screen]" Refresh
  396. + "&C. $[gt.Recapture Screen]" Recapture
  397. #deactivate autofocus
  398. DestroyFunc UrgencyFunc
  399.  
  400. #autostart
  401. #AddToFunc StartFunction I Test (Init) Exec exec numlockx
  402. #AddToFunc StartFunction I Test (Init) Exec exec xscreensaver
  403.  
  404. DestroyFunc StartFunction
  405. AddToFunc StartFunction
  406. + I Module FvwmBanner
  407. + I Module FvwmPager 0 3
  408. + I Test (Init) Exec exec autocutsel
  409. + I Test (Init) Exec exec xcompmgr -c 1
  410. + I Test (Init) Exec exec nitrogen --restore
  411. + I Test (Init) Exec exec trayer --transparent true --edge top --distance 5 --widthtype request --width 100 --alpha 250 --tint blue --SetDockType false
  412. + I Test (Init) Exec exec rclock geometry 80x80+0+0 -bg \#a0a0a0
  413. + I Test (Init) Exec exec xload -geometry 80x80+0+90 -update 3 -fg black -bg \#a0a0a0
  414.  
  415. #######################################################
  416. ### .fvwm2rc END
  417. #######################################################
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement