Advertisement
Guest User

fvwm_config

a guest
Aug 26th, 2013
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.84 KB | None | 0 0
  1. # Bash has my favourite shell syntax, so use it if it exists.
  2. Test (f /bin/bash) ExecUseShell /bin/bash
  3.  
  4. # Try this to change borders.
  5. BorderStyle Active Colorset 1 -- Flat NoInset
  6. BorderStyle InActive Colorset 1 -- Flat NoInset
  7.  
  8. ## define the screen area that windows can use. Syntax: 'EwmhBaseStruts left right top bottom' in pixels
  9. EwmhBaseStruts 0 3 0 0
  10.  
  11. ## set desktops
  12. DesktopSize 1x1
  13. DesktopName 0 Desk 0
  14. DesktopName 1 Desk 1
  15. DesktopName 2 Desk 2
  16. DesktopName 3 Desk 3
  17. DesktopName 4 Desk 4
  18. DesktopName 5 Desk 5
  19. DesktopName 6 Desk 6
  20. DesktopName 7 Desk 7
  21. DesktopName 8 Desk 8
  22. DesktopName 9 Desk 9
  23.  
  24. # Specifies the % of a page to scroll when the cursor hits the edge of a page. Unwanted.
  25. EdgeScroll 0 0
  26.  
  27. ## ignore NumLock
  28. # [3]http://www.fvwm.org/documentation/faq/#5.5
  29. IgnoreModifiers L25
  30.  
  31. ## set desktop background colour
  32. AddToFunc StartFunction
  33. + I Exec fvwm-root --retain-pixmap /home/nostromo/.fvwm/wally--1024x600.png
  34. + I Module FvwmCommandS
  35.  
  36. ## don't show icons for minimized/iconified windows
  37. Style "*" NoIcon
  38.  
  39. ## mouse cursor styles
  40. CursorStyle ROOT left_ptr
  41. CursorStyle TITLE left_ptr
  42. CursorStyle DEFAULT left_ptr
  43. CursorStyle SYS left_ptr
  44. CursorStyle MENU left_ptr
  45.  
  46. # Style * !Handles
  47. Style * !Title
  48. Style * BorderWidth 5
  49. Style * HandleWidth 5
  50. Style * NoDecorHint, NoFuncHint, GNOMEIgnoreHints, NoPPosition
  51. # MwmDecor HintOverride MwmFunctions, DecorateTransient,
  52.  
  53. Style "Thunar" Title
  54. TitleStyle LeftJustified
  55. TitleStyle -- flat
  56.  
  57. Style * FPSortWindowlistByFocus
  58. Style * ClickToFocus
  59. Style * SkipMapping
  60.  
  61. # Style experimentation
  62. #Style * GrabFocusOff, !FPGrabFocus, !FPGrabFocusTransient, FPOverrideGrabFocus, ClickToFocusRaisesOff
  63. #Style *irefox* GrabFocusOff
  64. #Style *irefox* !FPGrabFocus
  65. #Style *irefox* !FPGrabFocusTransient
  66. #Style *hunar* FPOverrideGrabFocus
  67.  
  68. Style * SmartPlacement, WindowShadeSteps 20, ResizeOpaque
  69.  
  70. # Recall that mouse formats look like this:
  71. #
  72. # +------------+
  73. # | || || || |
  74. # | |
  75. # +------------+
  76. # 1 2 3
  77. # -------------------------------------------------------------
  78. # Contexts: | Binding Functions:
  79. # R = Root Window rrrrrrrrrrrrrrrrrrrrrr |
  80. # W = Application Window rIrrrrFSSSSSSSSSFrrrrr | "M" stands for Motion
  81. # F = Frame Corners rrrrrrS13TTTT642Srrrrr | "C" stands for Click
  82. # S = Frame Sides rIrrrrSwwwwwwwwwSrrrrr | "H" stands for Hold
  83. # T = Title Bar rrrrrrSwwwwwwwwwSrrrrr | "D" stands for Double Click
  84. # I = Icon rIrrrrFSSSSSSSSSFrrrrr | "I" stands for Immediate
  85. # rrrrrrrrrrrrrrrrrrrrrr |
  86. # |
  87. # Numbers are buttons: 1 3 5 7 9 0 8 6 4 2
  88. #
  89. # Modifiers: (A)ny, (C)ontrol, (S)hift, (M)eta, (N)othing, (4) Super
  90. # -------------------------------------------------------------
  91.  
  92. ## mouse bindings
  93. Mouse 1 R A Menu Mainmenu Nop
  94. Mouse 3 R A WindowList
  95. Mouse 3 F A Menu MenuFvwmWindowOps Nop
  96. Mouse 3 S A Menu MenuFvwmWindowOps Nop
  97. Mouse 1 W M Pick move
  98.  
  99. ## key bindings
  100. Key Escape A S Popup Mainmenu Root c c
  101.  
  102. # Define Alt-Tab, to cycle thru the windows.
  103. DestroyFunc FocusRaiseAndStuff
  104. AddToFunc FocusRaiseAndStuff
  105. + I Iconify off
  106. + I Focus
  107. + I Raise
  108.  
  109. Key Tab A M Next (CurrentPage, !Sticky) FocusRaiseAndStuff
  110.  
  111. # Close Window. Modified to Alt-F4
  112. Key F4 A M Close
  113.  
  114. # Maximise, Vert&Horiz. Modified - Alt-F10
  115. Key F10 A M Maximize 100 100
  116.  
  117. # The same here as Minimize...
  118. Key F9 A M Iconify
  119.  
  120. # Move Window with Arrows
  121. Key Right A SM PointerWindow Move w+1 w+0 Warp
  122. Key Left A SM PointerWindow Move w-1 w+0 Warp
  123. Key Up A SM PointerWindow Move w+0 w-1 Warp
  124. Key Down A SM PointerWindow Move w+0 w+1 Warp
  125.  
  126. # Resize Window with Arrows
  127. Key Right A CM PointerWindow Resize br w+1 w+0
  128. Key Left A CM PointerWindow Resize br w-1 w+0
  129. Key Up A CM PointerWindow Resize br w+0 w-1
  130. Key Down A CM PointerWindow Resize br w+0 w+2
  131.  
  132. # Change to Desktop/Workspace N
  133. Key 0 A 4 GotoDesk 0 0
  134. Key 1 A 4 GotoDesk 0 1
  135. Key 2 A 4 GotoDesk 0 2
  136. Key 3 A 4 GotoDesk 0 3
  137. Key 4 A 4 GotoDesk 0 4
  138. Key 5 A 4 GotoDesk 0 5
  139. Key 6 A 4 GotoDesk 0 6
  140. Key 7 A 4 GotoDesk 0 7
  141. Key 8 A 4 GotoDesk 0 8
  142. Key 9 A 4 GotoDesk 0 9
  143.  
  144. # Move Current Window to Desktop/Workspace N
  145. Key 0 A S4 Current MoveToDesk 0 0
  146. Key 1 A S4 Current MoveToDesk 0 1
  147. Key 2 A S4 Current MoveToDesk 0 2
  148. Key 3 A S4 Current MoveToDesk 0 3
  149. Key 4 A S4 Current MoveToDesk 0 4
  150. Key 5 A S4 Current MoveToDesk 0 5
  151. Key 6 A S4 Current MoveToDesk 0 6
  152. Key 7 A S4 Current MoveToDesk 0 7
  153. Key 8 A S4 Current MoveToDesk 0 8
  154. Key 9 A S4 Current MoveToDesk 0 9
  155.  
  156. # Move Left/Right to Desktop/Workspace - Using the Super key
  157. Key Left A 4 GotoDesk -1 0 9
  158. Key Right A 4 GotoDesk 1 0 9
  159.  
  160. # Move Left/Right to Desktop/Workspace - Using the Mouse-Wheel
  161. Mouse 4 R A GotoDesk -1 0 9
  162. Mouse 5 R A GotoDesk 1 0 9
  163.  
  164. # Move Left/Right to Desktop/Workspace - Using the Alt key
  165. Key Left A M GotoDesk -1 0 9
  166. Key Right A M GotoDesk 1 0 9
  167.  
  168. # Use Super-Shift-[0-9] to move the current window to the next/prev desktop
  169. DestroyFunc MoveToNextWorkspace
  170. AddToFunc MoveToNextWorkspace
  171. + I Current MoveToDesk 1 0 9
  172. + I GotoDesk 1 0 9
  173.  
  174. DestroyFunc MoveToPrevWorkspace
  175. AddToFunc MoveToPrevWorkspace
  176. + I Current MoveToDesk -1 0 9
  177. + I GotoDesk -1 0 9
  178.  
  179. Key Right A S4 MoveToNextWorkspace
  180. Key Left A S4 MoveToPrevWorkspace
  181.  
  182. Key G A 4 Exec gmrun
  183. Key S A 4 Exec exec $HOME/bin/toggle_dzen.sh
  184.  
  185. ## menu styles
  186. Colorset 00 fg white, bg #69768B
  187. Colorset 02 fg #C0C0C0, bg #8D97AF
  188.  
  189. MenuStyle * Hilight3DThin, Animation, PopupOffset 0 100
  190. MenuStyle * Font "xft:Liberation Sans:style=Regular:pixelsize=16"
  191. MenuStyle * TitleFont "xft:Liberation Sans:style=Bold:pixelsize=16"
  192. MenuStyle * MenuColorset 00, ActiveColorset 01, HilightBack
  193. MenuStyle * BorderWidth 1, TitleUnderlines1, SeparatorsLong
  194. MenuStyle * TrianglesSolid, ItemFormat "%.2|%.5i%.5l%.5i%2.3>%2|"
  195.  
  196. Read /etc/X11/fvwm/menudefs.hook
  197.  
  198. ## main menu
  199. DestroyMenu "Mainmenu"
  200. AddToMenu "Mainmenu" "Main Menu" Title
  201. + "XTerm" Exec exec xterm
  202. + "Links 2" Exec exec links2 -g
  203. + "Krusader" Exec exec krusader
  204. + "" Nop
  205. + "Debian Menu" Popup /Debian
  206. + "" Nop
  207. + "Identify" Pick Module FvwmIdent
  208. + "" Nop
  209. + "FvwmConsole" Module FvwmConsole -terminal urxvt -geometry 60x18 -name FvwmConsole
  210. + "" Nop
  211. + "Restart Fvwm" Restart
  212. + "Quit Fvwm" Quit
  213. + "" Nop
  214. + "Reboot" Exec exec sudo /sbin/reboot
  215. + "Halt" Exec exec sudo /sbin/halt
  216.  
  217. ## window operations menu
  218. DestroyMenu MenuFvwmWindowOps
  219. AddToMenu MenuFvwmWindowOps
  220. + "Move To Desk" Popup MenuDeskList
  221. + "" Nop
  222. + "Shade/Unshade" Pick WindowShade Toggle
  223. + "Iconify" Pick Iconify
  224. + "Maximize" Pick Maximize-Plus
  225. + "" Nop
  226. + "Raise/Lower" Pick RaiseLower
  227. + "Stick/Unstick" Pick Stick
  228. + "" Nop
  229. + "Identify" Pick Module FvwmIdent
  230. + "" Nop
  231. + "Close" Pick Close
  232. + "Destroy" Pick Destroy
  233.  
  234. ## move to desk menu
  235. DestroyMenu MenuDeskList
  236. AddToMenu MenuDeskList
  237. + " Desk 0" Pick MoveToDesk 0 0
  238. + " Desk 1" Pick MoveToDesk 0 1
  239. + " Desk 2" Pick MoveToDesk 0 2
  240. + " Desk 3" Pick MoveToDesk 0 3
  241. + " Desk 4" Pick MoveToDesk 0 4
  242. + " Desk 5" Pick MoveToDesk 0 5
  243. + " Desk 6" Pick MoveToDesk 0 6
  244. + " Desk 7" Pick MoveToDesk 0 7
  245. + " Desk 8" Pick MoveToDesk 0 8
  246. + " Desk 9" Pick MoveToDesk 0 9
  247.  
  248. Style gmrun PositionPlacement Center
  249. Style Firefox StartsOnDesk 5
  250. Style leafpad StartsOnDesk 1
  251. Style xclock StartsOnDesk 1
  252.  
  253. #########################################
  254. # THE START-FUNCTION - MAIN DECLARATION #
  255. #########################################
  256.  
  257. AddToFunc StartFunction
  258. + I Exec exec clipit -n
  259. + I Exec exec sh -c " $HOME/bin/tmuxer_1.sh tmux1 && urxvt -title tmux1 -e tmux attach -t tmux1 "
  260. + I Exec exec $HOME/dzenconky/dzen2.pl
  261. + I Schedule 10500 12003 Exec exec $HOME/bin/desktop_start_1.sh
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement