Advertisement
Dj_Dexter

.ctwmrc

Feb 26th, 2012
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.97 KB | None | 0 0
  1. define(taillemax, translit(eval(WIDTH)*eval(HEIGHT-110),*,x))
  2.  
  3. #**********************************************************************
  4. #
  5. # .ctwmrc
  6. #
  7. #**********************************************************************
  8.  
  9.  
  10. LeftTitleButton "menu12" = f.menu "windowmenu" # add a menu to each window
  11. #TitleButtonBorderWidth 0 # don't want to see box around button
  12. #ButtonIndent 0 # button doesn't have to be smaller
  13.  
  14.  
  15. UsePPosition "on" # use program-specified size hints accepted
  16. #NoHighlight # do not flash borders on enter events
  17. #OpaqueMove # actually move window instead of outline
  18. AutoRelativeResize # don't require resize to cross border to start
  19. #RestartPreviousState # reiconify iconified things on startup
  20. ClientBorderWidth # use the application border width on frameBorderWidth 5
  21. # width of top level windows created by twm
  22. NoGrabServer # don't grab server during menus, etc.
  23. NoRaiseOnMove # allow moving under other windows
  24. NoRaiseOnResize # allow resizing under other windows
  25. NoTitleFocus # avoid keystrokes in wrong window cause of lag
  26. DecorateTransients # put titlebars on transients
  27. NoSaveUnders # faster to just repaint then save
  28. XORvalue 1 # tend to use visually distinct adjacent colors
  29. ConstrainedMoveTime 0 # turn off horizontal/vertical only moving
  30. NoCaseSensitive # turn off case-sensitivity in sorting icons
  31. #Warpmapped # allow warping to unmapped windows
  32. BorderResizeCursors # curseurs d'agrandissement aux coins des fenetres
  33. #WarpRingOnScreen
  34.  
  35.  
  36. MaxWindowSize "taillemax"
  37. ShowIconManager
  38. UseThreeDIconManagers
  39. UseThreeDMenus
  40. UseThreeDTitles
  41. UseThreeDBorders
  42.  
  43. IconifyByUnmapping
  44. ShowWorkSpaceManager
  45. UseThreeDWMap
  46. #SortIconManager
  47. StartInMapState
  48. NoShowOccupyAll
  49. #ReallyMoveInWorkSpaceManager
  50. MapWindowDefaultWorkSpace { "black" "black" "Ivory"}
  51. MapWindowCurrentWorkspace { "black" "Ivory" "Ivory" }
  52. TitleJustification "center"
  53.  
  54.  
  55. IconDirectory "/net/i2/lacazedi/perso/icones"
  56.  
  57. IconManagerGeometry "295x75+120-0" 4
  58. WorkSpaceManagerGeometry "100x75-0-0"
  59.  
  60.  
  61. TitleFont "-adobe-helvetica-medium-r-normal-*-8-*-*-*-*"
  62. MenuFont "-adobe-helvetica-medium-r-normal-*-8-*-*-*-*"
  63. IconFont "-adobe-helvetica-medium-r-normal-*-8-*-*-*-*"
  64. IconManagerFont "-adobe-helvetica-medium-r-normal-*-8-*-*-*-*"
  65.  
  66.  
  67.  
  68. NoHighLight
  69. {
  70. "dclock"
  71. "gkrellm"
  72. "trayer"
  73. "panel"
  74. "TWM Icon Manager"
  75. "xmeter"
  76. "WorkSpaceManager"
  77. "xload"
  78. "Xload"
  79. }
  80.  
  81. NoBorder
  82. {
  83. "Aplimanager"
  84. "trayer"
  85. "panel"
  86. "gkrellm"
  87. "Xload"
  88. "xload"
  89. }
  90.  
  91. IconManagerDontShow
  92. {
  93. "emiclock"
  94. "trayer"
  95. "panel"
  96. "gkrellm"
  97. "xload"
  98. "Xload"
  99. }
  100.  
  101. Monochrome
  102. {
  103. IconManagerHighlight "black"
  104. IconManagerForeground "white"
  105. IconManagerBackground "black"
  106. BorderColor "black"
  107. TitleForeground "black"
  108. TitleBackground "white"
  109. MenuForeground "white"
  110. MenuBackground "black"
  111. MenuTitleForeground "white"
  112. MenuTitleBackground "black"
  113. IconForeground "white"
  114. IconBackground "black"
  115. IconBorderColor "black"
  116.  
  117. }
  118.  
  119. Color
  120. {
  121.  
  122. BorderColor "slategray3"
  123. BorderTileForeground "slategray4"
  124. BorderTileBackground "Slategray4"
  125. { "TWM Icon Manager" "Ivory"
  126. "WorkSpaceManager" "Ivory"
  127. }
  128.  
  129.  
  130. TitleBackground "Slategray4"
  131. TitleForeground "Ivory"
  132. MenuShadowColor "slategray4"
  133. MenuBackground "Ivory"
  134. MenuForeground "slategray4"
  135. MenuTitleBackground "slategray4"
  136. MenuTitleForeground "Ivory"
  137.  
  138. IconManagerBackground "Slategray4"
  139. IconManagerForeground "Ivory"
  140. }
  141.  
  142.  
  143.  
  144.  
  145.  
  146. ##########################
  147. # #
  148. # workspaces #
  149. # #
  150. ##########################
  151.  
  152. WorkSpaces
  153. {
  154. "Demarrage"
  155. "Netscape"
  156. "Travail"
  157. "Misc."
  158. }
  159.  
  160.  
  161. Occupy
  162. {
  163. Window "Netscape" { "Netscape" }
  164. Window "Emacs" { "Travail" }
  165. # Window "xv" { "Misc." }
  166. Window "xblast" { "Misc." }
  167. }
  168.  
  169.  
  170. OccupyAll
  171. {
  172. "Aplimanager"
  173. "Irc"
  174. "trayer"
  175. "panel"
  176. "xmeter"
  177. "dclock"
  178. "gkrellm"
  179. "xload"
  180. "Xload"
  181. }
  182.  
  183.  
  184.  
  185.  
  186. ###############################################################################
  187. # #
  188. # Define user functions #
  189. # #
  190. ###############################################################################
  191.  
  192. Function "quitter"
  193. {
  194. f.exec "rm -f ${HOME}/.display"
  195. f.quit
  196. }
  197.  
  198.  
  199.  
  200.  
  201.  
  202. DefaultFunction f.nop # ignore extraneous events
  203.  
  204. Function "Deplace_vers_D" {f.addtoworkspace "Demarrage" f.vanish}
  205. Function "Deplace_vers_T" {f.addtoworkspace "Travail" f.vanish}
  206. Function "Deplace_vers_N" {f.addtoworkspace "Netscape" f.vanish}
  207. Function "Deplace_vers_M" {f.addtoworkspace "Misc." f.vanish}
  208.  
  209. ###############################################################################
  210. # #
  211. # Define key bindings #2
  212. # #
  213. ###############################################################################
  214.  
  215.  
  216. #Button = KEYS : CONTEXT : FUNCTION
  217. #----------------------------------
  218. Button1 = : title : f.raiselower
  219. Button2 = : title : f.move
  220. Button3 = : title : f.menu "windowmenu"
  221.  
  222. Button2 = : frame : f.resize
  223.  
  224.  
  225. Button2 = : icon : f.move
  226. Button3 = : icon : f.raise
  227.  
  228. Button3 = s|m : window : f.destroy
  229.  
  230. Button1 = : root : f.menu "twmops"
  231. Button2 = : root : f.menu "Login"
  232. Button3 = : root : f.menu "windowops"
  233.  
  234. Button1 = : iconmgr : f.iconify
  235. Button2 = : iconmgr : f.raise
  236. Button3 = : iconmgr : f.lower
  237.  
  238. "F9" = : window : f.destroy
  239. "F8" = : window : f.fullzoom
  240. "F7" = : window : f.iconify
  241. "F7" = : iconmgr : f.deiconify
  242.  
  243. "F6" = : window : f.raiselower
  244.  
  245. "F1" = : all : f.gotoworkspace "Demarrage"
  246. "F3" = : all : f.gotoworkspace "Netscape"
  247. "F2" = : all : f.gotoworkspace "Travail"
  248. "F4" = : all : f.gotoworkspace "Misc."
  249.  
  250.  
  251.  
  252. "D" = : root : f.gotoworkspace "Demarrage"
  253. "N" = : root : f.gotoworkspace "Netscape"
  254. "T" = : root : f.gotoworkspace "Travail"
  255. "M" = : root : f.gotoworkspace "Misc."
  256.  
  257.  
  258. ###############################################################################
  259. # #
  260. # Display an icon manager across the top of the screen. Don't manage #
  261. # the windows for which you don't show a title. #
  262. # #
  263. ###############################################################################
  264.  
  265.  
  266. NoTitle # little programs that look like icons
  267.  
  268. {
  269. "Aplimanager"
  270. "trayer"
  271. "panel"
  272. "dclock"
  273. "xmeter"
  274. "TWM Icon Manager"
  275. "WorkSpaceManager"
  276. "xload"
  277. "gkrellm"
  278. }
  279.  
  280.  
  281.  
  282. IconManagerDontShow
  283. {
  284. "Aplimanager"
  285. "dclock"
  286. "xload"
  287. "xrn"
  288. "xmail"
  289. "xman"
  290. "xmeter"
  291. "gkrellm"
  292. }
  293.  
  294.  
  295.  
  296. DontIconifyByUnmapping
  297. {
  298. "WorkSpaceManager"
  299. "trayer"
  300. "panel"
  301. "xload"
  302. "gkrellm"
  303. }
  304.  
  305.  
  306.  
  307. ###############################################################################
  308. # #
  309. # Define some useful menus. #
  310. # #
  311. ###############################################################################
  312.  
  313.  
  314. menu "windowmenu"
  315. {
  316. "WINDOWMENU" f.title
  317. "AgrandirMax" f.fullzoom
  318. "Info" f.identify
  319. "Lower" f.lower
  320. "Raise" f.raise
  321. "Vanish" f.vanish
  322. "MoveWindow" f.menu "Deplace"
  323. "RemF WSpace" f.menu "remfromWS"
  324. "Send Delete" f.delete
  325. "kill" f.menu "confwin"
  326. }
  327.  
  328.  
  329.  
  330. menu "Deplace"
  331. {
  332. "MoveWindow" f.title
  333. "Demarrage" f.function "Deplace_vers_D"
  334. "Travail" f.function "Deplace_vers_T"
  335. "Netscape" f.function "Deplace_vers_N"
  336. "Misc." f.function "Deplace_vers_M"
  337. }
  338.  
  339.  
  340.  
  341. menu "confwin" ("black":"red")
  342. {
  343. "Please confirm" f.title
  344. "No" f.nop
  345. "Yes" f.destroy
  346. }
  347.  
  348.  
  349.  
  350. menu "twmops"
  351. {
  352. "DIVERS" f.title
  353. "Gedit" !"gedit &"
  354. "Pcmanfm" !"pcmanfm &"
  355. "Shell" !"atermX &"
  356. "Xterm" !"xterm &"
  357. "Thunderbird" !"thunderbird-bin &"
  358. "I.R.C." !"xterm -T Irc -e weechat-curses &"
  359. "Opera" !"opera &"
  360. "pidgin" !"pidgin &"
  361. "Gimp" !"gimp &"
  362. "X.V." !"xv &"
  363. "Moc" !"xterm -e mocp &"
  364. "Calculatrice" !"xcalc &"
  365. "net load" !"xnetload -i eth0 &"
  366. "Exec..." !"gmrun &"
  367. }
  368.  
  369.  
  370.  
  371.  
  372. menu "confirm" ("black":"red")
  373. {
  374. "Please confirm" f.title
  375. "No" f.nop
  376. "Yes" f.function "quitter"
  377. }
  378.  
  379. menu "windowops"
  380. {
  381. "Windows" f.title
  382. "Resize" f.resize
  383. "Refresh all" f.refresh
  384. "Restart twm" f.twmrc
  385. "Info" f.identify
  386. "Move" f.move
  387. "Raise" f.raise
  388. "Lower" f.lower
  389. "Iconify" f.iconify
  390. "" f.nop
  391. "Send Delete" f.delete
  392. "Kill" f.destroy
  393. "Logout" f.menu "confirm"
  394. "Exit" f.menu "Exit"
  395. }
  396.  
  397. menu "Exit"
  398. {
  399. "Please confirm" f.title
  400. "Restart" !"sudo shutdown -r now &"
  401. "Shutdown" !"sudo shutdown -h now &"
  402. }
  403.  
  404. menu "Login"
  405. {
  406. "Machines" f.title
  407. "Root" !"xterm -bg black -fg green -e su - &"
  408. "Xcore" !"xterm -T Xcore -e ssh xc0re@shellmix.com &"
  409. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement