SHARE
TWEET

Untitled

a guest Oct 17th, 2019 94 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ############################################################################
  2. # Se7en's <se7en@cock.email> Big Blue-Steel Desktop
  3. # (Forked from Eric S. Raymond <esr@thyrsus.com> http://www.tuxedo.org/~esr)
  4. #
  5. # $Id: .fvwm2rc,v 1.13 1998/12/21 05:11:05 esr Exp esr $
  6. # Last edited: Fri Aug 23 03:56:38 UTC 2019
  7. #
  8. # An uncluttered desktop design for serious hacking, using tiled
  9. # windows on a 21" 1600x1200 monitor.
  10.  
  11. # This configuration sets up a one-row toolbar in the lower left hand
  12. # corner (xterm, emacs, netscape, swallowed xclock, swallowed xbiff,
  13. # swallowed xload, swallowed xeyes).  You may want to uncomment the
  14. # fvwm-reset button while tuning it. There is an icon box area above
  15. # the toolbar sufficent for two rows of standard xterm icons.  These
  16. # font sizes have been carefully chosen to make optimal use of screen
  17. # space; they're the largest ones that will fit 160 columns of text on
  18. # a 1600-pixel-wide display without overlap.  The 16-pixel font goes
  19. # to Emacs, on the assumption that the Emacs window will usually
  20. # contain large amounts of complex text and therefore needs the edge
  21. # in size and readability.  No pager (with this big a screen, who
  22. # needs one?).  No window list (that's what the mouse and border
  23. # decorations are for). SloppyFocus and a 25msec AutoRaise so focus
  24. # changes if you linger in a window other than root.  Simple menus --
  25. # the root menu carries nearly everything.
  26.  
  27. # I use this with `xearth -pos "orbit 3 70" -label -nomarkers -night
  28. # 40 &' set up as a background in my .xinitrc, and nothing else in
  29. # there besides the fvwm2 startup. I also recommend replacing the ugly
  30. # default xbiff bitmaps with the following resource lines:
  31. #
  32. #   xbiff*flip:false
  33. #   xbiff*fullPixmap:mailfull
  34. #   xbiff*emptyPixmap:mailempty
  35. #   xbiff*fullPixmapMask:mailfullmsk
  36. #   xbiff*emptyPixmapMask:mailemptymsk
  37. #   xbiff*shapeWindow:true
  38. #
  39. # You may also find you need to set
  40. #
  41.     Netscape.Navigator.geometry: =750x1030+0+0
  42. #
  43. # as some versions of Netscape don't do -geometry, despite their docs.
  44. #
  45. ############################################################################
  46.  
  47. # FvwmButtons
  48. #
  49. *FvwmButtonsFore Black
  50. *FvwmButtonsBack SteelBlue3
  51. *FvwmButtonsFont -adobe-helvetica-bold-r-*-*-18-*-*-*-*-*-*-*
  52. *FvwmButtonsGeometry +0-0
  53. *FvwmButtonsRows 1
  54.  
  55. #*FvwmButtons Restart   fvwm.xpm    Restart
  56. *FvwmButtons Xterm  /usr/share/pixmaps/fvwm/xterm-linux.xpm Exec "xterm" xterm &
  57. *FvwmButtons Emacs  /usr/share/pixmaps/fvwm/gnu-animal.xpm  Exec "Emacs" xterm -geometry =80x30+0+0 -T Emacs -n Emacs -e emacs &
  58. *FvwmButtons Icecat /usr/share/pixmaps/icecat.xpm Exec "Netscape" netscape -geometry =750x1030+0+0 &
  59. *FvwmButtons Files  /usr/share/pixmaps/mc.xpm Exec xterm -geometry =127x44 -T "Midnight Commander" -n mc -e mc &
  60. *FvwmButtons(Swallow XClock 'Exec xclock -fg white -bg SteelBlue3 &')
  61. *FvwmButtons(Swallow XBiff 'Exec xbiff -bg SteelBlue3 &')
  62. *FvwmButtons(Swallow(UseOld,NoKill) "xload" \
  63.     `Exec xload -title xload -bg SteelBlue3 -update 3 -nolabel &`)
  64. *FvwmButtons(Swallow XEyes 'Exec xeyes -center LightGrey &')
  65.  
  66.  
  67.  # FvwmButtons icon launcher:
  68.    DestroyFunc Launcher
  69.    AddToFunc Launcher
  70.    + I DestroyModuleConfig $0Launch: *
  71.    + I *$0Launch: Geometry 64x68
  72.    + I *$0Launch: Columns 1
  73.    + I *$0Launch: Rows    4
  74.    + I *$0Launch: Frame   0
  75.    + I *$0Launch: (1x3+0+0, Icon $1, Action (Mouse 1) `Exec $2`)
  76.    + I *$0Launch: Pixmap none
  77.    + I *$0Launch: (1x1+0+3, Font 9x15, Fore White, Back DarkBlue, \
  78.                   Title $0, Action (Mouse 1) `Exec $2`)
  79.    + I Style $0Launch HandleWidth 0, NoTitle
  80.    + I Module FvwmButtons $3 $0Launch
  81.  
  82.    Launcher Weechat /usr/share/pixmaps/weechat.xpm "xterm -geometry =80x24 -T Weechat -n Weechat -e weechat" "-g +0+0"
  83.    Launcher GNUSocial /usr/share/pixmaps/fvwm/gnu-animal.xpm "yaics" "-g +0+100"
  84.    Launcher Wolf /usr/local/games/enemy-territory/ET.xpm "et" "-g +0+200"
  85.    Launcher Doom /usr/share/icons/freedoom2.png "doom" "-g +0+300
  86.    Launcher Tor /usr/share/pixmaps/tor.xpm "torbrowser-launcher" "-g +0+400"
  87.    Launcher Surf /usr/share/pixmaps/surf.xpm "surf -ns https://searx.neocities.org/" "-g +0+500"
  88.    Launcher BBS /usr/share/pixmaps/fvwm/rterm.xpm "torify syncterm" "-g +0+600"
  89. #Launcher Xman /usr/share/pixmaps/fvwm/xman.xpm "xman" "-g +0+700"
  90.    
  91. ##############################################################################
  92. # MENU Setup
  93. #
  94.  
  95. # This defines the most common window operations
  96. AddToMenu Window-Ops    "Window Ops"    Title
  97. +                       "Move"          Move-or-Raise2
  98. +                       "Resize"        Resize-or-Raise2
  99. +                       "Raise"         Raise
  100. +                       "Lower"         Lower
  101. +                       "(De)Iconify"   Iconify
  102. +                       "(Un)Stick"     Stick
  103. +                       "(Un)Maximize"  maximize_func
  104. +                       ""              Nop
  105. +                       "Delete"        Delete
  106. +                       "Close"         Close
  107. +                       "Destroy"       Destroy
  108. +                       ""              Nop
  109. +                       "Refresh Screen" Refresh
  110.  
  111. # A trimmed down version of "Window Ops", good for binding to decorations
  112. AddToMenu Window-Ops2   "Move"          Move-or-Raise
  113. +                       "Resize"        Resize-or-Raise
  114. +                       "Raise/Lower"   RaiseLower
  115. +                       "Iconify"       Iconify
  116. +                       "(Un)Stick"     Stick
  117. +                       ""              Nop
  118. +                       "Delete"        Delete
  119. +                       "Close"         Close
  120. +                       "Destroy"       Destroy
  121. +                       ""              Nop
  122. +                       "ScrollBar"     Module FvwmScroll 2 2
  123. +                       "Print"         PrintFunction
  124.  
  125. # This is the root menu
  126. AddToMenu RootMenu "Root Menu"  Title
  127. +   "Xterm"         exec xterm &
  128. +   "Small Browser"     exec netscape -geometry =640x480 &
  129. +   "Onion Browser"     exec torbrowser-launcher &
  130. +   "Surf"          exec surf https://searx.me &
  131. +   "Surf (No Javascript)"  exec surf -ns https://searx.me &
  132. +   "Xpenguins"     exec xpenguins &
  133. +   ""          Nop # Line Divider
  134. +   "Restart Fvwm2"     Restart fvwm2
  135. +   "Exit Fvwm"     Quit
  136.  
  137. ############################################################################
  138. # COLORS and FONTS
  139. #
  140. # Set the fore and back border colors for the window that has focus
  141. HilightColor        linen Red3
  142.  
  143. # Set fore/back border colors for all other windows
  144. Style "*" Color linen/SteelBlue3
  145.  
  146. # Set colors/font for pop-up menus
  147. # Syntax: MenuStyle forecolor backcolor shadecolor font style(fvwm/mwm)
  148. MenuStyle black grey slategrey -adobe-times-bold-r-*-*-18-*-*-*-*-*-*-* fvwm
  149.  
  150. # Set fonts to use on title bar and icon label
  151. WindowFont              -adobe-helvetica-bold-r-*-*-14-*-*-*-*-*-*-*
  152. IconFont                -adobe-helvetica-bold-r-*-*-14-*-*-*-*-*-*-*
  153.  
  154. ############################################################################
  155. # MISC Setup
  156. #
  157. # Uncomment this to make windows auto-raise after [x] milliseconds
  158. Module FvwmAuto 25
  159.  
  160. # Auto Place Icons is a nice feature (Left Top Right Bottom)
  161. Style "*" IconBox 0 1030 750 1550
  162.  
  163. # Keep the last focus while in root window
  164. Style "*" SloppyFocus
  165.  
  166. # Click/release must occur in <n milliseconds to be a "click"
  167. ClickTime 250
  168.  
  169. # I have fast graphics, so always do opaque moves
  170. OpaqueMoveSize 100
  171.  
  172. # Suppress the pager DeskTopSize 1 1
  173.  
  174. ############################################################################
  175. # WINDOW Placement
  176. #
  177. # SmartPlacement makes new windows pop-up in blank regions of screen
  178. # This is only good if you have room though, else it will overlap.
  179. Style "*" SmartPlacement
  180.  
  181. # If SmartPlacement fails, this places it randomly instead of making you do it
  182. Style "*" RandomPlacement
  183.  
  184. ############################################################################
  185. # STYLE Flag Setup
  186. #
  187. # (decorations and window options)
  188. # Note: Order is important!! If compatible styles are set, styles are ORed
  189. # together. If conflicting styles are set, the last one specified is used.
  190.  
  191. # change the default width, set a global icon, and give borders to popups
  192. Style "*" BorderWidth 7, HandleWidth 7, Icon x.xpm, DecorateTransient
  193.  
  194. Style "Fvwm*"       NoTitle, Sticky, WindowListSkip, NoHandles, BorderWidth 0
  195. Style "*lock"       NoTitle, Sticky, WindowListSkip
  196. Style "xbiff"       NoTitle, Sticky, WindowListSkip
  197. Style "xload"       NoTitle, Sticky, WindowListSkip, ClickToFocus
  198. Style "*term"       Icon xterm-linux.xpm
  199. Style "xman"        Icon xman.xpm
  200. Style "emacs"       NoPPosition, NoTitle, NoHandles, BorderWidth 5, Icon gnu-animal.xpm
  201.  
  202. #############################################################################
  203. # START-UP Functions
  204. #
  205. AddToFunc "InitFunction" "I" Module FvwmButtons
  206. +       "I" Next [!iconic CurrentScreen xterm] Focus
  207. +       "I" CursorMove 30 40
  208.  
  209. AddToFunc "RestartFunction" "I" Module FvwmButtons
  210. +       "I" Next [!iconic CurrentScreen xterm] Focus
  211. +       "I" CursorMove 30 40
  212.  
  213. ############################################################################
  214. # COMPLEX FUNCTIONS
  215. #
  216. AddToFunc Move-or-Raise     "I" Raise
  217. +               "M" Move
  218. +               "D" Lower
  219.  
  220. AddToFunc Move-or-Raise2        "M" Raise
  221. +               "M" Move
  222. +               "D" Lower
  223.  
  224. # This maximize percentage gives a 64-line window and leaves the
  225. # icons and toolbar unobscured (100 gives 77 lines)
  226. AddToFunc Maximize-Func         "C" Maximize     0 85
  227. +                               "D" Maximize     100 100
  228.  
  229. AddToFunc Move-or-Iconify       "I" Raise
  230. +                               "M" Move
  231. +                               "D" Iconify
  232.  
  233. AddToFunc Resize-or-Raise       "I" Raise
  234. +                               "M" Resize
  235. +                               "D" Lower
  236.  
  237. AddToFunc Resize-or-Raise2      "M" Raise
  238. +                               "M" Resize
  239. +                               "D" Lower
  240.  
  241. AddToFunc PrintFunction         "I" Raise
  242. +                               "I" Exec xdpr -id $w
  243.  
  244. AddToFunc Iconify-and-Raise     "I" Iconify
  245. +                               "I" Raise
  246.  
  247. ############################################################################
  248. # MOUSE Setup
  249. #
  250. # First, the root window. Button 1 brings up the Main Menu. B2 is the
  251. # window operations list, and B3 is the winlist module
  252. #     Button    Context Modifi  Function
  253. Mouse 1     R       A       Menu RootMenu Nop
  254. Mouse 2     R       A       Menu Window-Ops Nop
  255. Mouse 3     R       A       WindowList
  256.  
  257. # Now, title bar buttons
  258. # Left button is the Window-Ops2 menu, right is iconify, rightmost is maximize
  259. #     Button    Context Modifi  Function
  260. Mouse 0     1       A       Menu Window-Ops2 Close
  261. Mouse 0     2       A       Maximize-Func
  262. Mouse 0     4       A       Iconify
  263.  
  264. # Button 1 in Frame or Sides is a resize-or-raise, in Icons is a move or
  265. # de-iconify, and on Top does a move-or-raise
  266. #     Button    Context Modifi  Function
  267. Mouse 1     FS      A       Resize-or-Raise
  268. Mouse 1     I       A       Move-or-Iconify
  269. Mouse 1     T       A       Move-or-Raise
  270.  
  271. # Button 2 in an Icon is de-iconify, in Corners/Sides/Titlebar gets Ops Menu
  272. #     Button    Context Modifi  Function
  273. Mouse 2     I       A       Iconify
  274. Mouse 2     FST     A       Menu Window-Ops2 Nop
  275.  
  276. # Button 3 does a raise-lower on anything
  277. Mouse 3     TSIF    A       RaiseLower
  278.  
  279. ############################################################################
  280. # KEYBOARD Setup
  281. #
  282. # press shift arrow + control anywhere, and move the pointer by 1% of a page
  283. Key Left    A   SC  CursorMove -1  +0
  284. Key Right   A   SC  CursorMove +1  +0
  285. Key Up      A   SC  CursorMove +0  -1
  286. Key Down    A   SC  CursorMove +0  +1
  287.  
  288. # press shift arrow + meta key, and move the pointer by 1/10 of a page
  289. Key Left    A   SM  CursorMove -10  +0
  290. Key Right   A   SM  CursorMove +10  +0
  291. Key Up      A   SM  CursorMove +0  -10
  292. Key Down    A   SM  CursorMove +0  +10
  293.  
  294. # Keyboard accelerators
  295. Key F1      A   MC  Popup "RootMenu"
  296. Key F2      A   MC  Popup "Window-Ops"
  297. Key F3      A   MC  Iconify
  298. Key F4      A   MC  Move
  299. Key F5      A   MC  Resize
  300. Key F6      A   MC  Next [*] focus
  301. Key F7      A   MC  Prev [*] focus
  302.  
  303. # .fvwm2rc ends here.
  304. ############################################################################
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top