Guest User

$HOME/.fvwm/config

a guest
Feb 13th, 2022
668
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 22.58 KB | None | 0 0
  1. ##################################
  2. # ____________________________
  3. # ( _________________________)
  4. # ) (__ _ _ _ _
  5. # ( __)( \/ )( \/\/ )/\/\
  6. # ) ( \ / \ // \
  7. # (___) \/ \/\/(_/\/\_)
  8. #
  9. #
  10. # This is NOT 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 urxvt
  33. InfoStoreAdd FONT 'Sarasa Mono J:Bold'
  34. InfoStoreAdd HOME $HOME
  35. InfoStoreAdd accent #c0a080
  36. InfoStoreAdd dull #c0a000
  37. ###########
  38. # 1: Functions
  39. #
  40. # Fvwm can use custom functions for various tasks.
  41. # The syntax for defining a function named FunctionName is:
  42. #
  43. # DestroyFunc FunctionName
  44. # AddToFunc FunctionName
  45. # + I [Action to do Immediately]
  46. # + C [Action to do on a Mouse Click]
  47. # + D [Action to do on a Mouse Double Click]
  48. # + H [Action to do on a Mouse Hold]
  49. # + M [Action to do on a Mouse Motion]
  50. ###########
  51.  
  52. # Start Function
  53. #
  54. # The start function is run right after fvwm is done reading
  55. # the config file. This function run after each restart
  56. # so using Test (Init) or Test (Restart) can further control
  57. # actions that are run during the first time run (Init) or
  58. # actions that are run after a restart.
  59. DestroyFunc StartFunction
  60. AddToFunc StartFunction
  61. + I Exec exec setxkbmap jp
  62. + I Test (Init) Exec exec unclutter --jitter 10 --ignore-scroll --timeout 3
  63. + I Exec exec synclient TouchpadOff=1
  64. + I Exec exec xset r rate 500 59
  65. + I Exec exec xset m 3 0
  66. + I Test (Init) Exec exec xbacklight -set 50
  67. + I Test (Init) Exec exec conky
  68. + I Test (Init) Exec exec fcitx -rd
  69. + I Test (Init) Exec exec numlockx on
  70. + I Test (Init) Exec exec /usr/bin/pipewire
  71. + I Test (Init) Exec exec ssh-agent -s
  72. + I Test (Init) Exec exec xss-lock slock
  73. + I Test (Init) Exec exec $[infostore.HOME]/Scripts/refresh-wallpaper.sh NOTCRON
  74. + I Test (Init) Exec $[infostore.terminal] -e $[infostore.HOME]/Scripts/daily-digest.sh
  75. + I Module FvwmButtons TopPanel
  76. + I Module FvwmEvent EventNewDesk
  77.  
  78. # Exit Function
  79. #
  80. # Runs when exiting fvwm.
  81. DestroyFunc ExitFunction
  82. AddToFunc ExitFunction
  83. + I Test (Quit) Exec exec pkill xss-lock
  84. + I Test (Quit) Exec exec pkill ssh-agent
  85. + I Test (Quit) Exec exec pkill fcitx
  86. + I Test (Quit) Exec exec pkill pipewire
  87. + I Test (Quit) Exec exec pkill mozc_server
  88.  
  89. # Mouse Bindings Functions
  90. DestroyFunc RaiseMoveX
  91. AddToFunc RaiseMoveX
  92. + I Raise
  93. + M $0
  94. + D $1
  95.  
  96. DestroyFunc RaiseMove
  97. AddToFunc RaiseMove
  98. + I Raise
  99. + M $0
  100.  
  101. DestroyFunc MoveToCurrent
  102. AddToFunc MoveToCurrent
  103. + I ThisWindow MoveToPage
  104. + I ThisWindow MoveToDesk
  105.  
  106. DestroyFunc TuckWindow
  107. AddToFunc TuckWindow
  108. + I ThisWindow ResizeMove 1571p 988p 0p 0p
  109. + I ThisWindow Raise
  110.  
  111. # Function: IconManClick
  112. #
  113. # This function is run from FvwmIconMan when the button is clicked.
  114. DestroyFunc IconManClick
  115. AddToFunc IconManClick
  116. + I ThisWindow (Raised, !Shaded, !Iconic, CurrentPage) Iconify
  117. + I TestRc (Match) Break
  118. + I ThisWindow WindowShade off
  119. + I ThisWindow Iconify off
  120. + I ThisWindow Raise
  121. + I ThisWindow (AcceptsFocus) FlipFocus
  122.  
  123. # Function: ToggleTitle
  124. #
  125. # This function will toggle if fvwm shows the TitleBar.
  126. DestroyFunc ToggleTitle
  127. AddToFunc ToggleTitle
  128. + I ThisWindow (State 1) WindowStyle Title
  129. + I TestRc (Match) State 1 False
  130. + I TestRc (Match) Break
  131. + I WindowStyle !Title
  132. + I State 1 True
  133.  
  134. # Function: ChangeDesk
  135. #
  136. # This function is called by FvwmEvent every time the Desk is changed.
  137. DestroyFunc ChangeDesk
  138. AddToFunc ChangeDesk
  139. + I SendToModule FvwmButtons ChangeButton desk0 Colorset 16
  140. + I SendToModule FvwmButtons ChangeButton desk1 Colorset 16
  141. + I SendToModule FvwmButtons ChangeButton desk2 Colorset 16
  142. + I SendToModule FvwmButtons ChangeButton desk3 Colorset 16
  143. + I SendToModule FvwmButtons ChangeButton desk$0 Colorset 15
  144.  
  145. # Function: TileLeft
  146. #
  147. # Move to left half of screen
  148. DestroyFunc TileLeft
  149. AddToFunc TileLeft
  150. + I ThisWindow (!Shaded, !Iconic) Maximize 50 100
  151. + I ThisWindow (Maximized, !Shaded, !Iconic) Move +0 +0
  152.  
  153. # Function: TileRight
  154. #
  155. # Move to right half of screen
  156. DestroyFunc TileRight
  157. AddToFunc TileRight
  158. + I ThisWindow (!Shaded, !Iconic) Maximize 50 100
  159. + I ThisWindow (Maximized, !Shaded, !Iconic) Move -0 +0
  160.  
  161. #############
  162. # 2: Styles #
  163. #############
  164.  
  165. # Desktops and Pages
  166. #
  167. # Fvwm has both Virtual Desktops and Pages. Each Desktop is built from
  168. # a grid of Pages. The following sets the name of four Desktops and then
  169. # divides each Desktop into a 2x2 grid of Pages that are positioned as
  170. #
  171. # +---+---+
  172. # | | |
  173. # +---+---+
  174. # | | |
  175. # +---+---+
  176. #
  177. DesktopName 0 Main
  178. DesktopName 1 Desk1
  179. DesktopName 2 Desk2
  180. DesktopName 3 Desk3
  181. DesktopSize 2x2
  182.  
  183. # EdgeScroll will move the view port between the Pages when the mouse
  184. # moves to the edge of the screen. This set the amount of distance to
  185. # scroll at 100% (full page) and the EdgeResistance which is a timer
  186. # for how long the mouse as at the edge before it scrolls.
  187. #
  188. # Set EdgeScroll 0 0 and/or EdgeResistance -1 to disable.
  189. EdgeScroll 0 0
  190. EdgeResistance -1
  191.  
  192. # EwmhBaseStruts [left] [right] [top] [bottom]
  193. # Reserves space along the edge(s) of the Screen that will not
  194. # be covered when maximizing or placing windows.
  195. EwmhBaseStruts 0 0 60 0
  196.  
  197. # This sets the ClickTime and MoveThreshold used to determine
  198. # Double Clicks, Hold and Move for the mouse.
  199. ClickTime 250
  200. MoveThreshold 3
  201.  
  202. # Sets the focus style to SloppyFocus and a mouse click
  203. # in a window will Raise it.
  204. Style * SloppyFocus, MouseFocusClickRaises
  205.  
  206. # Default Font
  207. DefaultFont "xft:$[infostore.FONT]:size=10:Bold:antialias=True"
  208.  
  209. # Window Placement
  210. Style * MinOverlapPlacement, GrabFocus, !UsePPosition
  211.  
  212. # Sets all windows to OpaqueMove (vs a wired frame) and windows will
  213. # snap to each other and the edge of the screen.
  214. OpaqueMoveSize unlimited
  215. Style * ResizeOpaque, SnapAttraction 15 SameType ScreenAll, SnapGrid
  216.  
  217. # Transient Windows (such as open file windows)
  218. Style * DecorateTransient, StackTransientParent
  219. Style * !FPGrabFocusTransient, FPReleaseFocusTransient
  220.  
  221. # WindowShade
  222. Style * WindowShadeScrolls, WindowShadeSteps 10
  223.  
  224. # Ignore Numlock and other modifiers for bindings
  225. # See http://fvwm.org/documentation/faq/#why-do-numlock-capslock-and-scrolllock-interfere-with-clicktofocus-andor-my-mouse-bindings
  226. IgnoreModifiers L25
  227.  
  228. # Decor Styles
  229. Style * BorderWidth 7, HandleWidth 7, MWMButtons, FvwmBorder, FirmBorder
  230. Style * Colorset 1, HilightColorset 2
  231. Style * BorderColorset 3, HilightBorderColorset 4
  232.  
  233. # Disable Icons from appearing on desktop.
  234. # Comment this out or use Style * Icon to get the icons back.
  235. Style * !Icon
  236.  
  237. # Window Specific Styles
  238. Style TopPanel !Title, Borders, !Handles, Sticky, \
  239. WindowListSkip, NeverFocus, BorderColorset 19
  240. Style Conky !Title, Borders, !Handles, Sticky, \
  241. WindowListSkip, NeverFocus, BorderColorset 19, \
  242. InitialMapCommand Iconify
  243. Style grun !Title, PositionPlacement Center, WindowListSkip, Layer 6
  244. Style FvwmIdent WindowListSkip
  245. Style FvwmScript WindowListSkip
  246. Style FvwmModule WindowListSkip
  247. Style FvwmForm WindowListSkip
  248.  
  249. #######
  250. # 3: Colorsets
  251. #
  252. # Colorsets can be used to configure the color of the various
  253. # parts of fvwm such as window decor, menus, modules, etc.
  254. #
  255. # Colorset Convention
  256. #
  257. # 0 - Default
  258. # 1 - Inactive Windows
  259. # 2 - Active Window
  260. # 3 - Inactive Windows Borders
  261. # 4 - Active Windows Borders
  262. # 5 - Menu - Inactive Item
  263. # 6 - Menu - Active Item
  264. # 7 - Menu - Grayed Item
  265. # 8 - Menu - Title
  266. # 9 - Reserved
  267. # Modules
  268. # 10 - Module Default
  269. # 11 - Module Hilight
  270. # 12 - Module ActiveButton (Mouse Hover)
  271. # Other
  272. # 13 - FvwmPager Active Page; FvwmForm
  273. # 14 - FvwmIconMan Iconified Button
  274. # 15 - FvwmIconMan Active Window; FvwmPager Active Window; Current Virtual Desktop
  275. # 16 - Inactive Virtual Desktop
  276. # 17 - Hovering over Virtual Desktop
  277. # 18 - FvwmIconMan Hovering Over Icon
  278. # 19 - Panel and Conky colorset
  279. # 20 - FvwmPager Inactive Window
  280. ###########
  281. Colorset 0 fg #bebebe, bg #000000, hi, sh, Plain, NoShape
  282. Colorset 1 fg #505050, bg #bebebe, hi, sh, Plain, NoShape
  283. Colorset 2 fg #000000, bg #909090, hi, sh, Plain, NoShape
  284. Colorset 3 fg #000000, bg #bebebe, hi, sh, Plain, NoShape
  285. Colorset 4 fg #000000, bg #909090, hi, sh, Plain, NoShape
  286. Colorset 5 fg #000000, bg #b0b0b0, hi, sh, Plain, NoShape
  287. Colorset 6 fg #ffffff, bg $[infostore.accent], hi, sh, Plain, NoShape
  288. Colorset 7 fg grey30, bg #ffffff, hi, sh, Plain, NoShape
  289. Colorset 8 fg $[infostore.accent], bg #202020, hi, sh, Plain, NoShape
  290. Colorset 10 fg #bebebe, bg #202020, hi, sh, Plain, NoShape
  291. Colorset 11 fg #000000, bg #bebebe, hi, sh, Plain, NoShape
  292. Colorset 12 fg #000000, bg #ffffff, hi, sh, Plain, NoShape
  293. Colorset 13 fg #bebebe, bg #202020, hi, sh, Plain, NoShape
  294. Colorset 14 fg #707070, bg #202020, hi, sh, Plain, NoShape
  295. Colorset 15 fg #000000, bg $[infostore.accent], hi, sh, Plain, NoShape
  296. Colorset 16 fg #ababab, bg #202020, hi, sh, Plain, NoShape
  297. Colorset 17 fg #000000, bg #808080, hi, sh, Plain, NoShape
  298. Colorset 18 fg $[infostore.dull], bg #202020, hi, sh, Plain, NoShape
  299. Colorset 19 fg #ffffff, bg #202020, hi #000000, sh #808080, Plain, NoShape
  300. Colorset 20 fg #000000, bg #757575, hi, sh, Plain, NoShape
  301.  
  302. #######
  303. # 4: Menus
  304. ###########
  305. MenuStyle * MenuColorset 5, ActiveColorset 6, GreyedColorset 7, TitleColorset 8
  306. MenuStyle * HilightBack, HilightTitleBack, SeparatorsLong
  307. MenuStyle * TrianglesSolid, TrianglesUseFore
  308. MenuStyle * ItemFormat "%|%3.1i%5.3l%5.3>%|"
  309. MenuStyle * Font "xft:$[infostore.FONT]:size=12:antialias=True"
  310.  
  311. # Root Menu
  312. #
  313. # The root menu will PopUp with a click in the root
  314. # window or using alt-f1 (or menu).
  315. DestroyMenu MenuFvwmRoot
  316. AddToMenu MenuFvwmRoot "Fvwm" Title
  317. + "&urxvt%icons/terminal.png%" Exec exec $[infostore.terminal]
  318. + "" Nop
  319. + "&Browsers%icons/programs.png%" Popup MenuBrowsers
  320. + "&Office%icons/programs.png%" Popup MenuOffice
  321. + "&Utils%icons/programs.png%" Popup MenuUtils
  322. + "&Leisure%icons/programs.png%" Popup MenuLeisure
  323. + "" Nop
  324. + "&Run%icons/programs.png%" Exec exec grun
  325. + "" Nop
  326. + "&Wallpaper%icons/refresh.png%" Exec exec $[infostore.HOME]/Scripts/refresh-wallpaper.sh NOTCRON
  327. + "Re&fresh%icons/refresh.png%" Refresh
  328. + "&Restart%icons/restart.png%" Restart
  329. + "&Quit%icons/quit.png%" Module FvwmForm FvwmForm-QuitVerify
  330. + "" Nop
  331. + "R&eboot%icons/restart.png%" Module FvwmForm FvwmForm-RebootVerify
  332. + "&Halt%icons/quit.png%" Module FvwmForm FvwmForm-HaltVerify
  333.  
  334. # Programs Menu
  335. #
  336. # This test for some common programs and adds them to the menu.
  337. # When adding programs you don't need to use the Test (x foo)
  338. # lines as this is only to help make this menu portable.
  339. DestroyMenu MenuBrowsers
  340. AddToMenu MenuBrowsers "Browsers" Title
  341. Test (x vivaldi-stable) + "Vivaldi" Exec exec vivaldi-stable
  342. Test (x firefox) + "Firefox" Exec exec firefox
  343. Test (x google-chrome-stable) + "Google-Chrome" Exec exec google-chrome-stable
  344. + "lynx" Exec $[infostore.terminal] -e lynx
  345.  
  346. DestroyMenu MenuOffice
  347. AddToMenu MenuOffice "Office" Title
  348. + "LibreOffice" Exec exec libreoffice7.3
  349. Test (x gvim) + "gVim" Exec exec gvim
  350. + "" Nop
  351. Test (x gimp) + "GIMP" Exec exec gimp
  352. Test (x inkscape) + "inkscape" Exec exec inkscape
  353. Test (x darktable) + "Darktable" Exec exec darktable
  354.  
  355. DestroyMenu MenuUtils
  356. AddToMenu MenuUtils "Utils" Title
  357. Test (x htop) + "htop" Exec $[infostore.terminal] -e htop
  358. Test (x atop) + "atop" Exec $[infostore.terminal] -e atop
  359. Test (x pw-top) + "pw-top" Exec $[infostore.terminal] -e pw-top
  360. Test (x alsamixer) + "alsamixer" Exec $[infostore.terminal] -e alsamixer
  361. + "" Nop
  362. + "vifm" Exec $[infostore.terminal] -e vifm ~ /
  363. + "" Nop
  364. + "daily-digest" Exec $[infostore.terminal] -e $[infostore.HOME]/Scripts/daily-digest.sh
  365. + "" Nop
  366. + "ksh" Exec $[infostore.terminal] -e /bin/ksh
  367. + "dash" Exec $[infostore.terminal] -e /bin/dash
  368. + "powershell" Exec $[infostore.terminal] -e /usr/bin/pwsh
  369.  
  370. DestroyMenu MenuLeisure
  371. AddToMenu MenuLeisure "Leisure" Title
  372. Test (x pcem) + "PCem" Exec exec pcem
  373. Test (x ncspot) + "ncspot" Exec $[infostore.terminal] -e ncspot
  374. + "frotz" Exec $[infostore.terminal] -g 211x49 -T frotz -e $[infostore.HOME]/Scripts/diafrotz.sh
  375. + "trek" Exec $[infostore.terminal] -e trek
  376.  
  377. # Window Operations Menus
  378. DestroyMenu MenuWindowOps
  379. AddToMenu MenuWindowOps
  380. + "Move" Move
  381. + "Resize" Resize
  382. + "Iconify" Iconify
  383. + "Maximize" Maximize
  384. + "Shade" WindowShade
  385. + "Stick" Stick
  386. + "" Nop
  387. + "Close" Close
  388. + "More..." Menu MenuWindowOpsLong This 0 0
  389.  
  390. DestroyMenu MenuWindowOpsLong
  391. AddToMenu MenuWindowOpsLong
  392. + "Move" Move
  393. + "Resize" Resize
  394. + "(De)Iconify" Iconify
  395. + "(Un)Maximize" Maximize
  396. + "(Un)Shade" WindowShade
  397. + "(Un)Sticky" Stick
  398. + "(No)TitleBar" Pick (CirculateHit) ToggleTitle
  399. + "Send To" Popup MenuSendTo
  400. + "" Nop
  401. + "Close" Close
  402. + "Destroy" Destroy
  403. + "" Nop
  404. + "Raise" Raise
  405. + "Lower" Lower
  406. + "" Nop
  407. + "StaysOnTop" Pick (CirculateHit) Layer 0 6
  408. + "StaysPut" Pick (CirculateHit) Layer 0 4
  409. + "StaysOnBottom" Pick (CirculateHit) Layer 0 2
  410. + "" Nop
  411. + "Identify" Module FvwmIdent
  412.  
  413. DestroyMenu MenuIconOps
  414. AddToMenu MenuIconOps
  415. + "(De)Iconify" Iconify
  416. + "(Un)Maximize" Maximize
  417. + "(Un)Shade" WindowShade
  418. + "(Un)Sticky" Stick
  419. + "(No)TitleBar" Pick (CirculateHit) ToggleTitle
  420. + "Send To" Popup MenuSendTo
  421. + "" Nop
  422. + "Close" Close
  423. + "Destroy" Destroy
  424. + "" Nop
  425. + "Raise" Raise
  426. + "Lower" Lower
  427. + "" Nop
  428. + "StaysOnTop" Pick (CirculateHit) Layer 0 6
  429. + "StaysPut" Pick (CirculateHit) Layer 0 4
  430. + "StaysOnBottom" Pick (CirculateHit) Layer 0 2
  431. + "" Nop
  432. + "Identify" Module FvwmIdent
  433.  
  434. DestroyMenu MenuSendTo
  435. AddToMenu MenuSendTo
  436. + "Current" MoveToCurrent
  437. + "Page" PopUp MenuSendToPage
  438. + "Desk" PopUp MenuSendToDesk
  439.  
  440. DestroyMenu MenuSendToDesk
  441. AddToMenu MenuSendToDesk
  442. + "Desk 0" MoveToDesk 0 0
  443. + "Desk 1" MoveToDesk 0 1
  444. + "Desk 2" MoveToDesk 0 2
  445. + "Desk 3" MoveToDesk 0 3
  446.  
  447. DestroyMenu MenuSendToPage
  448. AddToMenu MenuSendToPage
  449. + "Page (0,0)" MoveToPage 0 0
  450. + "Page (0,1)" MoveToPage 0 1
  451. + "Page (1,0)" MoveToPage 1 0
  452. + "Page (1,1)" MoveToPage 1 1
  453.  
  454. #######
  455. # 5: Mouse and Key bindings
  456. #
  457. # Contexts:
  458. # R = Root Window rrrrrrrrrrrrrrrrrrrrrr
  459. # W = Application Window rIrrrr<---------^rrrrr
  460. # F = Frame Corners rrrrrr[13TTTT642]rrrrr
  461. # S = Frame Sides rIrrrr[wwwwwwwww]rrrrr
  462. # T = Title Bar rrrrrr[wwwwwwwww]rrrrr
  463. # I = Icon rIrrrrv_________>rrrrr
  464. # rrrrrrrrrrrrrrrrrrrrrr
  465. #
  466. # Numbers are buttons: [1 3 5 7 9 TTTTT 0 8 6 4 2]
  467. #
  468. # Modifiers: (A)ny, (C)ontrol, (S)hift, (M)eta, (N)othing
  469. #
  470. # Format: Key <X> <Context> <Modifier> <Action>
  471. # Mouse <X> <Context> <Modifier> <Action>
  472. ####################
  473.  
  474. # Alt-F1 or Menu to load the root menu and Alt-Tab for a WindowList.
  475. # Ctrl-F1/F2/F3/F4 will switch between the Virtual Desktops.
  476. # Super_R (windows key) will launch a terminal.
  477. #
  478. # Silent supresses any errors (such as keyboards with no Menu key).
  479. Silent Key F1 A M Menu MenuFvwmRoot
  480. Silent Key Menu A A Menu MenuFvwmRoot
  481. Silent Key K A 4 WindowList Root c c NoDeskSort, SelectOnRelease Super_L
  482. Silent Key 1 A MC GotoDesk 0 0
  483. Silent Key 2 A MC GotoDesk 0 1
  484. Silent Key 3 A MC GotoDesk 0 2
  485. Silent Key 4 A MC GotoDesk 0 3
  486. Silent Key 1 A 4 GotoPage 0 0
  487. Silent Key 2 A 4 GotoPage 1 0
  488. Silent Key 3 A 4 GotoPage 0 1
  489. Silent Key 4 A 4 GotoPage 1 1
  490. Silent Key T A 4S Exec exec $[infostore.terminal]
  491. Silent Key P A 4 Exec exec grun
  492. Silent Key C A 4S Close
  493. Silent Key 1 A MCS MoveToDesk 0 0
  494. Silent Key 2 A MCS MoveToDesk 0 1
  495. Silent Key 3 A MCS MoveToDesk 0 2
  496. Silent Key 4 A MCS MoveToDesk 0 3
  497. Silent Key 1 A 4S MoveToPage 0 0
  498. Silent Key 2 A 4S MoveToPage 1 0
  499. Silent Key 3 A 4S MoveToPage 0 1
  500. Silent Key 4 A 4S MoveToPage 1 1
  501. Silent Key M A 4 Exec exec pactl set-sink-mute 0 toggle
  502. Silent Key Q A 4 Exec exec amixer -q sset Master 1%+
  503. Silent Key A A 4 Exec exec amixer -q sset Master 1%-
  504. Silent Key W A 4 Exec exec xbacklight -inc 2
  505. Silent Key S A 4 Exec exec xbacklight -dec 2
  506. Silent Key H A 4 TileLeft
  507. Silent Key L A 4 TileRight
  508. Silent Key F A 4S ThisWindow Maximize 100 100
  509. Silent Key F A 4 ThisWindow Maximize 0 100
  510. Silent Key C A 4 All ("Conky") Iconify
  511. Silent Key T A 4 ThisWindow TuckWindow
  512.  
  513. # Window Buttons: [1 3 5 7 9 TTTTT 0 8 6 4 2]
  514. # 1 - Open the WindowOps menu.
  515. # 2 - Close on single click, Destory on double click.
  516. # 4 - Maximize (right/middle button will only maximize vertical/horizontal)
  517. # 6 - Iconify (minimize)
  518. Mouse 1 1 A Menu MenuWindowOps Delete
  519. Mouse 1 2 A Close
  520.  
  521. # TitleBar: Click to Raise, Move, Double Click to Maximize
  522. # Mouse Wheel Up/Down to WindowShade On/Off
  523. # Borders: Click to raise, Move to Resize
  524. # Root Window: Left Click - Main Menu
  525. # Right Click - WindowOps Menu
  526. # Middle Click - Window List Menu
  527. # Right click TitleBar/Borders for WindowOps Menu
  528. Mouse 1 T A RaiseMoveX Move Maximize
  529. Mouse 1 FS A RaiseMove Resize
  530. Mouse 4 T A WindowShade True
  531. Mouse 5 T A WindowShade False
  532. Mouse 1 R A Menu MenuFvwmRoot
  533. Mouse 2 R A WindowList
  534. Mouse 3 R A Menu MenuWindowOpsLong
  535. Mouse 1 I A RaiseMoveX Move "Iconify off"
  536. Mouse 3 T A Menu MenuWindowOps
  537. Mouse 3 I A Menu MenuIconOps
  538.  
  539. #######
  540. # 6: Window Decor
  541. #
  542. # Buttons Locations: [1 3 5 7 9 TTTTT 0 8 6 4 2]
  543. #
  544. # 1 - WindowOps Menu
  545. # 2 - Close
  546. # 4 - Maximize
  547. # 6 - Minimize
  548. ###########
  549. TitleStyle Centered Height 18 -- Raised
  550. AddButtonStyle 1 Vector 3 0+4px50+1p@0 100-5px50+1p@0 100-5px50-2p@0
  551. AddButtonStyle 2 Vector 5 25x25@1 25x75@1 75x75@0 75x25@0 25x25@1
  552. ButtonStyle All - Clear
  553. ButtonStyle 1 - MwmDecorMenu
  554.  
  555. ############
  556. # 7: Modules
  557. #############
  558.  
  559. # FvwmIdent
  560. #
  561. # FvwmIdent is a module that can be used to get the various info about
  562. # a window. One use is getting the class/resource/name of a window.
  563. DestroyModuleConfig FvwmIdent:*
  564. *FvwmIdent: Colorset 10
  565. *FvwmIdent: Font "xft:$[infostore.FONT]:size=12:antialias=True"
  566.  
  567. # FvwmScript
  568. #
  569. # FvwmScript is a module that allows one to write custom desktop
  570. # widgets and various other tools. This config uses two FvwmScripts.
  571. # - DateTime - uses the output of "date" to display the date/time
  572. # on the TopPanel.
  573. # - Quit - This is a popup that asks for quit confirmation before
  574. # quitting fvwm.
  575. DestroyModuleConfig FvwmScript:*
  576. *FvwmScript: DefaultColorset 10
  577.  
  578. # FvwmButtons - TopPanel
  579. #
  580. # FvwmButtons is a powerful module that can be used to build custom
  581. # panels and docks. This config uses FvwmButtons to build the TopPanel.
  582. # The panel contains buttons to switch desks, FvwmPager, a system tray,
  583. # FvwmIconMan (list of running windows), and a clock.
  584. #
  585. # Note - To use the system tray you must have "stalonetray" installed.
  586. DestroyModuleConfig TopPanel:*
  587. *TopPanel: Geometry 1906x46+0+0
  588. *TopPanel: Colorset 10
  589. *TopPanel: Rows 46
  590. *TopPanel: Columns 1906
  591. *TopPanel: Frame 0
  592. *TopPanel: Font "xft:$[infostore.FONT]:size=12:antialias=True"
  593. *TopPanel: (120x46, Icon "/usr/share/fvwm3/default-config/images/fvwm-gray.png", Frame 0)
  594. *TopPanel: (22x46, Frame0)
  595. *TopPanel: (20x46, Id desk0, Title "A", Action (Mouse 1) GotoDesk 0 0, Colorset 15, ActiveColorset 17, Frame 0)
  596. *TopPanel: (20x46, Id desk1, Title "B", Action (Mouse 1) GotoDesk 0 1, ActiveColorset 17, Frame 0)
  597. *TopPanel: (20x46, Id desk2, Title "C", Action (Mouse 1) GotoDesk 0 2, ActiveColorset 17, Frame 0)
  598. *TopPanel: (20x46, Id desk3, Title "D", Action (Mouse 1) GotoDesk 0 3, ActiveColorset 17, Frame 0)
  599. *TopPanel: (14x46, Frame0)
  600. *TopPanel: (120x46, Swallow FvwmPager 'Module FvwmPager *', Frame 0)
  601. PipeRead 'echo "*TopPanel: ($((1920-432))x46,\
  602. Top, Swallow FvwmIconMan \'Module FvwmIconMan\', Frame 0)"'
  603. *TopPanel: (120x46, Swallow DateTime 'Module FvwmScript FvwmScript-DateTime',\
  604. Frame 0)
  605.  
  606. # FvwmPager
  607. #
  608. # This module displays the location of the windows on the various Pages
  609. # and Desks. This is setup to show only the Pages on the current Desk.
  610. DestroyModuleConfig FvwmPager:*
  611. *FvwmPager: NoSeparators
  612. *FvwmPager: Geometry 0x46+0+0
  613. *FvwmPager: Colorset * 10
  614. *FvwmPager: HilightColorset * 13
  615. *FvwmPager: BalloonColorset * 10
  616. *FvwmPager: Font None
  617. *FvwmPager: Balloons All
  618. *FvwmPager: BalloonFont "xft:$[infostore.FONT]:size=12:antialias=True"
  619. *FvwmPager: BallonYOffset +2
  620. *FvwmPager: WindowColorsets 20 15
  621. *FvwmPager: Window3DBorders
  622. *FvwmPager: MiniIcons
  623.  
  624. # FvwmIconMan
  625. #
  626. # FvwmIconMan is a powerful tool to list and manage windows. This
  627. # is used as the window list in the panel or taskbar.
  628. DestroyModuleConfig FvwmIconMan:*
  629. *FvwmIconMan: UseWinList true
  630. *FvwmIconMan: ButtonGeometry 120x23
  631. *FvwmIconMan: MaxButtonWidth 300
  632. *FvwmIconMan: ManagerGeometry 1x1
  633. *FvwmIconMan: Background #202020
  634. *FvwmIconMan: Foreground #bebebe
  635. *FvwmIconMan: ReliefThickness 2
  636. *FvwmIconMan: PlainButton up #000000 #757575
  637. *FvwmIconMan: SelectButton down #000000 #757575
  638. *FvwmIconMan: FocusButton up #000000 $[infostore.accent]
  639. *FvwmIconMan: FocusAndSelectButton down #000000 $[infostore.accent]
  640. *FvwmIconMan: IconColorset 14
  641. *FvwmIconMan: IconAndSelectColorset 18
  642. *FvwmIconMan: IconAndSelectButton flat
  643. *FvwmIconMan: Format "%t"
  644. *FvwmIconMan: Font "xft:$[infostore.FONT]:style=bold:size=10:antialias=True"
  645. *FvwmIconMan: Action Mouse 0 A ret
  646. *FvwmIconMan: Action Mouse 1 A sendcommand IconManClick
  647. *FvwmIconMan: Action Mouse 3 A sendcommand "Menu MenuIconOps"
  648. *FvwmIconMan: Resolution global
  649. *FvwmIconMan: Tips needed
  650. *FvwmIconMan: Sort id
  651. *FvwmIconMan: Title ""
  652. *FvwmIconMan: TitleButton flat
  653.  
  654. # FvwmEvent
  655. #
  656. # FvwmEvent is a module that can run an action or function
  657. # on specific events. This instance changes which desk number
  658. # is highlighted when the desk is changed.
  659. DestroyModuleConfig EventNewDesk:*
  660. *EventNewDesk: PassID
  661. *EventNewDesk: new_desk ChangeDesk
  662.  
  663. # FvwmForm
  664. #
  665. # FvwmForm is a module that can be used to build a GUI
  666. # form. Used with fvwm-menu-desktop-config.fpl.
  667. # This sets the default colorsets.
  668. *FvwmFormDefault: Colorset 10
  669. *FvwmFormDefault: ItemColorset 13
Advertisement
Add Comment
Please, Sign In to add comment