Advertisement
kondratyev

Untitled

Nov 11th, 2016
559
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 22.48 KB | None | 0 0
  1. ##################################
  2. #  ____________________________
  3. # (   _________________________)
  4. #  ) (__  _  _  _    _
  5. # (   __)( \/ )( \/\/ )/\/\
  6. #  ) (    \  /  \    //    \
  7. # (___)    \/    \/\/(_/\/\_) 2.6
  8. #
  9. #
  10. #  This is the default configuration file shipped with fvwm.
  11. #
  12. #  This config file is organized as follows:
  13. #
  14. #    1: Functions
  15. #    2: Styles
  16. #    3: Colorsets
  17. #    4: Menus
  18. #    5: Bindings
  19. #    6: Decor
  20. #    7: Modules
  21. #
  22. #################################
  23.  
  24. # InfoStoreAdd can be used to store variable data internal to fvwm.
  25. # The variable can then be used in the configuration as $[infostore.name].
  26. #
  27. # You can also use environment variables but for data internal to fvwm
  28. # use InfoStore variables instead.
  29. #
  30. # The following is used in various menus and also sets the terminal
  31. # that FvwmConsole uses. Change this to your terminal of choice
  32. InfoStoreAdd terminal xterm
  33.  
  34. ###########
  35. # 1: Functions
  36. #
  37. # Fvwm can use custom functions for various tasks.
  38. # The syntax for defining a function named FunctionName is:
  39. #
  40. #   DestroyFunc FunctionName
  41. #   AddToFunc FunctionName
  42. #   + I [Action to do Immediately]
  43. #   + C [Action to do on a Mouse Click]
  44. #   + D [Action to do on a Mouse Double Click]
  45. #   + H [Action to do on a Mouse Hold]
  46. #   + M [Action to do on a Mouse Motion]
  47. ###########
  48.  
  49. # Start Function
  50. #
  51. # The start function is run right after fvwm is done reading
  52. # the config file. This function run after each restart
  53. # so using Test (Init) or Test (Restart) can further control
  54. # actions that are run during the first time run (Init) or
  55. # actions that are run after a restart.
  56. DestroyFunc StartFunction
  57. AddToFunc   StartFunction
  58. + I Test (Init, f $[FVWM_USERDIR]/.BGdefault) \
  59.     Exec exec fvwm-root $[FVWM_USERDIR]/.BGdefault
  60. + I TestRc (NoMatch) Exec exec fvwm-root \
  61.     $[FVWM_DATADIR]/default-config/images/background/bg1.png
  62. + I Test (Init) Module FvwmBanner
  63. + I Module FvwmButtons RightPanel
  64. + I Module FvwmEvent EventNewDesk
  65.  
  66. # Function: MoveClickX $0 $1 $2
  67. #
  68. # This function runs variable actions on different events
  69. # and is used with the mouse bindings to allow different
  70. # actions depending on if the mouse is clicked, double clicked
  71. # or moved. Use "Nop" for no action.
  72. #
  73. #   $0 - Action on Mouse Hold + Move
  74. #   $1 - Action on Mouse Click
  75. #   $2 - Action on Mouse DoubleClick
  76. #
  77. #  Example: Mouse 1 T A MoveClickX Move Raise Maximize
  78. #
  79. #  Click title bar to raise, double click to maximize,
  80. #  and click+move to move the window.
  81. DestroyFunc MoveClickX
  82. AddToFunc   MoveClickX
  83. + M $0
  84. + C $1
  85. + D $2
  86.  
  87. # Function: ViewManPage $0
  88. #
  89. # This function loads the man page $0 in an terminal
  90. # and is used with the help menu.
  91. DestroyFunc ViewManPage
  92. AddToFunc   ViewManPage
  93. + I Exec exec $[infostore.terminal] -g 80x40 \
  94.   -n "Manual Page - $0" -T "Manual Page - $0" -e man "$0"
  95.  
  96. # Function: SetBG $0
  97. #
  98. # SetBG is used with the background menu to set the background
  99. # image and configure it to be loaded the next time fvwm is run.
  100. # Note, fvwm-root can't use .jpeg or resize images. Use something
  101. # like display, feh, etc.
  102. DestroyFunc SetBG
  103. AddToFunc   SetBG
  104. + I Test (f $[FVWM_USERDIR]/images/background/$0) \
  105.     Exec exec fvwm-root $[FVWM_USERDIR]/images/background/$0
  106. + I TestRc (Match) Exec exec ln -fs images/background/$0 \
  107.     $[FVWM_USERDIR]/.BGdefault
  108. + I TestRc (Match) Break
  109. + I Test (!f $[FVWM_DATADIR]/default-config/images/background/$0) Break
  110. + I Exec exec fvwm-root $[FVWM_DATADIR]/default-config/images/background/$0
  111. + I Exec exec ln -fs $[FVWM_DATADIR]/default-config/images/background/$0 \
  112.     $[FVWM_USERDIR]/.BGdefault
  113.  
  114.  
  115. # Function: IconManClick
  116. #
  117. # This function is run from FvwmIconMan when the button is clicked.
  118. DestroyFunc IconManClick
  119. AddToFunc   IconManClick
  120. + I ThisWindow (Raised, !Shaded, !Iconic, CurrentPage) Iconify
  121. + I TestRc (Match) Break
  122. + I ThisWindow (!Raised) Raise
  123. + I ThisWindow (Shaded) WindowShade
  124. + I ThisWindow (Iconic) Iconify
  125. + I ThisWindow (AcceptsFocus) FlipFocus
  126.  
  127. # Function: ToggleTitle
  128. #
  129. # This function will toggle if fvwm shows the TitleBar.
  130. DestroyFunc ToggleTitle
  131. AddToFunc   ToggleTitle
  132. + I ThisWindow (State 1) WindowStyle Title
  133. + I TestRc (Match) State 1 False
  134. + I TestRc (Match) Break
  135. + I WindowStyle !Title
  136. + I State 1 True
  137.  
  138. # Function: ChangeDesk
  139. #
  140. # This function is called by FvwmEvent every time the Desk is changed.
  141. DestroyFunc ChangeDesk
  142. AddToFunc   ChangeDesk
  143. + I SendToModule FvwmButtons ChangeButton desk0 Colorset 10
  144. + I SendToModule FvwmButtons ChangeButton desk1 Colorset 10
  145. + I SendToModule FvwmButtons ChangeButton desk2 Colorset 10
  146. + I SendToModule FvwmButtons ChangeButton desk3 Colorset 10
  147. + I SendToModule FvwmButtons ChangeButton desk$0 Colorset 11
  148.  
  149.  
  150. #############
  151. # 2: Styles #
  152. #############
  153.  
  154. # Desktops and Pages
  155. #
  156. # Fvwm has both Virtual Desktops and Pages. Each Desktop is built from
  157. # a grid of Pages. The following sets the name of four Desktops and then
  158. # divides each Desktop into a 2x2 grid of Pages that are positioned as
  159. #
  160. #   +---+---+
  161. #   |   |   |
  162. #   +---+---+
  163. #   |   |   |
  164. #   +---+---+
  165. #
  166. DesktopName 0 Main
  167. DesktopName 1 Desk1
  168. DesktopName 2 Desk2
  169. DesktopName 3 Desk3
  170. DesktopSize 2x2
  171.  
  172. # EdgeScroll will move the view port between the Pages when the mouse
  173. # moves to the edge of the screen. This set the amount of distance to
  174. # scroll at 100% (full page) and the EdgeResistance which is a timer
  175. # for how long the mouse as at the edge before it scrolls.
  176. #
  177. # Set EdgeScroll 0 0 and/or EdgeResistance -1 to disable.
  178. EdgeScroll 100 100
  179. EdgeResistance 450
  180. EdgeThickness 1
  181. Style * EdgeMoveDelay 350, EdgeMoveResistance 350
  182.  
  183. # EwmhBaseStruts [left] [right] [top] [bottom]
  184. # Reserves space along the edge(s) of the Screen that will not
  185. # be covered when maximizing or placing windows.
  186. EwmhBaseStruts 0 120 0 0
  187.  
  188. # This sets the ClickTime and MoveThreshold used to determine
  189. # Double Clicks, Hold and Move for the mouse.
  190. ClickTime 350
  191. MoveThreshold 3
  192.  
  193. # Sets the focus style to SloppyFocus and a mouse click
  194. # in a window will Raise it.
  195. Style * SloppyFocus, MouseFocusClickRaises
  196.  
  197. # Default Font
  198. DefaultFont "xft:Sans:Bold:size=8:antialias=True"
  199.  
  200. # Window Placement
  201. Style * TileCascadePlacement, GrabFocusOff, !UsePPosition
  202.  
  203. # Sets all windows to OpaqueMove (vs a wired frame) and  windows will
  204. # snap to each other and the edge of the screen.
  205. OpaqueMoveSize -1
  206. HideGeometryWindow
  207. Style * ResizeOpaque, SnapAttraction 15 SameType ScreenAll, SnapGrid
  208. XorValue 55555
  209.  
  210. # Transient Windows (such as open file windows)
  211. Style * DecorateTransient, StackTransientParent
  212. Style * !FPGrabFocusTransient, FPReleaseFocusTransient
  213.  
  214. # WindowShade
  215. Style * WindowShadeScrolls, WindowShadeSteps 10
  216.  
  217. # Ignore Numlock and other modifiers for bindings
  218. # See http://fvwm.org/documentation/faq/#why-do-numlock-capslock-and-scrolllock-interfere-with-clicktofocus-andor-my-mouse-bindings
  219. IgnoreModifiers L25
  220.  
  221. # Decor Styles
  222. Style * BorderWidth 5, HandleWidth 5, MWMButtons, \
  223.     FvwmBorder, FirmBorder, UseDecor FvwmDecor
  224. Style * Colorset 1, HilightColorset 2
  225. Style * BorderColorset 3, HilightBorderColorset 4
  226.  
  227. # Disable Icons from appearing on desktop.
  228. # Comment this out or use Style * Icon to get the icons back.
  229. Style * !Icon
  230.  
  231. # Window Specific Styles
  232. Style RightPanel !Title, !Borders, !Handles, Sticky, WindowListSkip, NeverFocus
  233. Style ConfirmQuit !Title, PositionPlacement Center, WindowListSkip, Layer 6
  234. Style FvwmIdent WindowListSkip
  235.  
  236. #######
  237. # 3: Colorsets
  238. #
  239. # Colorsets can be used to configure the color of the various
  240. # parts of fvwm such as window decor, menus, modules, etc.
  241. #
  242. # Colorset Convention
  243. #
  244. #   0 - Default
  245. #   1 - Inactive Windows
  246. #   2 - Active Window
  247. #   3 - Inactive Windows Borders
  248. #   4 - Active Windows Borders
  249. #   5 - Menu - Inactive Item
  250. #   6 - Menu - Active Item
  251. #   7 - Menu - Grayed Item
  252. #   8 - Menu - Title
  253. #   9 - Reserved
  254. #  10+ Modules
  255. #      10 - Module Default
  256. #      11 - Module Hilight
  257. #      12 - Module ActiveButton (Mouse Hover)
  258. #      13 - FvwmPager Active Page
  259. ###########
  260. Colorset 0  fg #ffffff, bg #003c3c, hi, sh, Plain, NoShape
  261. Colorset 1  fg #000000, bg #8f9f8f, hi, sh, Plain, NoShape
  262. Colorset 2  fg #ffffff, bg #003c3c, hi, sh, Plain, NoShape
  263. Colorset 3  fg black, bg #4d4d4d, hi #676767, sh #303030, Plain, NoShape
  264. Colorset 4  fg black, bg #2d2d2d, hi #474747, sh #101010, Plain, NoShape
  265. Colorset 5  fg #000000, bg #ffffff, hi, sh, Plain, NoShape
  266. Colorset 6  fg #ffffff, bg #2d2d2d, hi, sh, Plain, NoShape
  267. Colorset 7  fg grey30, bg #ffffff, hi, sh, Plain, NoShape
  268. Colorset 8  fg #ffffff, bg #003c3c, hi, sh, Plain, NoShape
  269. Colorset 10 fg #ffffff, bg #003c3c, hi #aaaaaa, sh #999999, Plain, NoShape
  270. Colorset 11 fg #ffffff, bg #1a6e99, hi #ffffff, sh #ffffff, Plain, NoShape
  271. Colorset 12 fg #2d2d2d, bg #ffffff, hi, sh, Plain, NoShape
  272. Colorset 13 fg #ffffff, bg #006c6c, hi, sh, Plain, NoShape
  273.  
  274. #######
  275. # 4: Menus
  276. ###########
  277. MenuStyle * MenuColorset 5, ActiveColorset 6, GreyedColorset 7, TitleColorset 8
  278. MenuStyle * Hilight3DOff, HilightBack, HilightTitleBack, SeparatorsLong
  279. MenuStyle * TrianglesSolid, TrianglesUseFore
  280. MenuStyle * ItemFormat "%|%3.1i%5.3l%5.3>%|"
  281. MenuStyle * Font "xft:Sans:Bold:size=8:antialias=True"
  282.  
  283. # Root Menu
  284. #
  285. # The root menu will PopUp with a click in the root
  286. # window or using alt-f1 (or menu).
  287. DestroyMenu MenuFvwmRoot
  288. AddToMenu   MenuFvwmRoot "Fvwm" Title
  289. + "Programs%icons/programs.png%" Popup MenuPrograms
  290. + "XDG Menu%icons/apps.png%" Popup XDGMenu
  291. + "XTerm%icons/terminal.png%" Exec exec $[infostore.terminal]
  292. + "" Nop
  293. + "FvwmConsole%icons/terminal.png%" Module FvwmConsole -terminal $[infostore.terminal]
  294. + "Wallpapers%icons/wallpaper.png%" Popup BGMenu
  295. + "Man Pages%icons/help.png%" Popup MenuFvwmManPages
  296. + "Copy Config%icons/conf.png%" FvwmScript FvwmScript-ConfirmCopyConfig
  297. + "" Nop
  298. + "Refresh%icons/refresh.png%" Refresh
  299. + "Restart%icons/restart.png%" Перезавантажити
  300. + "Quit%icons/quit.png%" Module FvwmScript FvwmScript-ConfirmQuit
  301.  
  302. # Generate XDGMenu
  303. PipeRead "fvwm-menu-desktop"
  304.  
  305. # Programs Menu
  306. #
  307. # This test for some common programs and adds them to the menu.
  308. # When adding programs you don't need to use the Test (x foo)
  309. # lines as this is only to help make this menu portable.
  310. DestroyMenu MenuPrograms
  311. AddToMenu   MenuPrograms "Programs" Title
  312. Test (x chromium) + "Chromium" Exec exec chromium
  313. Test (x firefox) + "Firefox" Exec exec firefox
  314. Test (x google-chrome) + "Google-Chrome" Exec exec google-chrome
  315. Test (x gvim) + "gVim" Exec exec gvim
  316. Test (x xemacs) + "XEmacs" Exec exec xemacs
  317. Test (x gimp) + "Gimp" Exec exec gimp
  318. Test (x subl) + "Subline Text 3" Exec exec subl
  319. Test (x Telegram) + "Telegram" Exec exec Telegram
  320. Test (x skype) + "Skype" Exec exec skype
  321. # Background Menu
  322. #
  323. # Backgrounds are located in ~/.fvwm/images/background/
  324. # Menu icons are located in ~/.fvwm/images/bgicons/
  325. DestroyMenu BGMenu
  326. AddToMenu   BGMenu "Wallpapers" Title
  327. + "Floral%bgicons/bg1.png%" SetBG bg1.png
  328. + "Circles%bgicons/bg2.png%" SetBG bg2.png
  329. + "Space%bgicons/bg3.png%" SetBG bg3.png
  330.  
  331. # Window Operations Menus
  332. DestroyMenu MenuWindowOps
  333. AddToMenu   MenuWindowOps
  334. + "Move"      Ïåðåì³ñòèòè
  335. + "Resize"    Çì³íèòè ðîçì³ð
  336. + "Iconify"   Çãîðíóòè
  337. + "Maximize"  Ðîçãîðíóòè
  338. + "Shade"     WindowShade
  339. + "Stick"     Stick
  340. + "" Nop
  341. + "Close"     Çàêðèòè
  342. + "More..."   Menu MenuWindowOpsLong This 0 0
  343.  
  344. DestroyMenu MenuWindowOpsLong
  345. AddToMenu   MenuWindowOpsLong
  346. + "Перемістити"                Move
  347. + "Resize"              Resize
  348. + "(De)Iconify"         Iconify
  349. + "(Un)Maximize"        Maximize
  350. + "(Un)Shade"           WindowShade
  351. + "(Un)Sticky"      Stick
  352. + "(No)TitleBar"    Pick (CirculateHit) ToggleTitle
  353. + "Send To Desk"        Popup MenuSendToDesk
  354. + "" Nop
  355. + "Закрити"               Close
  356. + "Destroy"             Destroy
  357. + "" Nop
  358. + "Raise"       Raise
  359. + "Lower"       Lower
  360. + "" Nop
  361. + "StaysOnTop"          Pick (CirculateHit) Layer 0 6
  362. + "StaysPut"            Pick (CirculateHit) Layer 0 4
  363. + "StaysOnBottom"       Pick (CirculateHit) Layer 0 2
  364. + "" Nop
  365. + "Identify"            Module FvwmIdent
  366.  
  367. DestroyMenu MenuIconOps
  368. AddToMenu   MenuIconOps
  369. + "(De)Iconify"         Iconify
  370. + "(Un)Maximize"        Maximize
  371. + "(Un)Shade"           WindowShade
  372. + "(Un)Sticky"      Stick
  373. + "(No)TitleBar"    Pick (CirculateHit) ToggleTitle
  374. + "Відправити на стільницюcp"        Popup MenuSendToDesk
  375. + "" Nop
  376. + "Закрити"               Close
  377. + "Вбити"             Destroy
  378. + "" Nop
  379. + "Raise"       Raise
  380. + "Lower"       Lower
  381. + "" Nop
  382. + "StaysOnTop"          Pick (CirculateHit) Layer 0 6
  383. + "StaysPut"            Pick (CirculateHit) Layer 0 4
  384. + "StaysOnBottom"       Pick (CirculateHit) Layer 0 2
  385. + "" Nop
  386. + "Identify"            Module FvwmIdent
  387.  
  388. DestroyMenu MenuSendToDesk
  389. AddToMenu   MenuSendToDesk
  390. + "Current" MoveToDesk
  391. + "Desk 0"  MoveToDesk 0 0
  392. + "Desk 1"  MoveToDesk 0 1
  393. + "Desk 2"  MoveToDesk 0 2
  394. + "Desk 3"  MoveToDesk 0 3
  395.  
  396. # Fvwm Man Pages (Help) Menu
  397. DestroyMenu MenuFvwmManPages
  398. AddToMenu   MenuFvwmManPages "Help" Title
  399. + "fvwm"                ViewManPage fvwm
  400. + "FvwmAnimate"         ViewManPage FvwmAnimate
  401. + "FvwmAuto"            ViewManPage FvwmAuto
  402. + "FvwmBacker"          ViewManPage FvwmBacker
  403. + "FvwmBanner"          ViewManPage FvwmBanner
  404. + "FvwmButtons"         ViewManPage FvwmButtons
  405. + "FvwmCommand"         ViewManPage FvwmCommand
  406. + "FvwmConsole"         ViewManPage FvwmConsole
  407. + "FvwmEvent"           ViewManPage FvwmEvent
  408. + "FvwmForm"            ViewManPage FvwmForm
  409. + "FvwmIconMan"         ViewManPage FvwmIconMan
  410. + "FvwmIdent"           ViewManPage FvwmIdent
  411. + "FvwmPager"           ViewManPage FvwmPager
  412. + "FvwmPerl"            ViewManPage FvwmPerl
  413. + "FvwmProxy"           ViewManPage FvwmProxy
  414. + "FvwmRearrange"       ViewManPage FvwmRearrange
  415. + "FvwmScript"          ViewManPage FvwmScript
  416. + "" Nop
  417. + "fvwm-root"           ViewManPage fvwm-root
  418. + "fvwm-menu-desktop"   ViewManPage fvwm-menu-desktop
  419. + "fvwm-menu-directory" ViewManPage fvwm-menu-directory
  420. + "fvwm-menu-headlines" ViewManPage fvwm-menu-headlines
  421. + "fvwm-menu-xlock"     ViewManPage fvwm-menu-xlock
  422. + "fvwm-config"         ViewManPage fvwm-config
  423.  
  424. #######
  425. # 5: Mouse and Key bindings
  426. #
  427. # Contexts:
  428. #     R = Root Window                 rrrrrrrrrrrrrrrrrrrrrr
  429. #     W = Application Window          rIrrrr<---------^rrrrr
  430. #     F = Frame Corners               rrrrrr[13TTTT642]rrrrr
  431. #     S = Frame Sides                 rIrrrr[wwwwwwwww]rrrrr
  432. #     T = Title Bar                   rrrrrr[wwwwwwwww]rrrrr
  433. #     I = Icon                        rIrrrrv_________>rrrrr
  434. #                                     rrrrrrrrrrrrrrrrrrrrrr
  435. #
  436. #     Numbers are buttons: [1 3 5 7 9  TTTTT  0 8 6 4 2]
  437. #
  438. # Modifiers: (A)ny, (C)ontrol, (S)hift, (M)eta, (N)othing
  439. #
  440. # Format: Key <X>  <Context> <Modifier> <Action>
  441. #         Mouse <X> <Context> <Modifier> <Action>
  442. ####################
  443.  
  444. # Alt-F1 or Menu to load the root menu and Alt-Tab for a WindowList.
  445. # Ctrl-F1/F2/F3/F4 will switch between the Virtual Desktops.
  446. # Super_R (windows key) will launch a terminal.
  447. #
  448. # Silent supresses any errors (such as keyboards with no Menu key).
  449. Silent Key F1 A M Menu MenuFvwmRoot
  450. Silent Key Menu A A Menu MenuFvwmRoot
  451. Silent Key Tab A M WindowList Root c c NoDeskSort, SelectOnRelease Meta_L
  452. Silent Key F1 A C GotoDesk 0 0
  453. Silent Key F2 A C GotoDesk 0 1
  454. Silent Key F3 A C GotoDesk 0 2
  455. Silent Key F4 A C GotoDesk 0 3
  456. Silent Key Super_R A A Exec exec $[infostore.terminal]
  457.  
  458. # Window Buttons: [1 3 5 7 9  TTTTT  0 8 6 4 2]
  459. #   1 - Open the WindowOps menu.
  460. #   2 - Close on single click, Destory on double click.
  461. #   4 - Maximize (right/middle button will only maximize vertical/horizontal)
  462. #   6 - Iconify (minimize)
  463. Mouse 1 1 A Menu MenuWindowOps
  464. Mouse 1 2 A MoveClickX Nop Close Destroy
  465. Mouse 1 4 A Maximize 100 100
  466. Mouse 2 4 A Maximize 0 100
  467. Mouse 3 4 A Maximize 100 0
  468. Mouse 1 6 A Iconify
  469.  
  470. #   TitleBar: Click to Raise, Move, Double Click to Maximize
  471. #             Mouse Wheel Up/Down to WindowShade On/Off
  472. #   Borders: Click to raise, Move to Resize
  473. #   Root Window: Left Click - Main Menu
  474. #                Right Click - WindowOps Menu
  475. #                Middle Click - Window List Menu
  476. #   Right click TitleBar/Borders for WindowOps Menu
  477. Mouse 1 T    A MoveClickX Move Raise Maximize
  478. Mouse 1 FS   A MoveClickX Resize Raise Nop
  479. Mouse 4 T    A MoveClickX Nop Raise "WindowShade True"
  480. Mouse 5 T    A MoveClickX Nop Raise "WindowShade False"
  481. Mouse 1 R    A Menu MenuFvwmRoot
  482. Mouse 2 R    A WindowList
  483. Mouse 3 R    A Menu MenuWindowOpsLong
  484. Mouse 1 I    A MoveClickX Move Nop Iconify
  485. Mouse 3 T    A Menu MenuWindowOps
  486. Mouse 3 I    A Menu MenuIconOps
  487.  
  488. #######
  489. # 6: Window Decor
  490. #
  491. # Buttons Locations: [1 3 5 7 9  TTTTT  0 8 6 4 2]
  492. #
  493. #   1 - WindowOps Menu
  494. #   2 - Close
  495. #   4 - Maximize
  496. #   6 - Minimize
  497. ###########
  498. DestroyDecor FvwmDecor
  499. AddToDecor   FvwmDecor
  500. + TitleStyle Centered Height 18 -- Flat
  501. + ButtonStyle All ActiveUp Vector 5 15x15@4 15x85@3 85x85@3 85x15@3 15x15@3 -- Flat
  502. + ButtonStyle All ToggledActiveUp Vector 5 15x15@4 15x85@3 85x85@3 85x15@3 15x15@3 -- Flat
  503. + ButtonStyle All ActiveDown Vector 5 20x20@4 20x80@3 80x80@3 80x20@3 20x20@3 -- Flat
  504. + ButtonStyle All ToggledActiveDown Vector 5 20x20@4 20x80@3 80x80@3 80x20@3 20x20@3 -- Flat
  505. + ButtonStyle All ToggledInactive Vector 5 47x47@3 57x53@3 53x53@3 53x47@3 47x47@3 -- Flat
  506. + ButtonStyle All Inactive Vector 5 47x47@3 57x53@3 53x53@3 53x47@3 47x47@3 -- Flat
  507. + AddButtonStyle 1 Active Vector 5 45x45@3 55x45@3 55x55@3 45x55@3 45x45@3
  508. + AddButtonStyle 2 Active Vector 4 35x35@3 65x65@3 65x35@4 35x65@3
  509. + AddButtonStyle 4 Active Vector 8 30x70@3 30x30@3 70x30@3 70x70@3 30x70@3 \
  510.         30x50@4 50x50@3 50x70@3
  511. + AddButtonStyle 4 ToggledActiveUp Vector 8 30x70@3 30x30@3 70x30@3 70x70@3 30x70@3 \
  512.         50x30@4 50x50@3 70x50@3
  513. + AddButtonStyle 6 Active Vector 5 35x60@3 65x60@3 65x50@3 35x50@3 35x60@3
  514. + ButtonStyle All - Clear
  515. + ButtonStyle 1 - MwmDecorMenu
  516. + ButtonStyle 4 - MwmDecorMax
  517. + ButtonStyle 6 - MwmDecorMin
  518.  
  519. ############
  520. # 7: Modules
  521. #############
  522.  
  523. # FvwmIdent
  524. #
  525. # FvwmIdent is a module that can be used to get the various info about
  526. # a window. One use is getting the class/resource/name of a window.
  527. DestroyModuleConfig FvwmIdent:*
  528. *FvwmIdent: Colorset 10
  529. *FvwmIdent: Font "xft:Sans:size=10:antialias=True"
  530.  
  531. # FvwmBanner
  532. #
  533. # This displays the Fvwm Logo for 5 seconds. This is displayed
  534. # when fvwm starts.
  535. DestroyModuleConfig FvwmBanner:*
  536. *FvwmBanner: NoDecor
  537. *FvwmBanner: Timeout 5
  538.  
  539. # FvwmScript
  540. #
  541. # FvwmScript is a module that allows one to write custom desktop
  542. # widgets and various other tools. This config uses two FvwmScripts.
  543. #   - DateTime - uses the output of "date" to display the date/time
  544. #     on the RightPanel.
  545. #   - Quit - This is a popup that asks for quit confirmation before
  546. #     quitting fvwm.
  547. DestroyModuleConfig FvwmScript:*
  548. *FvwmScript: DefaultColorset 10
  549.  
  550. # FvwmButtons - RightPanel
  551. #
  552. # FvwmButtons is a powerful module that can be used to build custom
  553. # panels and docks. This config uses FvwmButtons to build the RightPanel.
  554. # The panel contains buttons to switch desks, FvwmPager, a system tray,
  555. # FvwmIconMan (list of running windows), and a clock.
  556. #
  557. # Note - To use the system tray you must have "stalonetray" installed.
  558. DestroyModuleConfig RightPanel:*
  559. *RightPanel: Geometry 120x$[vp.height]-0+0
  560. *RightPanel: Colorset 10
  561. *RightPanel: Rows $[vp.height]
  562. *RightPanel: Columns 120
  563. *RightPanel: Frame 0
  564. *RightPanel: Font "xft:Sans:Bold:size=10:antialias=True"
  565. *RightPanel: (120x45, Icon "fvwm-logo-small.png", Frame 0)
  566. *RightPanel: (120x5, Frame 0)
  567. *RightPanel: (10x20, Frame 0)
  568. *RightPanel: (25x20, Id desk0, Title "0", Action (Mouse 1) GotoDesk 0 0, Colorset 11, ActiveColorset 12, Frame 0)
  569. *RightPanel: (25x20, Id desk1, Title "1", Action (Mouse 1) GotoDesk 0 1, ActiveColorset 12, Frame 0)
  570. *RightPanel: (25x20, Id desk2, Title "2", Action (Mouse 1) GotoDesk 0 2, ActiveColorset 12, Frame 0)
  571. *RightPanel: (25x20, Id desk3, Title "3", Action (Mouse 1) GotoDesk 0 3, ActiveColorset 12, Frame 0)
  572. *RightPanel: (10x20, Frame 0)
  573. *RightPanel: (5x80, Frame 0)
  574. *RightPanel: (110x80, Swallow FvwmPager 'Module FvwmPager *', Frame 0)
  575. *RightPanel: (5x80, Frame 0)
  576. *RightPanel: (120x5, Frame 0)
  577. Test (x stalonetray) *RightPanel: (120x20, Swallow(NoClose,UseOld) \
  578.     stalonetray 'Exec exec stalonetray --config \
  579.    "$[FVWM_DATADIR]/default-config/.stalonetrayrc"', Frame 0)
  580. Test (x stalonetray) PipeRead 'echo "*RightPanel: (120x$(($[vp.height]-225)), \
  581.    Top, Swallow FvwmIconMan \'Module FvwmIconMan\', Frame 0)"'
  582. Test (!x stalonetray) PipeRead 'echo "*RightPanel: (120x$(($[vp.height]-205)),\
  583.     Top, Swallow FvwmIconMan \'Module FvwmIconMan\', Frame 0)"'
  584. *RightPanel: (120x45, Swallow DateTime 'Module FvwmScript FvwmScript-DateTime',\
  585.    Frame 0)
  586. *RightPanel: (120x5, Frame 0)
  587.  
  588. # FvwmPager
  589. #
  590. # This module displays the location of the windows on the various Pages
  591. # and Desks. This is setup to show only the Pages on the current Desk.
  592. DestroyModuleConfig FvwmPager:*
  593. *FvwmPager: Colorset * 10
  594. *FvwmPager: HilightColorset * 13
  595. *FvwmPager: BalloonColorset * 10
  596. *FvwmPager: WindowColorsets 10 11
  597. *FvwmPager: Font None
  598. *FvwmPager: Balloons All
  599. *FvwmPager: BalloonFont "xft:Sans:Bold:size=8:antialias=True"
  600. *FvwmPager: BallonYOffset +2
  601. *FvwmPager: Window3dBorders
  602. *FvwmPager: MiniIcons
  603.  
  604. # FvwmIconMan
  605. #
  606. # FvwmIconMan is a powerful tool to list and manage windows. This
  607. # is used as the window list in the panel or taskbar.
  608. DestroyModuleConfig FvwmIconMan:*
  609. *FvwmIconMan: UseWinList true
  610. *FvwmIconMan: ButtonGeometry 120x20
  611. *FvwmIconMan: Colorset 10
  612. *FvwmIconMan: FocusColorset 11
  613. *FvwmIconMan: FocusAndSelectColorset 12
  614. *FvwmIconMan: SelectColorset 12
  615. *FvwmIconMan: IconAndSelectColorset 12
  616. *FvwmIconMan: DrawIcons always
  617. *FvwmIconMan: ReliefThickness 0
  618. *FvwmIconMan: Format "%t"
  619. *FvwmIconMan: Font "xft:Sans:Bold:size=8:antialias=True"
  620. *FvwmIconMan: Action Mouse 1 A sendcommand IconManClick
  621. *FvwmIconMan: Action Mouse 2 A sendcommand Nop
  622. *FvwmIconMan: Action Mouse 3 A sendcommand "Menu MenuIconOps"
  623. *FvwmIconMan: Resolution global
  624. *FvwmIconMan: Tips needed
  625. *FvwmIconMan: Sort id
  626.  
  627. # FvwmEvent
  628. #
  629. # FvwmEvent is a module that can run an action or function
  630. # on specific events. This instance changes which desk number
  631. # is highlighted when the desk is changed.
  632. DestroyModuleConfig EventNewDesk:*
  633. *EventNewDesk: PassID
  634. *EventNewDesk: new_desk ChangeDesk
  635.  
  636. # FvwmForm
  637. #
  638. # FvwmForm is a module that can be used to build a GUI
  639. # form. Used with fvwm-menu-desktop-config.fpl.
  640. # This sets the default colorsets.
  641. *FvwmFormDefault: Colorset 10
  642. *FvwmFormDefault: ItemColorset 13
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement