wyatt8740

fvwmrc

Feb 27th, 2022
448
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 49.34 KB | None | 0 0
  1.  
  2. ##################################
  3. # ____________________________
  4. # ( _________________________)
  5. # ) (__ _ _ _ _
  6. # ( __)( \/ )( \/\/ )/\/\
  7. # ) ( \ / \ // \
  8. # (___) \/ \/\/(_/\/\_) 1.x / 2.6 / 3 hybrid config (Wyatt Ward)
  9. #
  10. #
  11. #
  12. # This config file is (largely) 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. # 8: Misc. Addendum
  22. #
  23. #################################
  24.  
  25. # InfoStoreAdd can be used to store variable data internal to fvwm.
  26. # The variable can then be used in the configuration as $[infostore.name].
  27. #
  28. # You can also use environment variables but for data internal to fvwm
  29. # use InfoStore variables instead.
  30. #
  31. # The following is used in various menus and also sets the terminal
  32. # that FvwmConsole uses. Change this to your terminal of choice
  33. # InfoStoreAdd terminal x-terminal-emulator
  34. InfoStoreAdd terminal xterm
  35.  
  36. ###########
  37. # 0: Move IgnoreModifiers before any possible "exec's"
  38. # Ignore Numlock and other modifiers for bindings
  39. # See http://fvwm.org/documentation/faq/#why-do-numlock-capslock-and-scrolllock-interfere-with-clicktofocus-andor-my-mouse-bindings
  40. IgnoreModifiers L25
  41.  
  42. # Remove "UrgencyFunc" which raises windows automatically (XChat when getting a
  43. # name mention or other alert).
  44. DestroyFunc UrgencyFunc
  45.  
  46. ###########
  47. # 1: Functions
  48. #
  49. # Fvwm can use custom functions for various tasks.
  50. # The syntax for defining a function named FunctionName is:
  51. #
  52. # DestroyFunc FunctionName
  53. # AddToFunc FunctionName
  54. # + I [Action to do Immediately]
  55. # + C [Action to do on a Mouse Click]
  56. # + D [Action to do on a Mouse Double Click]
  57. # + H [Action to do on a Mouse Hold]
  58. # + M [Action to do on a Mouse Motion]
  59. ###########
  60.  
  61. # Start Function
  62. #
  63. # The start function is run right after fvwm is done reading
  64. # the config file. This function run after each restart
  65. # so using Test (Init) or Test (Restart) can further control
  66. # actions that are run during the first time run (Init) or
  67. # actions that are run after a restart.
  68.  
  69. DestroyFunc StartFunction
  70. AddToFunc StartFunction
  71. #+ I Test (F $[FVWM_USERDIR]/.BGdefault) \
  72. + I Test (Init, f $[FVWM_USERDIR]/.BGdefault) \
  73. Exec exec /usr/bin/env hsetroot -tile $[FVWM_USERDIR]/.BGdefault
  74. + I TestRc (NoMatch) Exec exec /usr/bin/env hsetroot -tile \
  75. $[FVWM_DATADIR]/default-config/images/background/bg1.png
  76. + I Module FvwmEvent EventNewDesk
  77. # Enable FvwmCommand shell command (run server which creates an fifo)
  78. # FVWM2 only; use FvwmMFL for FVWM3
  79. # + I Module FvwmCommandS
  80. + I Module FvwmMFL
  81. + I Module FvwmButtons
  82. # Background wallpaper setup
  83. # (using hsetroot since xsetroot doesn't work well with my compositor (Compton)
  84. + I Exec exec /usr/bin/env hsetroot -tile $[FVWM_USERDIR]/.BGdefault
  85.  
  86. # *FvwmButtons: (Title bright, Action (Mouse 1) `Exec exec /etc/acpi/actions/toggle-thinklight-or-tablet-lcd.sh` )
  87.  
  88. # Start mcomix maximized
  89. DestroyModuleConfig FE-startMaximized: *
  90. *FE-startMaximized: Cmd Function
  91. *FE-startMaximized: add_window StartMaximized
  92.  
  93. Module FvwmEvent FE-startMaximized
  94.  
  95.  
  96. # start mcomix and seamonkey (only browser windows, or 'navigator' resources)
  97. # maximized.
  98. DestroyFunc StartMaximized
  99. AddToFunc StartMaximized
  100. + I ThisWindow ("MComix", !Maximized) ToggleBordersMaximize
  101. + I ThisWindow ("MComix", Maximized) WindowStyle !Borders
  102. + I ThisWindow ("Navigator", Maximized) Maximize ewmhiwa # unmaximize
  103. + I ThisWindow ("Chromium", Maximized) Maximize ewmhiwa # unmaximize
  104. + I ThisWindow ("Glide64mk2") Maximize ewmhiwa
  105. + I ThisWindow ("Glide64mk2") WindowStyle !Title
  106. + I ThisWindow ("Glide64mk2") WindowStyle !Borders
  107. + I ThisWindow ("Krita") Maximize ewmhiwa
  108. + I ThisWindow ("Run a command") WindowStyle StaysOnTop
  109. + I ThisWindow ("Run a command") MoveToScreen
  110. + I ThisWindow ("Wyatt_RunDlg") WindowStyle StaysOnTop
  111. + I ThisWindow ("Wyatt_RunDlg") MoveToScreen
  112. + I ThisWindow ("GrafX2", !Maximized) ToggleBordersMaximize
  113. + I ThisWindow ("GrafX2", Maximized) WindowStyle !Borders
  114. + I UpdateStyles
  115. + I ThisWindow RefreshWindow # synchronize states
  116. + I ThisWindow ("Navigator") ToggleBordersMaximize
  117. + I ThisWindow ("Chromium") ToggleBordersMaximize
  118.  
  119.  
  120.  
  121. # + I ThisWindow ("Krita") WindowStyle !Title
  122. # + I ThisWindow ("Krita") WindowStyle !Borders
  123.  
  124. # Remove window borders when maximized (besides the titlebar)
  125. DestroyFunc ToggleBordersMaximize
  126. AddToFunc ToggleBordersMaximize
  127. # + I Current (Maximized) BorderMax
  128. + I Current (Maximized) WindowStyle Borders
  129. + I TestRc (NoMatch) WindowStyle !Borders
  130. + I UpdateStyles
  131. + I RefreshWindow
  132. + I Maximize ewmhiwa growonwindowlayer
  133.  
  134. DestroyFunc ThisToggleBordersMaximize
  135. AddToFunc ThisToggleBordersMaximize
  136. # + I Current (Maximized) BorderMax
  137. + I ThisWindow (Maximized) WindowStyle Borders
  138. + I TestRc (NoMatch) WindowStyle !Borders
  139. + I UpdateStyles
  140. + I RefreshWindow
  141. + I Maximize ewmhiwa growonwindowlayer
  142. # + I Current (Maximized) WindowStyle !Borders
  143.  
  144. DestroyFunc ToggleBorders
  145. AddToFunc ToggleBorders
  146. + I Current (State 2) WindowStyle Borders
  147. + I TestRc (Match) State 2 False
  148. + I TestRc (Match) Break
  149. + I Current WindowStyle !Borders
  150. + I State 2 True
  151.  
  152. #+ I Current (HasHandles) WindowStyle !Borders
  153. #+ I TestRc (NoMatch) Current WindowStyle Borders
  154. #+ I UpdateStyles
  155. #+ I RefreshWindow
  156. ## + I Current (!HasHandles) WindowStyle Borders
  157.  
  158. DestroyFunc ThisToggleBorders
  159. AddToFunc ThisToggleBorders
  160. + I ThisWindow (State 2) WindowStyle Borders
  161. + I TestRc (Match) State 2 False
  162. + I TestRc (Match) Break
  163. + I ThisWindow WindowStyle !Borders
  164. + I State 2 True
  165. # + I ThisWindow (HasHandles) WindowStyle Borders
  166. # + I TestRc (NoMatch) ThisWindow WindowStyle !Borders
  167. # + I UpdateStyles
  168. # + I RefreshWindow
  169. # # + I ThisWindow (!HasHandles) WindowStyle Borders
  170.  
  171. # Instead of using the default (Layer 0 4), I also want windows that I make
  172. # to "stay put" stay visible but lose their "on top"-ness. So I need to raise
  173. # the window above others in the default layer after changing the layer of
  174. # said window.
  175. DestroyFunc StayPutFunc
  176. AddToFunc StayPutFunc
  177. + I Layer 0 4
  178. + I Raise
  179.  
  180. # Toggle 'full screen'
  181. DestroyFunc FullScreenMax
  182. AddToFunc FullScreenMax
  183. + I Current (Maximized) WindowStyle Borders
  184. + I TestRc (NoMatch) WindowStyle !Borders
  185. + I Current (Maximized) WindowStyle Title
  186. + I TestRc (NoMatch) WindowStyle !Title
  187. + I UpdateStyles
  188. + I RefreshWindow
  189. + I Current (Maximizable) Maximize ewmhiwa
  190.  
  191. DestroyFunc ThisFullScreenMax
  192. AddToFunc ThisFullScreenMax
  193. + I ThisWindow (Maximized) WindowStyle Borders
  194. + I TestRc (NoMatch) WindowStyle !Borders
  195. + I ThisWindow (Maximized) WindowStyle Title
  196. + I TestRc (NoMatch) WindowStyle !Title
  197. + I UpdateStyles
  198. + I RefreshWindow
  199. + I ThisWindow (Maximizable) Maximize ewmhiwa
  200.  
  201. DestroyFunc UnMaxAddBorders
  202. AddToFunc UnMaxAddBorders
  203. + I WindowStyle Borders
  204. + I Maximize forget
  205.  
  206. DestroyFunc UnMaxRemBorders
  207. AddToFunc UnMaxRemBorders
  208. + I WindowStyle !Borders
  209. + I Maximize forget
  210.  
  211. # Mouse Bindings Functions
  212. DestroyFunc RaiseMoveX
  213. AddToFunc RaiseMoveX
  214. + I Raise
  215. + M Maximize forget
  216. + M WindowStyle Borders
  217. + M $0
  218. + D $1
  219.  
  220. DestroyFunc RaiseMove
  221. AddToFunc RaiseMove
  222. + I Raise
  223. + M $0
  224.  
  225. DestroyFunc MoveToCurrent
  226. AddToFunc MoveToCurrent
  227. + I ThisWindow MoveToPage
  228. + I ThisWindow MoveToDesk
  229.  
  230. # Function: ViewManPage $0
  231. #
  232. # This function loads the man page $0 in an terminal
  233. # and is used with the help menu.
  234. DestroyFunc ViewManPage
  235. AddToFunc ViewManPage
  236. + I Exec exec uxterm -g 80x40 \
  237. -n "Manual Page - $0" -T "Manual Page - $0" -e man "$0"
  238.  
  239. # Function: SetBG $0
  240. #
  241. # SetBG is used with the background menu to set the background
  242. # image and configure it to be loaded the next time fvwm is run.
  243. # Note, fvwm-root can't use .jpeg or resize images. Use something
  244. # like display, feh, etc.
  245. DestroyFunc SetBG
  246. AddToFunc SetBG
  247. + I Test (f $[FVWM_USERDIR]/images/background/$0) \
  248. Exec exec hsetroot -tile $[FVWM_USERDIR]/images/background/$0
  249. + I TestRc (Match) Exec exec ln -fs images/background/$0 \
  250. $[FVWM_USERDIR]/.BGdefault
  251. + I TestRc (Match) Break
  252. + I Test (!f $[FVWM_DATADIR]/default-config/images/background/$0) Break
  253. + I Exec exec hsetroot -tile $[FVWM_DATADIR]/default-config/images/background/$0
  254. # + I Exec exec fvwm-root $[FVWM_DATADIR]/default-config/images/background/$0
  255. + I Exec exec ln -fs $[FVWM_DATADIR]/default-config/images/background/$0 \
  256. $[FVWM_USERDIR]/.BGdefault
  257.  
  258. # Version for 2560px screens that uses the hsetroot -extend option instead.
  259. # Obviously this is only good for one session, as currently set up.
  260. # So we don't update our symlink (for now).
  261. # I only need this mode when I'm faking a higher resolution on my
  262. # 1280x800 laptop (double resolution).
  263. DestroyFunc SetBGExtend
  264. AddToFunc SetBGExtend
  265. + I Test (f $[FVWM_USERDIR]/images/background/$0) \
  266. Exec exec hsetroot -extend $[FVWM_USERDIR]/images/background/$0
  267. + I TestRc (Match) Break
  268. + I Test (!f $[FVWM_DATADIR]/default-config/images/background/$0) Break
  269. + I Exec exec hsetroot -extend $[FVWM_DATADIR]/default-config/images/background/$0
  270. # + I Exec exec fvwm-root $[FVWM_DATADIR]/default-config/images/background/$0
  271.  
  272. # Function: IconManClick#
  273. # This function is run from FvwmIconMan when the button is clicked.
  274. DestroyFunc IconManClick
  275. AddToFunc IconManClick
  276. + I ThisWindow (Raised, !Shaded, !Iconic, CurrentPage) Iconify
  277. + I TestRc (Match) Break
  278. + I ThisWindow WindowShade off
  279. + I ThisWindow Iconify off
  280. + I ThisWindow Raise
  281. + I ThisWindow (AcceptsFocus) FlipFocus
  282.  
  283. # Function: ToggleTitle
  284. #
  285. # This function will toggle if fvwm shows the TitleBar.
  286. DestroyFunc ToggleTitle
  287. AddToFunc ToggleTitle
  288. + I ThisWindow (State 1) WindowStyle Title
  289. + I TestRc (Match) State 1 False
  290. + I TestRc (Match) Break
  291. + I WindowStyle !Title
  292. + I State 1 True
  293.  
  294. # Function: ChangeDesk
  295. #
  296. # This function is called by FvwmEvent every time the Desk is changed.
  297. DestroyFunc ChangeDesk
  298. AddToFunc ChangeDesk
  299. + I SendToModule FvwmButtons ChangeButton desk0 Colorset 10
  300. + I SendToModule FvwmButtons ChangeButton desk1 Colorset 10
  301. + I SendToModule FvwmButtons ChangeButton desk2 Colorset 10
  302. + I SendToModule FvwmButtons ChangeButton desk3 Colorset 10
  303. + I SendToModule FvwmButtons ChangeButton desk$0 Colorset 11
  304.  
  305.  
  306. #############
  307. # 2: Styles #
  308. #############
  309.  
  310. # Desktops and Pages
  311. #
  312. # Fvwm has both Virtual Desktops and Pages. Each Desktop is built from
  313. # a grid of Pages. The following sets the name of four Desktops and then
  314. # divides each Desktop into a 2x2 grid of Pages that are positioned as
  315. #
  316. # +---+---+
  317. # | | |
  318. # +---+---+
  319. # | | |
  320. # +---+---+
  321. #
  322. DesktopName 0 Main
  323. DesktopName 1 Desk1
  324. DesktopName 2 Desk2
  325. DesktopName 3 Desk3
  326. # DesktopSize 2x2
  327. DesktopSize 1x1
  328.  
  329. # EdgeScroll will move the view port between the Pages when the mouse
  330. # moves to the edge of the screen. This set the amount of distance to
  331. # scroll at 100% (full page) and the EdgeResistance which is a timer
  332. # for how long the mouse as at the edge before it scrolls.
  333. #
  334. # Set EdgeScroll 0 0 and/or EdgeResistance -1 to disable.
  335. #EdgeScroll 100 100
  336. #EdgeResistance 450
  337. EdgeResistance -1
  338. #EdgeThickness 1
  339. EdgeThickness 0
  340.  
  341. #xclock does not get a titlebar (use alt-shift-rightclick to set options and
  342. # alt-drag to move)
  343. # keep on current desk, no matter which desk is being viewed
  344. # No titlebar on the window
  345. # No borders on the window
  346. # Keep on top (alt-shift-rightclick to get in the menu to turn off)
  347. Style "xclock" Sticky, !Title, !Borders, StaysOnTop
  348.  
  349. Style "XCal" Sticky, !Title, !Borders, StaysOnTop
  350.  
  351. # tray - stalonetray
  352. Style "stalonetray" Sticky
  353. Style "stalonetray" !Borders
  354. Style "stalonetray" !Title
  355.  
  356. #Style * EdgeMoveDelay 350, EdgeMoveResistance 350
  357.  
  358. # EwmhBaseStruts [left] [right] [top] [bottom]
  359. # Reserves space along the edge(s) of the Screen that will not
  360. # be covered when maximizing or placing windows.
  361. # (margins)
  362. # EwmhBaseStruts 0 120 0 0
  363.  
  364. # This sets the ClickTime and MoveThreshold used to determine
  365. # Double Clicks, Hold and Move for the mouse.
  366. ClickTime 250
  367. MoveThreshold 3
  368.  
  369. # Sets the focus style to SloppyFocus and a mouse click
  370. # in a window will Raise it.
  371. Style * ClickToFocus, MouseFocusClickRaises
  372.  
  373. # when a window is destroyed, focus the previous one automatically
  374. # from archwiki copypaste
  375. # DestroyFunc Focus-Previous
  376. # AddToFunc Focus-Previous
  377. # + I All ($0, Focused) FlipFocus $1
  378. # + I TestRc (NoMatch) Prev ($0, AcceptsFocus) FlipFocus $1
  379.  
  380. # Wine needs this I think
  381. Style * Lenience
  382. #Style * Leniency
  383.  
  384. # Default Font
  385. #DefaultFont "xft:Sans:Bold:size=8:antialias=True"
  386. # previously, size 12 worked for some reason. Now I need 11. (shrug)
  387. # DefaultFont "xft:IBM 3161:size=12:antialias=false"
  388. # tahoma
  389. #DefaultFont "xft:Tahoma:size=8:antialias=false,xft:MS UI Gothic:size=8:antialias=false"
  390. DefaultFont "xft:MS UI Gothic:size=8:antialias=false"
  391. # WindowFont "xft:Tahoma:size=8:bold:antialias=false"
  392. # WindowFont is the old deprecated syntax, switch to newer one
  393.  
  394. # ugh, have to use ms ui gothic because tahoma won't work with cjk and FVWM won't fix itself
  395. Style * Font "StringEncoding=UTF-8:xft:MS UI Gothic:size=9:bold:antialias=false,xft:Tahoma:size=8:bold:antialias=false"
  396.  
  397. #Style * Font "xft:Tahoma:size=8:bold:antialias=false","xft:MS UI Gothic:size=8:antialias=false"
  398. #Style * Font "xft:MS UI Gothic:size=8:antialias=false"
  399. Style WindoList
  400.  
  401. # Window Placement
  402. # I like grabbing focus
  403. #Style * MinOverlapPlacement, GrabFocusOff, !UsePPosition
  404. #Style * MinOverlapPlacement, !UsePPosition
  405. # I also like gimp to work
  406. Style * MinOverlapPlacement
  407.  
  408. # Sets all windows to OpaqueMove (vs a wired frame) and windows will
  409. # snap to each other and the edge of the screen.
  410. OpaqueMoveSize unlimited
  411. #Style * ResizeOpaque, SnapAttraction 15 SameType ScreenAll, SnapGrid
  412. Style * ResizeOpaque
  413. # Transient Windows (such as open file windows)
  414. Style * DecorateTransient, StackTransientParent
  415.  
  416. #Style * !FPGrabFocusTransient, FPReleaseFocusTransient
  417. Style * FPGrabFocusTransient, FPReleaseFocusTransient
  418.  
  419. # WindowShade
  420. Style * WindowShadeScrolls, WindowShadeSteps 10
  421.  
  422. # Decor Styles
  423. #Style * BorderWidth 5, HandleWidth 5, MWMButtons, FvwmBorder, FirmBorder
  424. Style * BorderWidth 5, HandleWidth 5, MWMButtons, MwmBorder, MwmDecor, MwmFunctions
  425. *Style * Colorset 1, HilightColorset 2
  426.  
  427. # Disable Icons from appearing on desktop.
  428. # Comment this out or use Style * Icon to get the icons back.
  429. # Style * !Icon
  430.  
  431. # Window Specific Styles
  432. # Style RightPanel !Title, !Borders, !Handles, Sticky, \
  433. # WindowListSkip, NeverFocus
  434. Style ConfirmQuit !Title, PositionPlacement Center, WindowListSkip, Layer 6
  435. # Style FvwmIdent WindowListSkip
  436.  
  437.  
  438. Style FvwmButtons !Title, !Borders, !Handles, Sticky, \
  439. WindowListSkip, NeverFocus
  440.  
  441.  
  442. #######
  443. # 3: Colorsets
  444. #
  445. # Colorsets can be used to configure the color of the various
  446. # parts of fvwm such as window decor, menus, modules, etc.
  447. #
  448. # Colorset Convention
  449. #
  450. # 0 - Default
  451. # 1 - Inactive Windows
  452. # 2 - Active Window
  453. # 3 - Inactive Windows Borders
  454. # 4 - Active Windows Borders
  455. # 5 - Menu - Inactive Item
  456. # 6 - Menu - Active Item
  457. # 7 - Menu - Grayed Item
  458. # 8 - Menu - Title
  459. # 9 - Reserved
  460. # 10+ Modules
  461. # 10 - Module Default
  462. # 11 - Module Hilight
  463. # 12 - Module ActiveButton (Mouse Hover)
  464. # 13 - FvwmPager Active Page
  465. # 14 - FvwmIconMan Iconified Button
  466. ###########
  467. Colorset 0 fg #ffffff, bg #003c3c, hi, sh, Plain, NoShape
  468. Colorset 1 fg #000000, bg #b0b4c4, hi, sh, Plain, NoShape
  469. #Colorset 2 fg #ffffff, bg #003c3c, hi, sh, Plain, NoShape
  470. # pink background for CDE-like crimson theme window borders:
  471. # Colorset 2 fg #ffffff, bg #b44c7b, hi, sh, Plain, NoShape
  472. # a nice bluish-purple background for custom window borders (used for a long time, until august 2020)
  473. #Colorset 2 fg #ffffff, bg #574cb4, hi, sh, Plain, NoShape
  474. # darker blue
  475. Colorset 2 fg #ffffff, bg #35476b, hi, sh, Plain, NoShape
  476. # middling blue
  477. # Colorset 2 fg #ffffff, bg #3f5580, hi, sh, Plain, NoShape
  478. # relaxing blue background for custom window borders
  479. # Colorset 2 fg #ffffff, bg #4c70b4, hi, sh, Plain, NoShape
  480. # darker, purplish-blueish-gray. Very nice for a dark desktop.
  481. # Colorset 2 fg #ffffff, bg #4a4b70, hi, sh, Plain, NoShape
  482. # another dark blue, but pretty much no purple tint.
  483. # Colorset 2 fg #ffffff, bg #4a5b70, hi, sh, Plain, NoShape
  484. # boring gray. Good for not distracting the user
  485. # Colorset 2 fg #606060, bg #101010, hi, sh, Plain, NoShape
  486.  
  487. Colorset 3 fg black, bg #4d4d4d, hi #676767, sh #303030, Plain, NoShape
  488. Colorset 4 fg black, bg #2d2d2d, hi #474747, sh #101010, Plain, NoShape
  489. Colorset 5 fg #000000, bg #ffffff, hi, sh, Plain, NoShape
  490. Colorset 6 fg #ffffff, bg #2d2d2d, hi, sh, Plain, NoShape
  491. Colorset 7 fg grey30, bg #ffffff, hi, sh, Plain, NoShape
  492. Colorset 8 fg #ffffff, bg #003c3c, hi, sh, Plain, NoShape
  493. Colorset 10 fg #ffffff, bg #003c3c, hi #aaaaaa, sh #999999, Plain, NoShape
  494. Colorset 11 fg #ffffff, bg #1a6e99, hi #ffffff, sh #ffffff, Plain, NoShape
  495. Colorset 12 fg #2d2d2d, bg #ffffff, hi, sh, Plain, NoShape
  496. Colorset 13 fg #ffffff, bg #006c6c, hi, sh, Plain, NoShape
  497. Colorset 14 fg #555555, bg #003c3c, hi #aaaaaa, sh #999999, Plain, NoShape
  498.  
  499. # Used by MComix titlebars (see bottom, near the "Emulate Mwm" command)
  500. Colorset 15 fg #898989, bg #131313, hi, sh, Plain, NoShape
  501. # dolphin-emu
  502. Colorset 16 fg #606060, bg #101010, hi, sh, Plain, NoShape
  503. # icon backgrounds
  504. Colorset 17 fg #b0b0b0, bg #565861, hi, sh, Plain, NoShape
  505. #######
  506. # 4: Menus
  507. ###########
  508. #MenuStyle * MenuColorset 5, ActiveColorset 6, GreyedColorset 7, TitleColorset 8
  509. #MenuStyle * Hilight3DOff, HilightBack, HilightTitleBack, SeparatorsLong
  510. #MenuStyle * TrianglesSolid, TrianglesUseFore
  511. #MenuStyle * ItemFormat "%|%3.1i%5.3l%5.3>%|"
  512. MenuStyle * Mwm
  513. # MenuStyle * Font "xft:Sans:Bold:size=8:antialias=True"
  514. # tahoma
  515. MenuStyle * Font "xft:Microsoft Sans Serif:Regular:size=8:antialias=False,xft:MS UI Gothic:size=8:antialias=false"
  516. # CJK works
  517. #MenuStyle * Font "StringEncoding=UTF-8:xft:Hiragino Maru Gothic Pro:hinting=slight:size=9:antialias=false,xft:Tahoma:size=8:antialias=false"
  518. # MenuStyle * Font "-adobe-helvetica-medium-r-*-*-8-*-*-*-*-*-*-*"
  519.  
  520. # Root Menu
  521. #
  522. # The root menu will PopUp with a click in the root
  523. # window or using alt-f1 (or menu).
  524. ImagePath +:$HOME/.fvwm/images/icons
  525.  
  526. ImagePath +:$HOME/.fvwm/images
  527. DestroyMenu MenuFvwmRoot
  528. AddToMenu MenuFvwmRoot "Fvwm" Title
  529. + "&Programs%icons/programs.png%" Popup MenuPrograms
  530. + "XDG &Menu%icons/apps.png%" Popup XDGMenu
  531. + "&XTerm%icons/terminal.png%" Exec exec mate-terminal
  532. + "" Nop
  533. # + "Fvwm&Console%icons/terminal.png%" Module FvwmConsole -terminal uxterm
  534. + "Fvwm&Console%icons/terminal.png%" Exec exec mate-terminal -e /usr/bin/FvwmPrompt
  535. + "Put Windows &On Screen%icons/windowcascade.png%" All MoveToScreen
  536. + "&Wallpapers%icons/wallpaper.png%" Popup BGMenu
  537. + "Go To Desk" Popup MenuGoTo
  538. # + "Copy Config%icons/conf.png%" FvwmScript FvwmScript-ConfirmCopyConfig
  539. + "" Nop
  540. + "M&an Pages%icons/help.png%" Popup MenuFvwmManPages
  541. + "Re&fresh%icons/refresh.png%" Refresh
  542. + "&Restart FVWM%icons/restart.png%" Restart
  543. + "&Exit CDE%icons/quit.png%" Exec exec /usr/dt/bin/dtaction ExitSession
  544. + "&Quit%icons/quit.png%" Module FvwmScript FvwmScript-ConfirmQuit
  545.  
  546. # Generate XDGMenu
  547. PipeRead "fvwm-menu-desktop -e"
  548.  
  549. # Programs Menu
  550. #
  551. # This test for some common programs and adds them to the menu.
  552. # When adding programs you don't need to use the Test (x foo)
  553. # lines as this is only to help make this menu portable.
  554. DestroyMenu MenuPrograms
  555. AddToMenu MenuPrograms "Programs" Title
  556. Test (x seamonkey) + "Seamonkey" Exec exec seamonkey
  557. Test (x chromium) + "Chromium" Exec exec chromium
  558. Test (x firefox) + "Firefox" Exec exec firefox
  559. Test (x google-chrome) + "Google-Chrome" Exec exec google-chrome
  560. Test (x gvim) + "gVim" Exec exec gvim
  561. Test (x xemacs) + "XEmacs" Exec exec xemacs
  562. Test (x gimp) + "Gimp" Exec exec gimp
  563. Test (x vlc) + "VLC" Exec exec vlc
  564.  
  565. # Go To menu
  566. #
  567. # Go to desktop
  568. DestroyMenu MenuGoTo
  569. AddToMenu MenuGoTo
  570. + "Previous" GotoDesk -1 0 3
  571. + "Next" GotoDesk 1 0 3
  572. + "" Nop
  573. + "Desk 0" GotoDesk 0 0
  574. + "Desk 1" GotoDesk 0 1
  575. + "Desk 2" GotoDesk 0 2
  576. + "Desk 3" GotoDesk 0 3
  577.  
  578. # Background Menu
  579. #
  580. # Backgrounds are located in ~/.fvwm/images/background/
  581. # Menu icons are located in ~/.fvwm/images/bgicons/
  582. ImagePath +:$HOME/.fvwm/images/background
  583.  
  584. DestroyMenu BGEV1280
  585. AddToMenu BGEV1280
  586. + "Black%bgicons/eeveelution/eeveelution_color_black.png%" SetBG "1280/eeveelution_black_1280.png"
  587. + "White%bgicons/eeveelution/eeveelution_color_white.png%" SetBG "1280/eeveelution_white_1280.png"
  588. + "Brick Red%bgicons/eeveelution/eeveelution_color_brick_red.png%" SetBG "1280/eeveelution_brick_red_1280.png"
  589. + "Brown%bgicons/eeveelution/eeveelution_color_brown.png%" SetBG "1280/eeveelution_brown_1280.png"
  590. + "Burgundy%bgicons/eeveelution/eeveelution_color_burgundy.png%" SetBG "1280/eeveelution_burgundy_1280.png"
  591. + "Deep Red%bgicons/eeveelution/eeveelution_color_deep_red.png%" SetBG "1280/eeveelution_deep_red_1280.png"
  592. + "Evergreen%bgicons/eeveelution/eeveelution_color_evergreen.png%" SetBG "1280/eeveelution_evergreen_1280.png"
  593. + "Gray%bgicons/eeveelution/eeveelution_color_gray.png%" SetBG "1280/eeveelution_gray_1280.png"
  594. + "Indigo%bgicons/eeveelution/eeveelution_color_indigo.png%" SetBG "1280/eeveelution_indigo_1280.png"
  595. + "Rich Green%bgicons/eeveelution/eeveelution_color_rich-green.png%" SetBG "1280/eeveelution_rich-green_1280.png"
  596. + "Regal%bgicons/eeveelution/eeveelution_color_regal.png%" SetBG "1280/eeveelution_regal_1280.png"
  597. + "Purple%bgicons/eeveelution/eeveelution_color_purple.png%" SetBG "1280/eeveelution_purple_1280.png"
  598. + "Sensible Blue%bgicons/eeveelution/eeveelution_color_sensible_blue.png%" SetBG "1280/eeveelution_sensible_blue_1280.png"
  599. + "Teal%bgicons/eeveelution/eeveelution_color_teal.png%" SetBG "1280/eeveelution_teal_1280.png"
  600. + "Wintergreen%bgicons/eeveelution/eeveelution_color_wintergreen.png%" SetBG "1280/eeveelution_wintergreen_1280.png"
  601.  
  602. DestroyMenu BGEV1440
  603. AddToMenu BGEV1440
  604. + "Black%bgicons/eeveelution/eeveelution_color_black.png%" SetBG "1440/eeveelution_black_1440.png"
  605. + "White%bgicons/eeveelution/eeveelution_color_white.png%" SetBG "1440/eeveelution_white_1440.png"
  606. + "Brick Red%bgicons/eeveelution/eeveelution_color_brick_red.png%" SetBG "1440/eeveelution_brick_red_1440.png"
  607. + "Brown%bgicons/eeveelution/eeveelution_color_brown.png%" SetBG "1440/eeveelution_brown_1440.png"
  608. + "Burgundy%bgicons/eeveelution/eeveelution_color_burgundy.png%" SetBG "1440/eeveelution_burgundy_1440.png"
  609. + "Deep Red%bgicons/eeveelution/eeveelution_color_deep_red.png%" SetBG "1440/eeveelution_deep_red_1440.png"
  610. + "Evergreen%bgicons/eeveelution/eeveelution_color_evergreen.png%" SetBG "1440/eeveelution_evergreen_1440.png"
  611. + "Gray%bgicons/eeveelution/eeveelution_color_gray.png%" SetBG "1440/eeveelution_gray_1440.png"
  612. + "Indigo%bgicons/eeveelution/eeveelution_color_indigo.png%" SetBG "1440/eeveelution_indigo_1440.png"
  613. + "Rich Green%bgicons/eeveelution/eeveelution_color_rich-green.png%" SetBG "1440/eeveelution_rich-green_1440.png"
  614. + "Regal%bgicons/eeveelution/eeveelution_color_regal.png%" SetBG "1440/eeveelution_regal_1440.png"
  615. + "Purple%bgicons/eeveelution/eeveelution_color_purple.png%" SetBG "1440/eeveelution_purple_1440.png"
  616. + "Sensible Blue%bgicons/eeveelution/eeveelution_color_sensible_blue.png%" SetBG "1440/eeveelution_sensible_blue_1440.png"
  617. + "Teal%bgicons/eeveelution/eeveelution_color_teal.png%" SetBG "1440/eeveelution_teal_1440.png"
  618. + "Wintergreen%bgicons/eeveelution/eeveelution_color_wintergreen.png%" SetBG "1440/eeveelution_wintergreen_1440.png"
  619.  
  620. DestroyMenu BGEV1920
  621. AddToMenu BGEV1920
  622. + "Black%bgicons/eeveelution/eeveelution_color_black.png%" SetBG "1920/eeveelution_black_1920.png"
  623. + "White%bgicons/eeveelution/eeveelution_color_white.png%" SetBG "1920/eeveelution_white_1920.png"
  624. + "Brick Red%bgicons/eeveelution/eeveelution_color_brick_red.png%" SetBG "1920/eeveelution_brick_red_1920.png"
  625. + "Brown%bgicons/eeveelution/eeveelution_color_brown.png%" SetBG "1920/eeveelution_brown_1920.png"
  626. + "Burgundy%bgicons/eeveelution/eeveelution_color_burgundy.png%" SetBG "1920/eeveelution_burgundy_1920.png"
  627. + "Deep Red%bgicons/eeveelution/eeveelution_color_deep_red.png%" SetBG "1920/eeveelution_deep_red_1920.png"
  628. + "Evergreen%bgicons/eeveelution/eeveelution_color_evergreen.png%" SetBG "1920/eeveelution_evergreen_1920.png"
  629. + "Gray%bgicons/eeveelution/eeveelution_color_gray.png%" SetBG "1920/eeveelution_gray_1920.png"
  630. + "Indigo%bgicons/eeveelution/eeveelution_color_indigo.png%" SetBG "1920/eeveelution_indigo_1920.png"
  631. + "Rich Green%bgicons/eeveelution/eeveelution_color_rich-green.png%" SetBG "1920/eeveelution_rich-green_1920.png"
  632. + "Regal%bgicons/eeveelution/eeveelution_color_regal.png%" SetBG "1920/eeveelution_regal_1920.png"
  633. + "Purple%bgicons/eeveelution/eeveelution_color_purple.png%" SetBG "1920/eeveelution_purple_1920.png"
  634. + "Sensible Blue%bgicons/eeveelution/eeveelution_color_sensible_blue.png%" SetBG "1920/eeveelution_sensible_blue_1920.png"
  635. + "Teal%bgicons/eeveelution/eeveelution_color_teal.png%" SetBG "1920/eeveelution_teal_1920.png"
  636. + "Wintergreen%bgicons/eeveelution/eeveelution_color_wintergreen.png%" SetBG "1920/eeveelution_wintergreen_1920.png"
  637.  
  638. DestroyMenu BGEV2560
  639. AddToMenu BGEV2560
  640. + "Black%bgicons/eeveelution/eeveelution_color_black.png%" SetBGExtend "full/eeveelution_black_full.png"
  641. + "White%bgicons/eeveelution/eeveelution_color_white.png%" SetBGExtend "full/eeveelution_white_full.png"
  642. + "Brick Red%bgicons/eeveelution/eeveelution_color_brick_red.png%" SetBGExtend "full/eeveelution_brick_red_full.png"
  643. + "Brown%bgicons/eeveelution/eeveelution_color_brown.png%" SetBGExtend "full/eeveelution_brown_full.png"
  644. + "Burgundy%bgicons/eeveelution/eeveelution_color_burgundy.png%" SetBGExtend "full/eeveelution_burgundy_full.png"
  645. + "Deep Red%bgicons/eeveelution/eeveelution_color_deep_red.png%" SetBGExtend "full/eeveelution_deep_red_full.png"
  646. + "Evergreen%bgicons/eeveelution/eeveelution_color_evergreen.png%" SetBGExtend "full/eeveelution_evergreen_full.png"
  647. + "Gray%bgicons/eeveelution/eeveelution_color_gray.png%" SetBGExtend "full/eeveelution_gray_full.png"
  648. + "Indigo%bgicons/eeveelution/eeveelution_color_indigo.png%" SetBGExtend "full/eeveelution_indigo_full.png"
  649. + "Rich Green%bgicons/eeveelution/eeveelution_color_rich-green.png%" SetBGExtend "full/eeveelution_rich-green_full.png"
  650. + "Regal%bgicons/eeveelution/eeveelution_color_regal.png%" SetBG "full/eeveelution_regal_full.png"
  651. + "Purple%bgicons/eeveelution/eeveelution_color_purple.png%" SetBGExtend "full/eeveelution_purple_full.png"
  652. + "Sensible Blue%bgicons/eeveelution/eeveelution_color_sensible_blue.png%" SetBGExtend "full/eeveelution_sensible_blue_full.png"
  653. + "Teal%bgicons/eeveelution/eeveelution_color_teal.png%" SetBGExtend "full/eeveelution_teal_full.png"
  654. + "Wintergreen%bgicons/eeveelution/eeveelution_color_wintergreen.png%" SetBGExtend "full/eeveelution_wintergreen_full.png"
  655.  
  656. DestroyMenu BGEVDual
  657. AddToMenu BGEVDual
  658. + "Teal%bgicons/eeveelution/eeveelution_color_teal.png%" SetBG "dual/eeveelution_teal_dualmonitor.png"
  659.  
  660. DestroyMenu SolidColors
  661. AddToMenu SolidColors
  662. + "Black%bgicons/eeveelution/eeveelution_color_black.png%" SetBG "bgicons/eeveelution/eeveelution_color_black.png"
  663. + "White%bgicons/eeveelution/eeveelution_color_white.png%" SetBG "bgicons/eeveelution/eeveelution_color_white.png"
  664. + "Brick Red%bgicons/eeveelution/eeveelution_color_brick_red.png%" SetBG "bgicons/eeveelution/eeveelution_color_brick_red.png"
  665. + "Brown%bgicons/eeveelution/eeveelution_color_brown.png%" SetBG "bgicons/eeveelution/eeveelution_color_brown.png"
  666. + "Burgundy%bgicons/eeveelution/eeveelution_color_burgundy.png%" SetBG "bgicons/eeveelution/eeveelution_color_burgundy.png"
  667. + "Deep Red%bgicons/eeveelution/eeveelution_color_deep_red.png%" SetBG "bgicons/eeveelution/eeveelution_color_deep_red.png"
  668. + "Evergreen%bgicons/eeveelution/eeveelution_color_evergreen.png%" SetBG "bgicons/eeveelution/eeveelution_color_evergreen.png"
  669. + "Gray%bgicons/eeveelution/eeveelution_color_gray.png%" SetBG "bgicons/eeveelution/eeveelution_color_gray.png"
  670. + "Indigo%bgicons/eeveelution/eeveelution_color_indigo.png%" SetBG "bgicons/eeveelution/eeveelution_color_indigo.png"
  671. + "Regal%bgicons/eeveelution/eeveelution_color_regal.png%" SetBG "bgicons/eeveelution/eeveelution_color_regal.png"
  672. + "Rich Green%bgicons/eeveelution/eeveelution_color_rich-green.png%" SetBG "bgicons/eeveelution/eeveelution_color_rich-green.png"
  673. + "Purple%bgicons/eeveelution/eeveelution_color_purple.png%" SetBG "bgicons/eeveelution/eeveelution_color_purple.png"
  674. + "Sensible Blue%bgicons/eeveelution/eeveelution_color_sensible_blue.png%" SetBG "bgicons/eeveelution/eeveelution_color_sensible_blue.png"
  675. + "Teal%bgicons/eeveelution/eeveelution_color_teal.png%" SetBG "bgicons/eeveelution/eeveelution_color_teal.png"
  676. + "Wintergreen%bgicons/eeveelution/eeveelution_color_wintergreen.png%" SetBG "bgicons/eeveelution/eeveelution_color_wintergreen.png"
  677.  
  678. DestroyMenu BG1280
  679. AddToMenu BG1280
  680. + "Eeveelution" Popup BGEV1280
  681. + "Bliss" SetBG "bliss1280x800.png"
  682. + "Phantasy" SetBG "1280/phantasy_1280.jpg"
  683. + "Missile Command" SetBG "1280/missile_command.png"
  684. + "PhantasyII" SetBG "1280/phantasy2_1280.png"
  685. + "Nei" SetBG "1280/ps2_nei_orig_artist_wallpaper6.png"
  686. + "Nei (Calib)" SetBG "1280/ps2_nei_orig_artist_wallpaper6_calib.png"
  687. + "Nei2" SetBG "1280/ps2_nei_orig_artist_wallpaper7.png"
  688. + "Nei2 (Calib)" SetBG "1280/ps2_nei_orig_artist_wallpaper7_calib.png"
  689. + "HeartGold" SetBG "1280/HeartGold_1280.png"
  690. + "SoulSilver" SetBG "1280/SoulSilver_1280.png"
  691.  
  692.  
  693. DestroyMenu BG1440
  694. AddToMenu BG1440
  695. + "Eeveelution" Popup BGEV1440
  696. + "Phantasy" SetBG "1440/phantasy_1440.jpg"
  697. + "Nei" SetBG "1440/ps2_nei_orig_artist_wallpaper6.png"
  698. + "Nei (Calib)" SetBG "1440/ps2_nei_orig_artist_wallpaper6_calib.png"
  699. + "Nei2" SetBG "1440/ps2_nei_orig_artist_wallpaper7.png"
  700. + "Nei2 (Calib)" SetBG "1440/ps2_nei_orig_artist_wallpaper7_calib.png"
  701.  
  702. DestroyMenu BG1920
  703. AddToMenu BG1920
  704. + "Eeveelution" Popup BGEV1920
  705. + "Bliss1200" SetBG bliss1920x1200.png
  706. + "Phantasy" SetBG "1920/phantasy_1920.jpg"
  707. + "Nei" SetBG "1920/ps2_nei_orig_artist_wallpaper6.png"
  708. + "Nei (Calib)" SetBG "1920/ps2_nei_orig_artist_wallpaper6_calib.png"
  709. + "Nei2" SetBG "1920/ps2_nei_orig_artist_wallpaper7.png"
  710. + "Nei2 (Calib)" SetBG "1920/ps2_nei_orig_artist_wallpaper7_calib.png"
  711. + "Nei2 Bright (Calib)" SetBG "1920/ps2_nei_orig_artist_wallpaper7_bright_calib.png"
  712. + "HeartGold" SetBG "1920/HeartGold_1920.png"
  713. + "SoulSilver" SetBG "1920/SoulSilver_1920.png"
  714.  
  715. DestroyMenu BG2560
  716. AddToMenu BG2560
  717. + "Eeveelution" Popup BGEV2560
  718. + "Phantasy" SetBG "2560/phantasy_1920.jpg"
  719.  
  720. DestroyMenu BGDual
  721. AddToMenu BGDual
  722. + "Eeveelution" Popup BGEVDual
  723. + "Bliss1550" SetBG bliss3200x1550.png
  724.  
  725. DestroyMenu BGMenu
  726. AddToMenu BGMenu "Wallpapers" Title
  727. + "1280%icons/wallpaper.png%" Popup BG1280
  728. + "1440%icons/wallpaper.png%" Popup BG1440
  729. + "1920%icons/wallpaper.png%" Popup BG1920
  730. + "2560%icons/wallpaper.png%" Popup BG2560
  731. + "Solid Colors%icons/wallpaper.png%" Popup SolidColors
  732. + "Dual-Screen%icons/wallpaper.png%" Popup BGDual
  733. + "Paver%bgicons/Paver.png%" SetBG "Paver.png"
  734. + "Paver (green)%bgicons/Paver_green.png%" SetBG "Paver_green.png"
  735. + "Toronto%bgicons/Toronto.png%" SetBG "Toronto.png"
  736. + "Toronto2%bgicons/Toronto2.png%" SetBG "Toronto2.png"
  737. + "Floral%bgicons/bg1.png%" SetBG bg1.png
  738. + "Circles%bgicons/bg2.png%" SetBG bg2.png
  739. + "Space%bgicons/bg3.png%" SetBG bg3.png
  740. + "Solid Black%bgicons/black.png%" SetBG black.png
  741.  
  742. # Window Operations Menus
  743. # + "Maximize" Maximize ewmhiwa
  744. DestroyMenu MenuWindowOps
  745. AddToMenu MenuWindowOps
  746. + "Move" Move
  747. + "Move (0,0)" Current Move 0p 0p
  748. + "Resize" Resize
  749. + "Iconify" Iconify
  750. + "Maximize" ThisToggleBordersMaximize
  751. + "Fullscreen" ThisFullScreenMax
  752. + "Borders" ThisToggleBorders
  753. + "Shade" WindowShade
  754. + "Stick" Stick
  755. + "" Nop
  756. + "Close" Close
  757. + "More..." Menu MenuWindowOpsLong This 0 0
  758.  
  759. #+ "(Un)Maximize" Maximize ewmhiwa
  760. DestroyMenu MenuWindowOpsLong
  761. AddToMenu MenuWindowOpsLong
  762. + "Move" Move
  763. + "Move (0,0)" Current Move 0p 0p
  764. + "Resize" Resize
  765. + "(De)Iconify" Iconify
  766. + "(Un)Maximize" ThisToggleBordersMaximize
  767. + "(Un)Fullscreen" ThisFullScreenMax
  768. + "(Un)Borderify" ThisToggleBorders
  769. + "(Un)Shade" WindowShade
  770. + "(Un)Sticky" Stick
  771. + "(No)TitleBar" Pick (CirculateHit) ToggleTitle
  772. + "Send To" Popup MenuSendTo
  773. + "" Nop
  774. + "Close" Close
  775. + "Destroy" Destroy
  776. + "" Nop
  777. + "Raise" Raise
  778. + "Lower" Lower
  779. + "" Nop
  780. + "StaysOnTop" Pick (CirculateHit) Layer 0 6
  781. + "StaysPut" Pick (CirculateHit) StayPutFunc
  782. + "StaysOnBottom" Pick (CirculateHit) Layer 0 2
  783. + "" Nop
  784. + "Identify" Module FvwmIdent
  785.  
  786. #+ "StaysPut" Pick (CirculateHit) Layer 0 4
  787. #+ "(Un)Maximize" Maximize ewmhiwa
  788. DestroyMenu MenuIconOps
  789. AddToMenu MenuIconOps
  790. + "(De)Iconify" Iconify
  791. + "(Un)Maximize" ToggleBordersMaximize
  792. + "(Un)Shade" WindowShade
  793. + "(Un)Sticky" Stick
  794. + "(No)TitleBar" Pick (CirculateHit) ToggleTitle
  795. + "Send To" Popup MenuSendTo
  796. + "" Nop
  797. + "Close" Close
  798. + "Destroy" Destroy
  799. + "" Nop
  800. + "Raise" Raise
  801. + "Lower" Lower
  802. + "" Nop
  803. + "StaysOnTop" Pick (CirculateHit) Layer 0 6
  804. + "StaysPut" Pick (CirculateHit) StayPutFunc
  805. + "StaysOnBottom" Pick (CirculateHit) Layer 0 2
  806. + "" Nop
  807. + "Identify" Module FvwmIdent
  808.  
  809. DestroyMenu MenuSendTo
  810. AddToMenu MenuSendTo
  811. + "Current" MoveToCurrent
  812. + "Page" PopUp MenuSendToPage
  813. + "Desk" PopUp MenuSendToDesk
  814.  
  815. DestroyMenu MenuSendToDesk
  816. AddToMenu MenuSendToDesk
  817. + "Desk 0" MoveToDesk 0 0
  818. + "Desk 1" MoveToDesk 0 1
  819. + "Desk 2" MoveToDesk 0 2
  820. + "Desk 3" MoveToDesk 0 3
  821.  
  822. DestroyMenu MenuSendToPage
  823. AddToMenu MenuSendToPage
  824. + "Page (0,0)" MoveToPage 0 0
  825. + "Page (0,1)" MoveToPage 0 1
  826. + "Page (1,0)" MoveToPage 1 0
  827. + "Page (1,1)" MoveToPage 1 1
  828.  
  829.  
  830. # Fvwm Man Pages (Help) Menu
  831. DestroyMenu MenuFvwmManPages
  832. AddToMenu MenuFvwmManPages "Help" Title
  833. + "fvwm" ViewManPage fvwm
  834. + "FvwmAnimate" ViewManPage FvwmAnimate
  835. + "FvwmAuto" ViewManPage FvwmAuto
  836. + "FvwmBacker" ViewManPage FvwmBacker
  837. + "FvwmBanner" ViewManPage FvwmBanner
  838. + "FvwmButtons" ViewManPage FvwmButtons
  839. + "FvwmCommand" ViewManPage FvwmCommand
  840. + "FvwmConsole" ViewManPage FvwmConsole
  841. + "FvwmEvent" ViewManPage FvwmEvent
  842. + "FvwmForm" ViewManPage FvwmForm
  843. + "FvwmIconMan" ViewManPage FvwmIconMan
  844. + "FvwmIdent" ViewManPage FvwmIdent
  845. + "FvwmPager" ViewManPage FvwmPager
  846. + "FvwmPerl" ViewManPage FvwmPerl
  847. + "FvwmProxy" ViewManPage FvwmProxy
  848. + "FvwmRearrange" ViewManPage FvwmRearrange
  849. + "FvwmScript" ViewManPage FvwmScript
  850. + "" Nop
  851. + "fvwm-root" ViewManPage fvwm-root
  852. + "fvwm-menu-desktop" ViewManPage fvwm-menu-desktop
  853. + "fvwm-menu-directory" ViewManPage fvwm-menu-directory
  854. + "fvwm-menu-headlines" ViewManPage fvwm-menu-headlines
  855. + "fvwm-menu-xlock" ViewManPage fvwm-menu-xlock
  856. + "fvwm-config" ViewManPage fvwm-config
  857.  
  858. #######
  859. # 5: Mouse and Key bindings
  860. #
  861. # Contexts:
  862. # R = Root Window rrrrrrrrrrrrrrrrrrrrrr
  863. # W = Application Window rIrrrr<---------^rrrrr
  864. # F = Frame Corners rrrrrr[13TTTT642]rrrrr
  865. # S = Frame Sides rIrrrr[wwwwwwwww]rrrrr
  866. # T = Title Bar rrrrrr[wwwwwwwww]rrrrr
  867. # I = Icon rIrrrrv_________>rrrrr
  868. # rrrrrrrrrrrrrrrrrrrrrr
  869. #
  870. # Numbers are buttons: [1 3 5 7 9 TTTTT 0 8 6 4 2]
  871. #
  872. # Modifiers: (A)ny, (C)ontrol, (S)hift, (M)eta, (N)othing
  873. #
  874. # Format: Key <X> <Context> <Modifier> <Action>
  875. # Mouse <X> <Context> <Modifier> <Action>
  876. ####################
  877.  
  878. # Alt-F1 or Menu to load the root menu and Alt-Tab for a WindowList.
  879. # Ctrl-F1/F2/F3/F4 will switch between the Virtual Desktops.
  880. # Super_R (windows key) will launch a terminal.
  881. #
  882. # Silent supresses any errors (such as keyboards with no Menu key).
  883. Silent Key F1 A M Menu MenuFvwmRoot
  884. #Silent Key Menu A A Menu MenuFvwmRoot
  885.  
  886. # Silent Key XF86RotateWindows A N Exec exec /home/user/bin/rotate-cycle normal
  887.  
  888. # Silent Key XF86TaskPane A N Exec exec /home/user/bin/rotate-cycle invert
  889.  
  890. # Menu key is compose key
  891.  
  892. # F13, sent from xdotool as a hack/workaround since fvwmcommand is gone now
  893. # in fvwm3
  894. Silent Key 3270_FieldMark A N WindowList Root c c CurrentDesk
  895. Silent Key Tab A M WindowList Root c c CurrentDesk, SelectOnRelease Meta_L
  896. # For fvwm3, since fvwmcommand doesn't work anymore.
  897. # Made my applet send alt+shift+tab as well.
  898. # Silent Key Tab A SM WindowList Root c c CurrentDesk, SelectOnRelease
  899. # Edit: FVWM3 release 1.0.0 has FvwmPrompt; problem solved.
  900. Silent Key F1 A C GotoDesk 0 0
  901. Silent Key F2 A C GotoDesk 0 1
  902. Silent Key F3 A C GotoDesk 0 2
  903. Silent Key F4 A C GotoDesk 0 3
  904. Silent Key F13 A A
  905. # Silent Key Super_R A A Exec exec mate-terminal
  906.  
  907. # ctrl+alt+arrowkey to cycle through desks
  908. # replace 'C' with 'A' (anything) to make it "alt+arrowkey" instead
  909. Silent Key Left A CM GotoDesk -1 0 0 3
  910. Silent Key Right A CM GotoDesk +1 0 0 3
  911.  
  912. # ctrl+alt+upArrow to bump brightness up
  913. Silent Key Up A CM Exec exec $HOME/bin/brightup_acpi
  914. # ctrl+alt+downArrow to bump brightness down
  915. Silent Key Down A CM Exec exec $HOME/bin/brightdown_acpi
  916. # ctrl+super+up and ctrl+super+down
  917. Silent Key Up A C4 Exec exec $HOME/bin/brightup_acpi
  918. Silent Key Down A C4 Exec exec $HOME/bin/brightdown_acpi
  919.  
  920. # u2412m external brightness up/down on ctrl+alt+I and ctrl+alt+K
  921. Silent Key 'i' A CM Exec exec $HOME/bin/u2412m_brightup
  922. Silent Key 'k' A CM Exec exec $HOME/bin/u2412m_brightdown
  923.  
  924. # toggle LCD
  925. Silent Key XF86Launch1 A S Exec exec $HOME/bin/toggle-lcd
  926.  
  927. # lcdoff
  928. Silent Key XF86Launch1 A C Exec exec $HOME/bin/lcdoff
  929.  
  930. Silent Key XF86Launch1 A M Exec exec $HOME/bin/lcdon
  931.  
  932. # fullscreen - hide window borders, hide title bar, and then maximize.
  933. # the same shortcut 'un-toggles' it.
  934. # ctrl-alt-g
  935. #Silent Key g A CM FullScreenMax
  936. # ctrl-alt-8
  937. Silent Key 8 A CM FullScreenMax
  938.  
  939. Silent Key 2 A CM Exec exec halfWindowSize
  940. Silent Key 4 A CM Exec exec doubleWindowSize
  941. Silent Key 3 A CM Exec exec window.3x
  942. Silent Key 5 A CM Exec exec window3x
  943.  
  944. # hide window (with my special script which uses xdotool)
  945. # ctrl-alt-h
  946. Silent Key h A CM Exec exec $HOME/bin/hidewindow.sh
  947.  
  948. # restart fvwm
  949. # ctrl-alt-r
  950. Silent Key r A CM Restart
  951.  
  952. # show last hidden window (with my special script)
  953. # 'u' for 'unhide'
  954. # ctrl-alt-u
  955. Silent Key u A CM Exec exec $HOME/bin/showwindow.sh
  956.  
  957. # toggle borders
  958. # ctrl-alt-b
  959. Silent Key b A CM ToggleBorders
  960.  
  961. # toggle maximize
  962. # ctrl-alt-mto
  963. # don't turn off borders:
  964. # Silent Key m A CM "Maximize ewmhiwa"
  965. # turn off borders:
  966. Silent Key m A CM "ToggleBordersMaximize"
  967. Silent Key n A CM "ToggleTitle"
  968.  
  969. # Simple run dialogue
  970. # Style fvwm-run-dialog GrabFocus
  971. # Silent Key F2 A A Exec exec $[HOME]/.fvwm/run-dialog
  972. Silent Key F2 A M Exec exec $[HOME]/bin/rundlg
  973. # Key F2 A M Module FvwmForm MyRun
  974. # *MyRunWarpPointer
  975. # *MyRunTitle "Run a command"
  976. # *MyRunFont "StringEncoding=UTF-8:xft:IBM 3161:size=12:antialias=false"
  977. # *MyRunButtonFont "StringEncoding=UTF-8:xft:IBM 3161:size=12:antialias=false"
  978. # *MyRunInputFont "StringEncoding=UTF-8:xft:IBM 3161:size=12:antialias=false"
  979. # *MyRunFore Black
  980. # *MyRunBack #AEB2C3
  981. # *MyRunItemFore Black
  982. # *MyRunItemBack #AEB2C3
  983. # *MyRunLine center
  984. # *MyRunText "execute "
  985. # *MyRunInput Func 40 ""
  986. # *MyRunLine expand
  987. # *MyRunButton quit "Cancel" ^C
  988. # *MyRunButton quit "Run" ^M
  989. # *MyRunCommand Exec $(Func)
  990. # *MyRunButton restart "Clear" ^R
  991. # *MyRunPosition 100 100
  992. # *MyRunCommand Nop
  993.  
  994. # Print Screen
  995. #Silent Key Print A A Exec exec $HOME/bin/xwdui
  996. Silent Key Print A A Exec exec $HOME/bin/ffmpeg-dump-ui.py
  997. # Alt-Print Screen (fullscreen screenshot)
  998. #Silent Key Print A M Exec exec $HOME/bin/xwdui-root.py
  999.  
  1000. #Silent Key Print A M Exec exec $HOME/bin/ffmpeg-dump-ui-root.py
  1001. # due to dumb problems with portable pc iii keyboard,
  1002. # i remapped sysrq to multi_key for ps/2 in hwdb, so i have to do this.
  1003. Silent Key Multi_key A M Exec exec $HOME/bin/ffmpeg-dump-ui-root.py
  1004.  
  1005. # Alt-F4 closes a window
  1006. Silent Key F4 A M Close
  1007.  
  1008. # alt-t opens a terminal
  1009. Silent Key 't' A M Exec exec mate-terminal
  1010.  
  1011. # alt-s opens seamonkey
  1012. Silent Key 's' A M Exec exec seamonkey
  1013.  
  1014. #West Focus
  1015.  
  1016. # Window Buttons: [1 3 5 7 9 TTTTT 0 8 6 4 2]
  1017. # 1 - Open the WindowOps menu.
  1018. # 2 - Close on single click, Destory on double click.
  1019. # 4 - Maximize (right/middle button will only maximize vertical/horizontal)
  1020. # 6 - Iconify (minimize)
  1021. #Mouse 1 1 A Menu MenuWindowOps Delete
  1022. Mouse 1 1 A Menu MenuWindowOps Close
  1023. #Mouse 1 2 A Close
  1024. #ewmhiwa makes fvwm ignore "working area", which stalonetray insists on taking.
  1025. #Mouse 1 2 A Maximize ewmhiwa 100 100
  1026. Mouse 1 2 A ToggleBordersMaximize 100 100
  1027. #Mouse 1 4 A Maximize 100 100
  1028. #Mouse 2 4 A Maximize ewmhiwa 0 100
  1029. Mouse 2 4 A ToggleBordersMaximize 0 100
  1030. #Mouse 3 4 A Maximize ewmhiwa 100 0
  1031. Mouse 3 4 A ToggleBordersMaximize ewmhiwa 100 0
  1032. #Mouse 1 6 A Iconify
  1033. Mouse 1 4 A Iconify
  1034.  
  1035. # alt+click drag to move window
  1036. AddToFunc FuncMoveWin
  1037. #+ I Raise
  1038. + M $0
  1039. #+ D Lower
  1040. # move with alt+click
  1041. Mouse 1 W M FuncMoveWin Move
  1042.  
  1043. # window menu popup with alt+shift+rightclick
  1044. Mouse 3 W MS Menu MenuWindowOpsLong
  1045.  
  1046. # TitleBar: Click to Raise, Move, Double Click to Maximize
  1047. # Mouse Wheel Up/Down to WindowShade On/Off
  1048. # Borders: Click to raise, Move to Resize
  1049. # Root Window: Left Click - Main Menu
  1050. # Right Click - WindowOps Menu
  1051. # Middle Click - Window List Menu
  1052. # Right click TitleBar/Borders for WindowOps Menu
  1053. # + I [Action to do Immediately]
  1054. # + C [Action to do on a Mouse Click]
  1055. # + D [Action to do on a Mouse Double Click]
  1056. # + H [Action to do on a Mouse Hold]
  1057. # + M [Action to do on a Mouse Motion]
  1058.  
  1059. #Mouse 1 T A RaiseMoveX Move "Maximize ewmhiwa"
  1060. Mouse 1 T A RaiseMoveX Move ToggleBordersMaximize
  1061. Mouse 1 FS A RaiseMove Resize
  1062. Mouse 4 T A WindowShade True
  1063. Mouse 5 T A WindowShade False
  1064. Mouse 1 R A Menu MenuFvwmRoot
  1065. Mouse 2 R A WindowList
  1066. Mouse 3 R A Menu MenuWindowOpsLong
  1067. Mouse 1 I A RaiseMoveX Move "Iconify off"
  1068. Mouse 3 T A Menu MenuWindowOps
  1069. Mouse 3 I A Menu MenuIconOps
  1070.  
  1071. #######
  1072. # 6: Window Decor
  1073. #
  1074. # Buttons Locations: [1 3 5 7 9 TTTTT 0 8 6 4 2]
  1075. #
  1076. # 1 - WindowOps Menu
  1077. # 2 - Close
  1078. # 4 - Maximize
  1079. # 6 - Minimize
  1080. ###########
  1081. #TitleStyle Centered Height 18 -- Flat
  1082. #ButtonStyle All ActiveUp Vector 5 15x15@4 15x85@3 85x85@3 85x15@3 \
  1083. # 15x15@3 -- Flat
  1084. #ButtonStyle All ToggledActiveUp Vector 5 15x15@4 15x85@3 85x85@3 \
  1085. # 85x15@3 15x15@3 -- Flat
  1086. #ButtonStyle All ActiveDown Vector 5 20x20@4 20x80@3 80x80@3 80x20@3 \
  1087. # 20x20@3 -- Flat
  1088. #ButtonStyle All ToggledActiveDown Vector 5 20x20@4 20x80@3 80x80@3 \
  1089. # 80x20@3 20x20@3 -- Flat
  1090. #ButtonStyle All ToggledInactive Vector 5 47x47@3 57x53@3 53x53@3 \
  1091. # 53x47@3 47x47@3 -- Flat
  1092. #ButtonStyle All Inactive Vector 5 47x47@3 57x53@3 53x53@3 53x47@3 \
  1093. # 47x47@3 -- Flat
  1094. #AddButtonStyle 1 Active Vector 5 45x45@3 55x45@3 55x55@3 45x55@3 45x45@3
  1095. #AddButtonStyle 2 Active Vector 4 35x35@3 65x65@3 65x35@4 35x65@3
  1096. #AddButtonStyle 4 Active Vector 8 30x70@3 30x30@3 70x30@3 70x70@3 30x70@3 \
  1097. # 30x50@4 50x50@3 50x70@3
  1098. #AddButtonStyle 4 ToggledActiveUp Vector 8 30x70@3 30x30@3 70x30@3 70x70@3 \
  1099. # 30x70@3 50x30@4 50x50@3 70x50@3
  1100. #AddButtonStyle 6 Active Vector 5 35x60@3 65x60@3 65x50@3 35x50@3 35x60@3
  1101. #ButtonStyle All - Clear
  1102. ButtonStyle 1 - MwmDecorMenu
  1103. ButtonStyle 4 - MwmDecorMax
  1104. ButtonStyle 6 - MwmDecorMin
  1105.  
  1106. ############
  1107. # 7: Modules
  1108. #############
  1109.  
  1110. # FvwmIdent
  1111. #
  1112. # FvwmIdent is a module that can be used to get the various info about
  1113. # a window. One use is getting the class/resource/name of a window.
  1114. DestroyModuleConfig FvwmIdent:*
  1115. *FvwmIdent: Colorset 10
  1116. *FvwmIdent: Font "StringEncoding=UTF-8:xft:Sans:size=10:antialias=True"
  1117.  
  1118. # FvwmBanner
  1119. #
  1120. # This displays the Fvwm Logo for 5 seconds. This is displayed
  1121. # when fvwm starts.
  1122. # DestroyModuleConfig FvwmBanner:*
  1123. # *FvwmBanner: NoDecor
  1124. # *FvwmBanner: Timeout 5
  1125.  
  1126. # FvwmScript
  1127. #
  1128. # FvwmScript is a module that allows one to write custom desktop
  1129. # widgets and various other tools. This config uses two FvwmScripts.
  1130. # - DateTime - uses the output of "date" to display the date/time
  1131. # on the RightPanel.
  1132. # - Quit - This is a popup that asks for quit confirmation before
  1133. # quitting fvwm.
  1134. DestroyModuleConfig FvwmScript:*
  1135. *FvwmScript: DefaultColorset 10
  1136.  
  1137. # FvwmButtons - RightPanel
  1138. #
  1139. # FvwmButtons is a powerful module that can be used to build custom
  1140. # panels and docks. This config uses FvwmButtons to build the RightPanel.
  1141. # The panel contains buttons to switch desks, FvwmPager, a system tray,
  1142. # FvwmIconMan (list of running windows), and a clock.
  1143. #
  1144. # Note - To use the system tray you must have "stalonetray" installed.
  1145.  
  1146. # FvwmPager
  1147. #
  1148. # This module displays the location of the windows on the various Pages
  1149. # and Desks. This is setup to show only the Pages on the current Desk.
  1150. DestroyModuleConfig FvwmPager:*
  1151. *FvwmPager: Colorset * 10
  1152. *FvwmPager: HilightColorset * 13
  1153. *FvwmPager: BalloonColorset * 10
  1154. *FvwmPager: WindowColorsets 10 11
  1155. *FvwmPager: Font None
  1156. *FvwmPager: Balloons All
  1157. *FvwmPager: BalloonFont "StringEncoding=UTF-8:xft:Sans:Bold:size=8:antialias=True"
  1158. *FvwmPager: BallonYOffset +2
  1159. *FvwmPager: Window3dBorders
  1160. *FvwmPager: MiniIcons
  1161.  
  1162. # FvwmIconMan
  1163. #
  1164. # FvwmIconMan is a powerful tool to list and manage windows. This
  1165. # is used as the window list in the panel or taskbar.
  1166. DestroyModuleConfig FvwmIconMan:*
  1167. #*FvwmIconMan: UseWinList true
  1168. *FvwmIconMan: ButtonGeometry 120x20
  1169. *FvwmIconMan: ManagerGeometry 1x1
  1170. *FvwmIconMan: Background #003c3c
  1171. *FvwmIconMan: Foreground #ffffff
  1172. *FvwmIconMan: FocusColorset 11
  1173. *FvwmIconMan: IconColorset 14
  1174. *FvwmIconMan: FocusAndSelectColorset 12
  1175. *FvwmIconMan: SelectColorset 12
  1176. *FvwmIconMan: IconAndSelectColorset 12
  1177. *FvwmIconMan: DrawIcons always
  1178. *FvwmIconMan: ReliefThickness 0
  1179. *FvwmIconMan: Format "%t"
  1180. *FvwmIconMan: Font "StringEncoding=UTF-8:xft:Sans:Bold:size=8:antialias=True"
  1181. *FvwmIconMan: Action Mouse 0 A ret
  1182. *FvwmIconMan: Action Mouse 1 A sendcommand IconManClick
  1183. *FvwmIconMan: Action Mouse 3 A sendcommand "Menu MenuIconOps"
  1184. *FvwmIconMan: Resolution global
  1185. *FvwmIconMan: Tips needed
  1186. *FvwmIconMan: Sort id
  1187.  
  1188. # FvwmEvent
  1189. #
  1190. # FvwmEvent is a module that can run an action or function
  1191. # on specific events. This instance changes which desk number
  1192. # is highlighted when the desk is changed.
  1193. DestroyModuleConfig EventNewDesk:*
  1194. *EventNewDesk: PassID
  1195. *EventNewDesk: new_desk ChangeDesk
  1196.  
  1197. # archwiki copypaste
  1198. # *FvwmEvent: new_page "Focus-Previous CurrentPage NoWarp"
  1199. # *FvwmEvent: new_desk "Focus-Previous CurrentDesk"
  1200.  
  1201. # FvwmForm
  1202. #
  1203. # FvwmForm is a module that can be used to build a GUI
  1204. # form. Used with fvwm-menu-desktop-config.fpl.
  1205. # This sets the default colorsets.
  1206. *FvwmFormDefault: Colorset 10
  1207. *FvwmFormDefault: ItemColorset 13
  1208. *FvwmFormDefault: Position 0 200
  1209. # *FvwmFormDefault: Position +80 +80
  1210.  
  1211.  
  1212. #############
  1213. # 8: Misc. Addendum
  1214. #############
  1215. # Motif Window Manager workalike mode.
  1216. Emulate Mwm
  1217. MenuStyle Mwm
  1218. # Default window colors for all:
  1219. Style * Colorset 1, HilightColorset 2
  1220.  
  1221. # Colorset 17, HilightColorset 17
  1222.  
  1223. # Exceptions to the above:
  1224. # formerly Colorset 1, HilightColorset 15:
  1225. Style MComix Colorset 15, HilightColorset 15
  1226. Style "net-runelite-client-RuneLite" Colorset 15, HilightColorset 15
  1227. Style "RuneLite" Colorset 15, HilightColorset 15
  1228. Style touchnav Colorset 15, HilightColorset 15
  1229. Style "Old School RuneScape" Colorset 15, HilightColorset 15
  1230. Style "TabletPC_Applet_Menu" Colorset 15, HilightColorset 15, !Title
  1231. Style "TabletPC_UnitConv" Colorset 15, HilightColorset 15
  1232. Style "retroarch" !Title, !Borders
  1233.  
  1234. # icon backgrounds
  1235. Style * IconBackgroundColorset 17
  1236. Style * IconTitleColorset 17
  1237.  
  1238. # No title bar, no borders on the window,
  1239. # Keep on top (alt-shift-rightclick to get in the menu to turn off)
  1240. Style touchnav !Title, WindowListSkip, !Borders, StaysOnTop
  1241.  
  1242. # Run dialog is an FvwmForm, for instance:
  1243. Style FvwmForm StaysOnTop
  1244.  
  1245. Style * MwmButtons, MwmBorder, MwmDecor
  1246. Style * MwmFunctions, NoResizeHintOverride
  1247. #, ResizeHintOverride
  1248. #Style * BorderWidth 8, HandleWidth 5, MWMButtons, MwmBorder, MwmDecor, MwmFunctions, ResizeHintOverride
  1249.  
  1250. # Title bar height and text location
  1251. TitleStyle Centered Height 22
  1252.  
  1253. # Reserve zero space that I can't move windows into
  1254. EwmhBaseStruts 0 0 0 0
  1255.  
  1256. # cursor icon change for root window
  1257. Exec exec xsetroot -cursor_name left_ptr
  1258. # Start tray if not started yet (script handles checking).
  1259. # Called cde-startup because I used the same script when I ran CDE for a while.
  1260. Exec exec $HOME/bin/cde-startup
  1261.  
  1262. # turn off touchpad, if I've got it installed on the X201 in question
  1263. Exec exec $HOME/bin/touchpad-toggle
  1264.  
  1265. # On-screen keyboard stays on top and is able to pass input
  1266. Style xvkbd NeverFocus, StaysOnTop, Sticky
  1267. # Alternate on screen keyboard
  1268. Style Florence NeverFocus, StaysOnTop, Sticky
  1269.  
  1270. # screenshot tool
  1271. Style "Tkscreengrabber" StaysOnTop, Sticky
  1272. # My custom applet
  1273. Style TabletPC_Applet_Menu NeverFocus, StaysOnTop, Sticky
  1274. Style Wyatt_RunDlg StaysOnTop, Sticky
  1275. Style Categorize_mcomix StaysOnTop, Sticky, !Button 2
  1276. # Style TabletPC_UnitConv NeverFocus, StaysOnTop, Sticky, !Button 4, !Button 2
  1277. Style TabletPC_UnitConv Sticky, !Button 4, !Button 2
  1278. # Remove iconify and maximize buttons from custom tabletPC applet
  1279. Style TabletPC_Applet_Menu !Button 4, !Button 2
  1280. Style TabletPC_Applet_Menu !Borders
  1281.  
Advertisement
Add Comment
Please, Sign In to add comment