home *** CD-ROM | disk | FTP | other *** search
/ Chip 2000 May - Linux Special / SU6400.E02.ISO / dosutils / exceed / USER / HWMCFG.SRC < prev    next >
Encoding:
Text File  |  1999-10-29  |  10.7 KB  |  335 lines

  1. !   configuration file for hwm
  2.  
  3. ! if you do not want to use the VirtualDesktop, place a comment indicator (!)
  4. ! in front of the next statement.
  5.  
  6. VirtualDesktop
  7.  
  8. VdeskScale 20
  9. #if Xpixels >= 800
  10. VdeskScale 15
  11. #endif
  12. #if Xpixels >= 1024
  13. VdeskScale 21
  14. #endif
  15. #if Xpixels >= 2048
  16. VdeskScale 42
  17. #endif
  18. #if Xpixels >= 3072
  19. VdeskScale 63
  20. #endif
  21. #if Xpixels >= 4096
  22. VdeskScale 74
  23. #endif
  24.  
  25. ! if you want the VirtualDesktop window to appear inside the VirtualDesktop,
  26. ! place a comment indicator (!) in front of the next statement.  This means
  27. ! that the VirtualDesktop window will disappear from the display if the virtual
  28. ! 'window' is moved.
  29.  
  30. StickyVdesk
  31.  
  32. ! If you want to have windows automatically placed on the display remove the
  33. ! comment indicator from the next statement.
  34.  
  35. noGhost
  36.  
  37. ! If you want a 'click to focus' policy as opposed to a 'pointer focus' policy,
  38. ! remove the comment indicator from the next statement.  If you do not want
  39. ! windows to be automatically raised when they get the focus, delete the Raise
  40. ! keyword.
  41.  
  42. ClickToFocus Raise 1
  43.  
  44. ! Set the 3D border width to desirable number of pixels(3 <= borderwidth <= 12).
  45. ! The border width is defaulted to 8 pixels.
  46.  
  47. borderwidth    8
  48.  
  49. ! If you do not want to cascade windows remove the comment indicator (!)
  50. ! in front of the next statement.
  51.  
  52. !nocascade
  53.  
  54. ! If you want to specify (x, y) coordinates for your client window (not for its frame)
  55. ! remove the comment indicator (!) in front of the next statement.
  56. ! Do not forget uncomment nocascade to be able to set (x, y) for the window.
  57.  
  58. !positionisframe 0
  59.  
  60. ! Set the font to be used by hwm.
  61.  
  62. #if Xpixels >= 1024
  63. font    fixed
  64. #else
  65. font    6x13
  66. #endif
  67.  
  68. ! If you do not want to initially display the icon manager, place a comment
  69. ! indicator (!) in front of the next statement.
  70.  
  71. IconMgrOn
  72.  
  73. ! if you want the IconMgr to appear inside the VirtualDesktop, place a comment
  74. ! indicator (!) in front of the next statement.  This means that the IconMgr
  75. ! will disappear from the display if the virtual 'window' is moved.
  76.  
  77. StickyIconMgr
  78.  
  79. ! If you want Icons to be displayed, place a comment indicator (!) in front of
  80. ! the next statement.
  81.  
  82. HideIcons
  83.  
  84. ! Set the tolerance for the automatic resize function on window placement.
  85.  
  86. #if xpixels >= 1024
  87. Tolerance 10
  88. #else
  89. Tolerance 4
  90. #endif
  91.  
  92. ! Help for the VirtualDesktop
  93.  
  94. #if VdeskOn == 1
  95. menu VdeskHelp
  96.     "Click on       With Mouse Button   Function"             nop
  97.     "--------       -----------------   --------"             nop
  98.     "anywhere         Alt Shift right   Show VirtualDesktop"     nop
  99.     "anywhere         Alt Shift left    Hide VirtualDesktop"     nop
  100.     ""                                                        nop
  101.     "in Vdesk         right              Move the view"        nop
  102.     "in Vdesk on a window  left   Move and/or show the name of a window" nop
  103. endMenu
  104. #endif
  105.  
  106. ! The "Help" menu is  intended to operate as online help.
  107.  
  108. menu "Help"
  109.     "Click on       With Mouse Button   Function"         nop
  110.     "--------       -----------------   --------"         nop
  111.     "background           left          System Menu"      nop
  112.     "background           middle        Local Commands"   nop
  113.     "background           right         X Commands"       nop
  114.     ""                                                    nop
  115.     "any window       Alt left          System Menu"      nop
  116.     "any window       Alt middle        Local Commands"   nop
  117.     "any window       Alt right         X Commands"       nop
  118.     ""                                                    nop
  119.     "left window button   left          Window Ops Menu"  nop
  120.     "window title bar     left          Move Window"      nop
  121.     "right window button  left          Zoom Window"      nop
  122.     "inside right button  left          Change to Icon"   nop
  123.     ""                                                    nop
  124.     "an icon              left          Move icon"        nop
  125.     "an icon              middle        Show Icon Menu"   nop
  126.     "an icon              right         Change to Window" nop
  127. #if VdeskOn == 1
  128.     ""                                                    nop
  129.     " --> help for the VirtualDesktop"  menu VdeskHelp
  130. #endif
  131. endmenu
  132.  
  133. ! The "Local commands" menu provides access to DOS, XCONFIG and the Log file.
  134. ! The "local" modifier is specified to allow a means of restricting execution
  135. ! of an application from a remote display.
  136.  
  137. ! \h represents the Exceed HOME directory
  138. ! \u represents the Exceed USER directory 
  139. ! \ is the escape character
  140. ! If your local command refers to a directory name which contains spaces
  141. ! then you must enclose that command component in double quotes.  Double 
  142. ! quotes in a local command must be preceded by the escape character 
  143. ! (i.e. \").
  144. ! For example, if the name of your Exceed HOME directory contains spaces, 
  145. ! then the "Local Commands" line would be as follows:
  146. !     "Xconfig"       local   "\"\hxconfig\""
  147.  
  148. menu "Local Commands"
  149.     "Xconfig"       local   "\"\hxconfig\""
  150.     "Telnet"        local   "\"\htnvt\""    
  151.     "Xstart"             local   "\"\hxstart\""
  152.     "Edit hwm config"   local     "notepad \"\uhwmcfg.src\""
  153. endmenu
  154.  
  155. ! The "X Commands" menu is intended to contain functions used to remotely
  156. ! start X clients.  Hwm does not distinguish between remote and local 
  157. ! programs because all programs begin with a local execution.  The modifiers
  158. ! "remote" and "local" can be used to restrict the execution of certain 
  159. ! applications.  If "remote" is specified then there is unrestricted 
  160. ! execution of the application.  If "local" is specified then hwm will only
  161. ! start an application if hwm is managing the remote display. 
  162.  
  163. ! example X command start up menu item. (no spaces in Exceed HOME directory name)
  164. ! "XTerm"        remote    "\hxstart \uxterm.xs"
  165.  
  166. menu "X Commands"
  167. endmenu
  168.  
  169.  
  170. ! This menu is used to verify closing hwm.
  171.  
  172. menu closehwm
  173.     ""                  nop
  174.     "Do you want to exit hwm?"   nop
  175.     ""                  nop
  176.     "Yes"               exit
  177.     ""                  nop
  178.     "No"                nop
  179.     ""                  nop
  180. endmenu
  181.  
  182. ! This menu provides access to various restart and exit conditions.
  183.  
  184. menu "Exit/Restart"
  185.     ""                  nop
  186.     "Restart hwm"       restart
  187.     ""                  nop
  188.     "Exit hwm"          menu closehwm
  189.     ""                  nop
  190. endmenu
  191.  
  192. ! This menu lets you configure the icon manager and the display of icons 'on
  193. ! the fly'.
  194.  
  195. menu "Desktop Settings"
  196. #if VdeskOn == 1
  197.     "Show VirtualDesktop" showvdesk
  198.     "Hide VirtualDesktop" hidevdesk
  199. #endif
  200.     "Show Icon Manager" showiconmgr
  201.     "Hide Icon Manager" hideiconmgr
  202.     "Show icons"        showicons
  203.     "Hide icons"        hideicons
  204. endmenu
  205.  
  206. ! The "Window Ops" menu provides functions relating to a single window.
  207.  
  208. menu "Window Ops"
  209.     "Iconify"             iconify
  210.     "Move"                move
  211.     "Resize"              resize
  212.     "Raise"               top
  213.     "Lower"               bottom
  214.     "Zoom"                zoom
  215.     "Refresh"             refresh
  216.     "Close"               kill
  217. endmenu
  218.  
  219. ! The root menu provides commands to change the root window display.
  220.  
  221. menu "Root Window"
  222.     "default"           setroot default
  223. #if color == 1
  224.     "hummingbird"       setroot bitmap "\ibird.bit" fg white bg maroon 
  225.     "xlogo"             setroot bitmap "\ixlogo64.bit" fg black bg blue
  226. #else
  227.     "hummingbird"       setroot bitmap "\ibird.bit" fg white bg maroon 
  228.     "xlogo"             setroot bitmap "\ixlogo64.bit" fg black bg blue
  229. #endif
  230.     "vacation"          setroot bitmap "\ivacation.bit" fg green bg blue
  231.     "knot"              setroot bitmap "\iknot.bit" fg black bg grey
  232. #if color == 1
  233.     "purple"            setroot solid purple
  234.     "blue"              setroot solid blue
  235. !#else
  236. !    "black"             setroot solid black bg white fg black
  237. !    "white"             setroot solid white
  238. #endif
  239. endmenu
  240.  
  241. ! This menu provides access to everything.
  242.  
  243. menu "System"
  244.     "Circulate up"      up
  245.     "Circulate down"    down
  246.     "Raise window"      top
  247.     "Refresh screen"    RefreshScreen
  248.     ""                  nop
  249.     "Kill Client"       kill
  250.     ""                  nop
  251.     "-> Window Ops"     menu "Window Ops"
  252.     "-> Desktop Settings"  menu "Desktop Settings"
  253.     "-> Local Commands"   menu "Local Commands"
  254.     "-> X Commands"     menu "X Commands"
  255.     "-> Root Window"    menu "Root Window"
  256.     "-> Exit/Restart"   menu "Exit/Restart"
  257.     ""                  nop
  258.     Help                menu "Help"
  259. endmenu
  260.  
  261. ! This menu is only for icons.
  262.  
  263. menu IconMenu
  264.     deIconify           iconify
  265.     Move                move
  266.     Close               kill
  267. endmenu
  268.  
  269. ! button bindings
  270.  
  271. bind root b1            menu System
  272. bind alt b1             menu System
  273.  
  274. bind root b2            menu "Local Commands"
  275. bind alt b2             menu "Local Commands"
  276.  
  277. bind root b3            menu "X Commands"
  278. bind alt b3             menu "X Commands"
  279.  
  280. bind middle b1          move
  281. bind left b1            menu "Window Ops"
  282. bind outsideRight b1    zoom
  283. bind insideRight b1     iconify
  284.  
  285. bind icon b1            move
  286. bind icon b2            menu IconMenu
  287. bind icon b3            iconify
  288.  
  289. #if VdeskOn == 1
  290. bind alt shift b3 showvdesk
  291. bind alt shift b1 hidevdesk
  292. #endif
  293.  
  294. ! Specify all colors if 8 planes are available, otherwise in most cases use
  295. ! the defaults.
  296.  
  297. #if Planes == 8
  298.     #if Static == 0
  299.         color active   window    foreground  white
  300.         color active   window    background  cadetblue
  301.         color inactive window    foreground  black
  302.         color inactive window    background  slategray3
  303.         color active   transient foreground  white
  304.         color active   transient background  cadetblue
  305.         color inactive transient foreground  black
  306.         color inactive transient background  slategray3
  307.         color          menu      foreground  black
  308.         color          menu      background  steelblue3
  309.         color          icon      foreground  black
  310.         color          icon      background  steelblue3
  311.         color          iconmgr   foreground  black
  312.         color          iconmgr   background  steelblue3
  313. #if VdeskOn == 1
  314.         color           vdesk    foreground  yellow
  315. #endif
  316.     #else
  317.         #if Color == 1
  318.             color active   window    foreground  white
  319.             color active   window    background  slategray
  320.         #endif
  321.     #endif
  322. #else
  323.     #if Static == 1
  324.         #if Color == 1
  325.             color inactive window foreground white
  326.             color inactive window background slategray3
  327.         #endif
  328.     #else
  329.         color active window foreground white
  330.         color active window background cadetblue
  331.         color active transient foreground  white
  332.         color active transient background  cadetblue
  333.     #endif
  334. #endif
  335.