daily pastebin goal
61%
SHARE
TWEET

Untitled

a guest Feb 26th, 2017 345 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ########################
  2. #                         _                  
  3. # ___  _____   _____ _ __(_) ___  __ _ _ __  
  4. #/ __|/ _ \ \ / / _ \ '__| |/ _ \/ _` | '_ \
  5. #\__ \ (_) \ V /  __/ |  | |  __/ (_| | | | |
  6. #|___/\___/ \_/ \___|_|  |_|\___|\__, |_| |_|
  7. #                                |___/      
  8. #
  9. #FVWM CONFIGURATION FILE
  10. #Matthias Lamers
  11. ###
  12.  
  13. #Environment Variables
  14. #SetEnv fvwm_img $[FVWM_USERDIR]/images
  15. #SetEnv fvwm_icon $[FVWM_USERDIR]/icons
  16. #SetEnv fvwm_scrpt $./scripts
  17. #SetEnv fvwm_wallpapers $[FVWM_USERDIR]/wallpaper
  18.  
  19. SetEnv fvwm_webbrowser /usr/bin/firefox
  20. SetEnv fvwm_term /usr/bin/urxvt
  21.  
  22. #Setting the Image Path
  23. ImagePath $HOME/.fvwm/icons:+:/usr/include/x11/bitmaps:/usr/share/icons:/usr/share/pixmaps
  24.  
  25. #Virtual desktop setup
  26.  
  27. DesktopSize 1x1
  28. EdgeScroll 0 0
  29. EdgeThickness 0
  30.  
  31. DesktopName 0 Main
  32. DesktopName 1 Internet
  33. DefaultFont "xft:Roboto:size=11"
  34.  
  35. #Mouse & Focus
  36. ClickTime 350
  37. MoveThreshold 3
  38. Style * SloppyFocus, MouseFocusClickRaises
  39.  
  40. EwmhBaseStruts 0 291 0 0
  41. IgnoreModifiers L25
  42.  
  43. #Global Styles
  44. Style * IconBox  220x600-0-0, IconFill left bottom
  45. Style * NoPPosition, ResizeOpaque
  46. OpaqueMoveSize -1
  47. Emulate MWM
  48. HideGeometryWindow Never
  49. XorValue 2993
  50. Style * DecorateTransient, DontRaiseTransient
  51. Style * DontLowerTransient, StackTransientParent
  52. Style * GrabFocusTransientOff
  53. Style * WindowShadeSteps 20, WindowShadeScrolls
  54. SetAnimation  10  -.01 0 .01 .03 .08 .18 .3 .45 .6 .75 .85 .90 .94 .97 .99 1.0
  55. Style * MwmDecor, SlipperyIcon
  56. Style * ClickToFocus
  57. Style * FPGrabFocus
  58. Style * Handlewidth 5
  59. #Style * NoIcon
  60.  
  61. #####
  62. # Program Styles
  63. ###########
  64. Style * Icon questionmark.xpm
  65. Style "Conky" !Title, !Handles, Sticky, WindowListSkip, !Borders, FixedPosition, FixedSize, !Iconifiable, StaysOnBottom
  66. Style "FvwmButtons" !Title, !Handles, Sticky, WindowListSkip, !Borders, StaysOnTop, FixedPosition, FixedSize, !Iconifiable
  67. Style "tint2" !Title, !Handles, !borders, StaysOnTop, EWMHIgnoreStrutHints, Sticky, EWMHPlacementIgnoreWorkingArea, NeverFocus, WindowListSkip,
  68. Style "XTerm" Icon 48x48/xterm.png, NoActiveIconOverride, MiniIcon mini/xterm.png
  69. Style "URxvt" Icon term.xpm, MiniIcon mini.xterm.xpm
  70. Style "gvim" Icon 48x48/gvim.png, IconOverride, MiniIcon mini/gvim.png, EWMHMiniIconOverride
  71. Style "Firefox-bin" Icon 48x48/firefox.png, MiniIcon mini/firefox.png, EWMHMiniIconOverride, StartsOnDesk 1
  72. Style "irssi" Icon 48x48/gaim.png, MiniIcon mini/irc.png
  73. Style "xmms" WindowListSkip, CirculateSkip
  74. Style "MPlayer" Icon 48x48/mplayer.png
  75. Style FvwmPager Sticky, NoTitle, NoHandles, WindowListSkip, Borderwidth 5
  76. Style "FvwmTaskBar" NoTitle, !Handles, !Borders, Sticky, WindowListSkip, CirculateSkip, StaysOnBottom, FixedPosition, FixedSize, !Iconifiable
  77.  
  78. #MENUS
  79.  
  80. MenuStyle * ItemFormat "%.4s%.2|%.5i%.5l%2.3>%2|"
  81. MenuStyle * PopupOffset 0 100
  82.  
  83. DestroyMenu MenuPower
  84. AddToMenu   MenuPower "Power" Title
  85. + "Power Off" Exec poweroff
  86. + "Reboot" Exec reboot
  87.  
  88. DestroyMenu MenuQuit-Verify
  89. AddToMenu   MenuQuit-Verify "End Session" Title
  90. + %mini.monitor.xpm%"Start Screensaver" Exec xscreensaver-command -activate
  91. + %mini.lock.xpm%"Lock Screen" Exec xscreensaver-command -lock
  92. + ""                Nop
  93. + %mini.run.xpm%"Logoff"          Quit
  94. + %mini.turn.xpm%"Restart fvwm"    Restart
  95. + %mini.icons.xpm%"Change WM" Popup MenuChangeWM
  96. + ""                Nop
  97. + %mini.power.xpm%"Power" Popup MenuPower
  98. + ""                Nop
  99. + %mini.cross.xpm%"Cancel"          Nop
  100.  
  101. DestroyMenu MenuChangeWM
  102. AddToMenu MenuChangeWM "Change Window Manager" Title
  103. + %mini.windows.xpm%"openbox" Restart openbox
  104. + %mini.windows.xpm%"LXDE" Restart startlxde
  105. + %mini.twm.xpm%"twm" Restart twm
  106. + %mini.sh1.xpm%"Only xterm" Restart xterm
  107.  
  108. DestroyMenu Accessories
  109. AddToMenu Accessories "Accessories" Title
  110. + "Eagle Mode" Exec eaglemode
  111.  
  112. DestroyMenu Graphics
  113. AddToMenu   Graphics "Graphics" Title
  114. + "GIMP" Exec gimp
  115. + "Inkscape" Exec inkscape
  116.  
  117. DestroyMenu Multimedia
  118. AddToMenu   Multimedia "Multimedia" Title
  119. + "Audacious" Exec audacious
  120.  
  121. DestroyMenu Editors
  122. AddToMenu   Editors "Editors" Title
  123. + "Geany" Exec geany
  124. + "gVIM" Exec gvim
  125. + "VIM" Exec urxvt -e vim
  126. + "Nano" Exec urxvt -e nano
  127. + "kicad" Exec kicad
  128.  
  129. DestroyMenu Development
  130. AddToMenu   Development "Dev Tools" Title
  131. + "gitk" Exec gitk
  132. + "glade" Exec glade
  133. + "designer" Exec designer
  134. + "xfontsel" Exec xfontsel
  135. + "git" Exec git gui
  136.  
  137. DestroyMenu Office
  138. AddToMenu   Office "Office" Title
  139. + "LibreOffice Writer" Exec lowriter
  140. + "LibreOffice Calc" Exec localc
  141. + "LibreOffice Draw" Exec lodraw
  142. + "LibreOffice Impress" Exec loimpress
  143. + "LibreOffice Math" Exec lomath
  144. + "LibreOffice Base" Exec lobase
  145. + "LibreOffice Web" Exec loweb
  146. + "TeXmaker" Exec texmaker
  147.  
  148. DestroyMenu MathScience
  149. AddToMenu MathScience "Math and Science" Title
  150. + "gnuplot" Exec urxvt --command=gnuplot -t gnuplot
  151.  
  152. DestroyMenu System
  153. AddToMenu System "System" Title
  154. + "top" Exec urxvt -e top -T top
  155. + %mini.perf.xpm%"xosview" Exec xosview
  156. + "Midnight Commander" Exec urxvt -e mc
  157. + "xfontsel" Exec xfontsel
  158. + "hardinfo" Exec hardinfo
  159. #+ %mini.telnet.xpm%"System Update" Exec terminator -e update -T SystemUpdate
  160.  
  161. DestroyMenu Settings
  162. AddToMenu Settings "Settings" Title
  163. + "xscreensaver Settings" Exec xscreensaver-demo
  164. + "Configure Look and Feel" Exec lxappearance
  165. + %mini.desktop.xpm%"Wallpaper" Exec nitrogen
  166. + "FVWM Console" FvwmConsole
  167. + %mini.books.xpm%"FVWM Man Pages" Popup FvwmManPage
  168.  
  169. DestroyMenu RootMenu
  170. AddToMenu   RootMenu "soveriegn" Title
  171. + %mini.filemgr.xpm%"File Manager" Exec thunar
  172. + %mini.sh1.xpm%"Terminal" Exec urxvt
  173. + %firefox-16-noshadow.png%"Internet" Exec firefox
  174. + "Run..." Exec gmrun
  175. + "" Nop
  176. + "Accessories" Popup Accessories
  177. + "Graphics" Popup Graphics
  178. + "Multimedia" Popup Multimedia
  179. + "Editors" Popup Editors
  180. + "Math and Science" Popup MathScience
  181. + "Dev" Popup Development
  182. + "Office" Popup Office
  183. + "System" Popup System
  184. + "Settings" Popup Settings
  185. + "" Nop
  186. + %mini.run.xpm%"Exit FVWM" Popup MenuQuit-Verify
  187.  
  188. DestroyFunc ViewManPage
  189. AddToFunc   ViewManPage
  190. + I Exec exec urxvt -e man $0
  191.  
  192. DestroyMenu FvwmManPage
  193. AddToMenu   FvwmManPage "Fvwm Man Pages" Title
  194. + "%mini.book1.xpm%fvwm"                ViewManPage fvwm
  195. + "%mini.book1.xpm%FvwmAnimate"         ViewManPage FvwmAnimate
  196. + "%mini.book1.xpm%FvwmAuto"            ViewManPage FvwmAuto
  197. + "%mini.book1.xpm%FvwmBacker"          ViewManPage FvwmBacker
  198. + "%mini.book1.xpm%FvwmBanner"          ViewManPage FvwmBanner
  199. + "%mini.book1.xpm%FvwmButtons"         ViewManPage FvwmButtons
  200. + "%mini.book1.xpm%FvwmCommand"         ViewManPage FvwmCommand
  201. + "%mini.book1.xpm%FvwmConsole"         ViewManPage FvwmConsole
  202. + "%mini.book1.xpm%FvwmConsoleC.pl"     ViewManPage FvwmConsoleC.pl
  203. + "%mini.book1.xpm%FvwmCpp"             ViewManPage FvwmCpp
  204. + "%mini.book1.xpm%FvwmDebug"           ViewManPage FvwmDebug
  205. + "%mini.book1.xpm%FvwmDragWell"        ViewManPage FvwmDragWell
  206. + "%mini.book1.xpm%FvwmEvent"           ViewManPage FvwmEvent
  207. + "%mini.book1.xpm%FvwmForm"            ViewManPage FvwmForm
  208. + "%mini.book1.xpm%FvwmGtk"             ViewManPage FvwmGtk
  209. + "%mini.book1.xpm%FvwmGtkDebug"        ViewManPage FvwmGtkDebug
  210. + "%mini.book1.xpm%FvwmIconBox"         ViewManPage FvwmIconBox
  211. + "%mini.book1.xpm%FvwmIconMan"         ViewManPage FvwmIconMan
  212. + "%mini.book1.xpm%FvwmIdent"           ViewManPage FvwmIdent
  213. + "%mini.book1.xpm%FvwmM4"              ViewManPage FvwmM4
  214. + "%mini.book1.xpm%FvwmPager"           ViewManPage FvwmPager
  215. + "%mini.book1.xpm%FvwmPerl"            ViewManPage FvwmPerl
  216. + "%mini.book1.xpm%FvwmProxy"           ViewManPage FvwmProxy
  217. + "%mini.book1.xpm%FvwmRearrange"       ViewManPage FvwmRearrange
  218. + "%mini.book1.xpm%FvwmSave"            ViewManPage FvwmSave
  219. + "%mini.book1.xpm%FvwmSaveDesk"        ViewManPage FvwmSaveDesk
  220. + "%mini.book1.xpm%FvwmScript"          ViewManPage FvwmScript
  221. + "%mini.book1.xpm%FvwmScroll"          ViewManPage FvwmScroll
  222. + "%mini.book1.xpm%FvwmTaskBar"         ViewManPage FvwmTaskBar
  223. + "%mini.book1.xpm%FvwmTheme"           ViewManPage FvwmTheme
  224. + "%mini.book1.xpm%FvwmWharf"           ViewManPage FvwmWharf
  225. + "%mini.book1.xpm%FvwmWinList"         ViewManPage FvwmWinList
  226. + "%mini.book1.xpm%FvwmWindowMenu"      ViewManPage FvwmWindowMenu
  227. + "" Nop
  228. + "%mini.book1.xpm%fvwm-config"         ViewManPage fvwm-config
  229. + "%mini.book1.xpm%fvwm-perllib"        ViewManPage fvwm-perllib
  230. + "%mini.book1.xpm%fvwm-root"           ViewManPage fvwm-root
  231. + "%mini.book1.xpm%fvwm-bug"            ViewManPage fvwm-bug
  232. + "%mini.book1.xpm%fvwm-convert-2.2"    ViewManPage fvwm-convert-2.2
  233. + "%mini.book1.xpm%fvwm-convert-2.4"    ViewManPage fvwm-convert-2.4
  234. + "%mini.book1.xpm%fvwm-convert-2.6"    ViewManPage fvwm-convert-2.6
  235. + "" Nop
  236. + "%mini.book1.xpm%fvwm-menu-desktop"   ViewManPage fvwm-menu-desktop
  237. + "%mini.book1.xpm%fvwm-menu-directory" ViewManPage fvwm-menu-directory
  238. + "%mini.book1.xpm%fvwm-menu-headlines" ViewManPage fvwm-menu-headlines
  239. + "%mini.book1.xpm%fvwm-menu-xlock"     ViewManPage fvwm-menu-xlock
  240.  
  241. DestroyMenu MenuFvwmWindowOps
  242. AddToMenu   MenuFvwmWindowOps "$[gt.Window Ops]" Title
  243. + "$[gt.&Move]"              Move
  244. + "Move to Desk"             Popup MenuMoveToDesktop
  245. + "$[gt.&Resize]"            Resize
  246. + "$[gt.R&aise]"             Raise
  247. + "$[gt.&Lower]"             Lower
  248. + "$[gt.(De)&Iconify]"       Iconify
  249. + "$[gt.(Un)&Stick]"         Stick
  250. + "$[gt.(Un)Ma&ximize]"      Maximize
  251. + "" Nop
  252. + "$[gt.I&dentify]"          Module FvwmIdent
  253. + "" Nop
  254. + "$[gt.&Close]"             Close
  255. + "$[gt.&Destroy]"           Destroy
  256.  
  257. DestroyMenu MenuMoveToDesktop
  258. AddToMenu   MenuMoveToDesktop "Move To" Title
  259. + "$[desk.name0]" MoveToDesk 0 0
  260. + "$[desk.name1]" MoveToDesk 0 1
  261. + "$[desk.name2]" MoveToDesk 0 2
  262. + "$[desk.name3]" MoveToDesk 0 3
  263.  
  264. DestroyModuleConfig FvwmForm-Stop: *
  265. *FvwmForm-Stop: GrabServer
  266. *FvwmForm-Stop: WarpPointer
  267. *FvwmForm-Stop: Title   "End Session"
  268. *FvwmForm-Stop: Line    center
  269. *FvwmForm-Stop: Text    "Do you want to:"
  270. *FvwmForm-Stop: Line    expand
  271. *FvwmForm-Stop: Button  quit    "Logout"    ^M
  272. *FvwmForm-Stop: Command Quit
  273. *FvwmForm-Stop: Button  quit    "Reboot"
  274. *FvwmForm-Stop: Command Exec    reboot
  275. *FvwmForm-Stop: Button  restart "Restart WM"
  276. *FvwmForm-Stop: Command Restart
  277. *FvwmForm-Stop: Button  quit    "Power off"
  278. *FvwmForm-Stop: Command Exec    poweroff
  279. *FvwmForm-Stop: Button  quit    "Cancel"
  280. *FvwmForm-Stop: Command Nop
  281. *FvwmForm-Stop: Line    center
  282. *FvwmForm-Stop: Timeout 60  Quit    "Automatic logoff in %% seconds..."
  283.  
  284.  
  285. #Modules
  286. DestroyModuleConfig DeskBar: *
  287. *DeskBar: Geometry 291x300-0+0
  288. *DeskBar: Columns 2
  289. *DeskBar: Rows 8
  290. *DeskBar: Back gray
  291. *DeskBar: Font "xft:Roboto:size=11"
  292. *DeskBar: (2x1, Frame 2, Back steelblue, Fore white, Title "Menu", Action(Mouse 1) Menu RootMenu)
  293. *DeskBar: (2x1, Frame 2, Title "Terminal", Action(Mouse 1) 'Exec exec urxvt')
  294. *DeskBar: (2x1, Frame 2, Title "File Manager", Action(Mouse 1) 'Exec exec thunar', Action(Mouse2) 'Exec exec lxsudo xfe')
  295. *DeskBar: (2x1, Frame 2, Title "Firefox", Action(Mouse 1) 'Exec exec firefox')
  296. *DeskBar: (2x1, Frame 2, Title "Run...", Action(Mouse1) 'Exec exec gmrun')
  297. *DeskBar: (2x2, Frame 0, Swallow "FvwmPager" "FvwmPager 0 3")
  298. *DeskBar: (1x1, Frame 2, Back steelblue, Icon mini.exit.xpm, Action(Mouse1) 'FvwmForm FvwmForm-Stop')
  299. *DeskBar: (1x1, Frame 2, Back steelblue, Icon mini.lock.xpm, Action(Mouse1) 'Exec xscreensaver-command -lock')
  300.  
  301. *FvwmWindowMenu: AllDesks on
  302. *FvwmWindowMenu: DontShowName ^%
  303.  
  304. *FvwmPager: MiniIcons
  305. *FvwmPager: SmallFont -misc-fixed-medium-r-normal-*-6-*-*-*-*-*-*-*
  306.  
  307. DestroyModuleConfig FvwmTaskBar: *
  308. *FvwmTaskBar: Geometry +0+0
  309. *FvwmTaskBar: Font "xft:Droid Sans:size=10"
  310. *FvwmTaskBar: SelFont "xft:Droid Sans:size=10"
  311. *FvwmTaskBar: StatusFont "xft:Droid Sans:size=10"
  312. *FvwmTaskBar: Colorset 9
  313. *FvwmTaskBar: IconColorset 9
  314. *FvwmTaskBar: FocusColorset 9
  315. *FvwmTaskBar: TipsColorset 9
  316. *FvwmTaskBar: UseSkipList
  317. *FvwmTaskBar: UseIconNames
  318. *FvwmTaskBar: ShowTips
  319. *FvwmTaskBar: StartName FVWM
  320. *FvwmTaskBar: StartMenu RootMenu
  321. *FvwmTaskBar: MailBox None
  322.  
  323.  
  324.  
  325. #####
  326. #
  327. # DestroyFunc FuncName
  328. # AddToFunc   FuncName
  329. # + I (Action to happen immediately)
  330. # + C (Action to happen on a mouse 'click)
  331. # + D (Action to happen on a mouse 'double click')
  332. # + H (Action to happen on a mouse 'hold')
  333. # + M (Action to happen on a mouse 'motion')
  334. #
  335. ###########
  336.  
  337. DestroyFunc FvwmMenuOrClose
  338. AddToFunc FvwmMenuOrClose
  339. + H Nop
  340. + M Nop
  341. + C Menu MenuFvwmWindowOps
  342. + D Close
  343.  
  344. #BINDINGS
  345. Mouse 1 1 A FvwmMenuOrClose
  346. #Mouse 1 2 A Close
  347. Mouse 1 2 A Maximize
  348. Mouse 1 4 A Iconify
  349. Mouse 1 I A Iconify
  350. Mouse 1 R A Menu RootMenu
  351.  
  352. #DECOR
  353.  
  354. #windows
  355. Style "*" ForeColor lightsteelblue
  356. Style "*" BackColor dimgrey
  357.  
  358. BorderStyle Inactive -- HiddenHandles NoInset
  359.  
  360. HilightColor white steelblue
  361.  
  362. Style "*" Font "xft:Roboto:style=Bold:slant=italic:size=12"
  363. TitleStyle LeftJustified Height 26
  364. TitleStyle \
  365.         ActiveUp (-- Raised) \
  366.         ActiveDown (-- Flat) \
  367.         InactiveUp (-- Flat) \
  368.         InactiveDown (-- Sunk)
  369. ButtonStyle 2 - MwmDecorMax
  370. ButtonStyle 4 - MwmDecorMin
  371. ButtonStyle 1 - MwmDecorMenu
  372. ButtonStyle 4 Active Vector 4 50x75@1 25x25@1 75x25@1 50x75@0
  373. ButtonStyle 2 Active Vector 4 50x25@1 75x75@0 25x75@0 50x25@1
  374. ButtonStyle 2 ToggledActive Vector 8 50x25@1 75x45@0 25x45@0 50x25@1 50x75@4 75x55@0 25x55@1 50x75@1
  375. ButtonStyle 1 ActiveUp Vector 5 20x80@4 80x80@1 80x20@1 20x20@0 20x80@0
  376. ButtonStyle 4 Inactive Vector 4 50x75@1 25x25@1 75x25@1 50x75@0 -- Flat
  377. ButtonStyle 2 Inactive Vector 4 50x25@1 75x75@0 25x75@0 50x25@1 -- Flat
  378. ButtonStyle 1 Inactive Vector 5 20x80@4 80x80@0 80x20@0 20x20@1 20x80@1 -- Flat
  379. ButtonStyle 1 ActiveDown Vector 5 20x80@4 80x80@0 80x20@0 20x20@1 20x80@1
  380.  
  381.  
  382.  
  383.  
  384. ##menus
  385. Colorset 3 fg black, bg cadetblue, VGradient 255 royalblue cadetblue
  386. Colorset 4 fg ivory, bg black
  387.  
  388.  
  389. MenuStyle * MenuColorset 3
  390. MenuStyle * ActiveFore, ActiveColorset 4
  391. MenuStyle * Animation
  392. MenuStyle * Font "Shadow=1 1 SE:xft:Droid Sans:size=10"
  393. MenuStyle * TitleFont "Shadow=1 1 SE:xft:Droid Serif:style=bold:size=10"
  394. MenuStyle * Hilight3DThick
  395. MenuStyle * VerticalItemSpacing 1 1, VerticalTitleSpacing 2 2
  396.  
  397. #STARTUP FUNCTIONS
  398. DestroyFunc InitFunction
  399. AddToFunc InitFunction
  400. + I Exec exec nitrogen --restore
  401. + I Exec exec urxvt
  402. + I Exec exec xscreensaver -no-splash
  403. + I Exec exec conky
  404. #+ I Exec exec tint2
  405.  
  406. DestroyFunc StartFunction
  407. AddToFunc StartFunction
  408. + I Module FvwmButtons DeskBar
  409. + I Module FvwmWindowMenu
  410. + I Module FvwmTaskBar
  411.  
  412. DestroyFunc RestartFunction
  413. AddToFunc RestartFunction
  414. + I Nop
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top