Dj_Dexter

.vtwmrc

May 24th, 2012
237
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.72 KB | None | 0 0
  1. #
  2. # Name: flat xwindow
  3. #
  4. # Author: Brian Gomes Bascoy Re-edited: Dj_Dexter
  5. #
  6. # Based on Cudcv's .tmwrc (with vtwm extensions)
  7. #
  8.  
  9. ###XClock resource###
  10. # xclock*geometry: -2+2
  11. # xclock*analog: false
  12. # xclock*background: gray
  13. # xclock*width: 150
  14. # xclock*height: 28
  15. # xclock*render: false
  16. # xclock*padding: 1
  17.  
  18. ###.xinitrc###
  19. # bggen darkcyan darkblue black | xv -8 -quic -root -quit -
  20. # xclock -strftime " %a %d %b %I:%M %p" &
  21.  
  22. #
  23. # Variables
  24. #
  25.  
  26. NoGrabServer
  27. RestartPreviousState
  28. NoDefaults
  29.  
  30. ShowIconManager
  31. SortIconManager
  32. IconifyByUnmapping
  33.  
  34. RightHandSidePulldownMenus
  35. StayUpMenus
  36. StayUpOptionalMenus
  37.  
  38. NaturalAutoPanBehavior
  39. NotVirtualGeometries
  40. FixManagedVirtualGeometries
  41. FixTransientVirtualGeometries
  42.  
  43. ShallowReliefWindowButton
  44.  
  45. AutoRelativeResize
  46. InterpolateMenuColors
  47. RandomPlacement
  48.  
  49. NoIconifyIconManagers
  50.  
  51. MoveDelta 3
  52.  
  53. ResizeRegion "Centered"
  54.  
  55. ButtonIndent 1
  56. TitlePadding 5
  57. TitleButtonBorderWidth 1
  58.  
  59. BorderWidth 1
  60. BorderBevelWidth 0
  61. ButtonBevelWidth 0
  62. DoorBevelWidth 1
  63. IconBevelWidth 2
  64. IconManagerBevelWidth 0
  65. InfoBevelWidth 1
  66. VirtualDesktopBevelWidth 1
  67. IconManagerGeometry "-0+30" 1 # if you don't use xclock set this to -0+3
  68.  
  69. ClearBevelContrast 40
  70. DarkBevelContrast 40
  71.  
  72. VirtualDesktop "2x2-0-0" 16
  73. PanDistanceX 100
  74. PanDistanceY 100
  75. PanResistance 750
  76. AutoPan 100
  77.  
  78. #
  79. # Fonts
  80. #
  81.  
  82. TitleFont "-*-helvetica-medium-r-normal--*-80-*-*-*-*-*-*"
  83. ResizeFont "-*-helvetica-medium-r-normal--*-100-*-*-*-*-*-*"
  84. MenuFont "-*-helvetica-medium-r-normal--*-80-*-*-*-*-*-*"
  85. MenuTitleFont "-*-helvetica-medium-r-normal--*-80-*-*-*-*-*-*"
  86. DoorFont "-*-helvetica-medium-r-normal--*-100-*-*-*-*-*-*"
  87. IconFont "-*-helvetica-medium-r-normal--*-100-*-*-*-*-*-*"
  88. InfoFont "-*-helvetica-medium-r-normal--*-100-*-*-*-*-*-*"
  89. IconManagerFont "-*-new century schoolbook-medium-r-*-*-12-*-*-*-*-*-*-*"
  90. VirtualDesktopFont "-*-fixed-medium-r-normal--8-*-*-*-*-*-*-*"
  91.  
  92. #
  93. # Lists
  94. #
  95.  
  96. WarpCursor
  97.  
  98. NailedDown
  99. {
  100. "VTWM *"
  101. "xclock"
  102. "xbiff"
  103. "conky"
  104. "gkrellm"
  105. "trayer"
  106. "dclock"
  107. }
  108.  
  109. NoTitle
  110. {
  111. "VTWM *"
  112. "xclock"
  113. "xbiff"
  114. "conky"
  115. "aterm"
  116. "gkrellm"
  117. "trayer"
  118. "dclock"
  119. }
  120.  
  121. NoBorder
  122. {
  123. "VTWM *"
  124. "xclock"
  125. "xbiff"
  126. "conky"
  127. "dclock"
  128.  
  129. }
  130.  
  131. DontShowInDisplay
  132. {
  133. "VTWM *"
  134. "xclock"
  135. "xbiff"
  136. "conky"
  137. "gkrellm"
  138. "trayer"
  139. "dclock"
  140. }
  141.  
  142. IconManagerDontShow
  143. {
  144. "VTWM *"
  145. "xclock"
  146. "xbiff"
  147. "conky"
  148. "gkrellm"
  149. "trayer"
  150. "dclock"
  151. }
  152.  
  153. NoWindowRing
  154. {
  155. "VTWM *"
  156. "xclock"
  157. "xbiff"
  158. "conky"
  159. "trayer"
  160. "dclock"
  161. }
  162.  
  163. Color
  164. {
  165. # TWM Simple Color
  166. DefaultBackground "grey"
  167. DefaultForeground "black"
  168.  
  169. MenuBackground "LightSteelBlue"
  170. MenuForeground "black"
  171. MenuShadowColor "black"
  172. MenuTitleForeground "black"
  173. MenuTitleBackground "white"
  174.  
  175. # TWM Complex Color
  176. BorderColor "black" { }
  177. BorderTileForeground "black" { }
  178. BorderTileBackground "white" { }
  179.  
  180. IconBackground "LightSteelBlue" { }
  181. IconBorderColor "black" { }
  182. IconForeground "black" { }
  183.  
  184. IconManagerBackground "grey" { }
  185. IconManagerForeGround "black" { }
  186.  
  187. # VTWM Simple Color
  188. RealScreenBackground "orange"
  189. RealScreenForeground "yellow"
  190. VirtualBackground "grey"
  191. VirtualForeground "red"
  192.  
  193. DesktopDisplayBorder "black" { }
  194. DesktopDisplayForeground "black" { }
  195.  
  196. DoorBackGround "orange" { }
  197. DoorForeGround "black" { }
  198. }
  199.  
  200. #
  201. # Functions and Bindings
  202. #
  203.  
  204. LeftTitleButton ":darrow" = f.menu "arrange"
  205. RightTitleButton ":delete" = f.delete
  206. RightTitleButton ":dot" = f.iconify
  207. RightTitleButton ":resize" = f.resize
  208.  
  209. Button1 = : root : f.menu "apps"
  210. Button3 = : root : f.menu "main"
  211. Button2 = : root : f.menu "winops"
  212.  
  213. Button1 = : title : f.move
  214. Button2 = : title : f.resize
  215. Button3 = : title : f.raiselower
  216.  
  217. Button1 = : virtual | desktop : f.movescreen
  218.  
  219. Button1 = m : window : f.move
  220. Button3 = m : window : f.resize
  221.  
  222. Button1 = : iconmgr : f.iconify
  223. Button3 = : iconmgr : f.warp
  224.  
  225. WindowRing
  226. WarpVisible
  227.  
  228. "Tab" = m : all : f.warpring "next"
  229. "Tab" = m |s : all : f.warpring "prev"
  230.  
  231. "F4" = m : window | title | frame : f.delete
  232.  
  233. "Up" = c | m : all : f.panup "100"
  234. "Down" = c | m : all : f.pandown "100"
  235. "Left" = c | m: all : f.panleft "100"
  236. "Right" = c | m : all : f.panright "100"
  237.  
  238. "Up" = m4 : window | title | frame : f.topzoom
  239. "Down" = m4 : window | title | frame : f.bottomzoom
  240. "Left" = m4 : window | title | frame : f.leftzoom
  241. "Right" = m4 : window | title | frame : f.rightzoom
  242. "Return" = m4 : window | title | frame : f.fullzoom
  243.  
  244. "C" = m4 : all : f.exec "urxvt &"
  245.  
  246. #
  247. # Menus
  248. #
  249.  
  250. menu "main"
  251. {
  252. " VTWM " f.title
  253. "Run..." f.exec "gmrun &"
  254. "Options..." f.menu "winops"
  255. "Operations" f.menu "ops"
  256. "Demos" f.menu "demos"
  257. "Multimedia" f.menu "multimedia"
  258. "Background" f.exec "nitrogen &"
  259. "Version" f.version
  260. "Caution" f.title
  261. "Restart" ("red":"white")f.restart
  262. "Exit" ("red":"white")f.quit
  263. }
  264.  
  265. menu "demos"
  266. {
  267. "oneko" f.exec "oneko &"
  268. "xsnow" f.exec "xsnow &"
  269. "" f.separator
  270. "stop demos" f.exec "killall oneko; killall xsnow"
  271. }
  272.  
  273. menu "apps"
  274. {
  275. " Applications " f.title
  276. "Network" f.menu "network"
  277. "Graphics" f.menu "graphics"
  278. "Editors" f.menu "editors"
  279. "Terminals" f.menu "terminals"
  280. "Audacious" f.exec "audacious &"
  281. "Calculator" f.exec "xcalc &"
  282. "GNU Go" f.exec "gogui &"
  283. }
  284.  
  285. menu "network"
  286. {
  287. " Network " f.title
  288. "Opera" f.exec "opera &"
  289. "Firefox" f.exec "firefox &"
  290. "Thunderbird" f.exec "thunderbird-bin &"
  291. "Pidgin" f.exec "pidgin &"
  292. "XChat" f.exec "xchat &"
  293. "Skype" f.exec "skype &"
  294. "emesene" f.exec "emesene-2 &"
  295. }
  296.  
  297. menu "graphics"
  298. {
  299. " Graphics " f.title
  300. "Gimp" f.exec "gimp &"
  301. "Inkscape" f.exec "inkscape &"
  302. "Blender" f.exec "blender &"
  303. "GrafX2" f.exec "grafx2 &"
  304. }
  305.  
  306. menu "editors"
  307. {
  308. " Editors " f.title
  309. "GVim" f.exec "gvim &"
  310. "Gedit" f.exec "gedit &"
  311. "xedit" f.exec "xedit &"
  312. }
  313.  
  314. menu "terminals"
  315. {
  316. " Terminals " f.title
  317. "URXVT" f.exec "urxvt &"
  318. "Terminal" f.exec "gnome-terminal &"
  319. "xterm" f.exec "xterm &"
  320. "Aterm" f.exec "aterm -tr -sh 40 -bg black -fn 8x10 -fg white +sb &"
  321. "Aterm (Utf-8)" f.exec "atermX &"
  322. }
  323.  
  324. menu "multimedia"
  325. {
  326. " Multimedia " f.title
  327. "Gimp" f.exec "gimp &"
  328. "XMMS" f.exec "audacious &"
  329. "MOC" f.exec "xterm -e mocp &"
  330. "Xine" f.exec "xine &"
  331. }
  332.  
  333. menu "ops"
  334. {
  335. " Operations " f.title
  336. "Auto Pan" f.autopan
  337. "New Door" f.newdoor
  338. "Snap Screen" f.snaprealscreen
  339. "Static Icons" f.staticiconpositions
  340. "Warp Snug" f.warpsnug
  341. "Warp Visible" f.warpvisible
  342. "" f.separator
  343. "Show Icon Mgr" f.showiconmgr
  344. "Hide Icon Mgr" f.hideiconmgr
  345. "Show Desktop" f.showdesktopdisplay
  346. "Hide Desktop" f.hidedesktopdisplay
  347. "" f.separator
  348. "Refresh" f.refresh
  349. }
  350.  
  351. menu "arrange"
  352. {
  353. " Arrange " f.title
  354. "Autoraise" f.autoraise
  355. "Raise" f.raise
  356. "Lower" f.lower
  357. "Nail" f.nail
  358. "Ring" f.ring
  359. "" f.separator
  360. "Full Zoom" f.fullzoom
  361. "Horiz Zoom" f.horizoom
  362. "Vert Zoom" f.zoom
  363. "" f.separator
  364. "Identify" f.identify
  365. "" f.separator
  366. "Delete" f.delete
  367. "Destroy" f.destroy
  368. }
  369.  
  370. menu "winops"
  371. {
  372. " Window " f.title
  373. "Identify" f.identify
  374. "" f.nop
  375. "AutoRaise" f.autoraise
  376. "Iconify" f.iconify
  377. "Resize" f.resize
  378. "Move" f.move
  379. "" f.nop
  380. "Raise" f.raise
  381. "Lower" f.lower
  382. "Nail" f.nail
  383. "Focus" f.focus
  384. "" f.nop
  385. "Fullzoom" f.fullzoom
  386. "Horizoom" f.horizoom
  387. "Vertzoom" f.zoom
  388. "" f.nop
  389. "Kill" f.destroy
  390. "Delete" f.delete
  391. }
  392. Function "VTWM Profile"
  393. {
  394. # f.exec "killall conky ; sleep 1 ; /usr/bin/conky -c ~/.conkyrc &"
  395. # f.exec "Esetroot -f /u/local/Pictures/ALL/RubikSapphire1920.jpg
  396. # f.exec "killall gkrellm ; sleep 1; gkrellm -g 1356-0+100 &"
  397. # f.exec "eval `cat $HOME/.fehbg` &"
  398. # f.exec "$HOME/.fehbgx"
  399. f.exec "killall dclock; sleep 1; dclock -g +550-670 &"
  400. f.exec "sh $HOME/.fehbg &"
  401. f.exec "killall parcellite ; sleep 1 ; parcellite &"
  402. # f.exec "trayer --transparent true --edge top --distance 5 --widthtype request --width 100 --alpha 250 --tint blue --SetDockType false --SetPartialStrut True &"
  403. f.exec "trayer --transparent true --edge top --distance 160 --widthtype request --width 100 --alpha 250 --tint blue --SetDockType false --align left &"
  404. f.exec "autocutsel &"
  405. f.exec "xcompmgr -c &"
  406. f.exec "xsetroot -cursor_name left_ptr &"
  407. f.exec "numlockx &"
  408. }
Advertisement
Add Comment
Please, Sign In to add comment