Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!samsung!aplcen!haven!decuac!shlump.nac.dec.com!riscy.dec.com!fuel.dec.com!graham From: graham@fuel.dec.com (kris graham) Newsgroups: comp.windows.x Subject: Re: dxwm window manager Keywords: motif, windows, DS3100, X Message-ID: <1531@riscy.dec.com> Date: 27 Nov 89 22:11:31 GMT References: <454@tci.bell-atl.com> Sender: news@riscy.dec.com Distribution: comp Lines: 180 > > I have a window manager question. I'm running > a DECstation 3100. I just got the Motif > code, and have compiled and built most of > the parts. I want the motif window manager > (mwm) to be the startup window manager. How > do I do that? Edit your .Xfefaults file so mwm becomes the default window manager.....the following will do. sm*windowManagerName: /usr/bin/mwm [or directory of choice] if you want to use xterm, then add: sm*terminalEmulatorName: /usr/bin/xterm Here are some excerpts from my file that may help you. !Motif Window Manager .Xdefaults ! #ifndef COLOR Mwm*Background: SkyBlue Mwm*activeBackground: PaleGreen Mwm*icon*topShadowColor: SkyBlue Mwm*icon*background: sea green Mwm*icon*foreground: OrangeRed #endif Mwm*iconImageMinimum: 16x16 Mwm*iconPlacementMargin: 2 Mwm*lowerOnIconify: True Mwm*positionIsFrame: True Mwm*iconBoxGeometry: 2x4+1+1 Mwm*fadeNormalIcon: True Mwm*font: helvetica14 Mwm*keyboardFocusPolicy: explicit Mwm*resizeBorderWidth: 10 Mwm*transientDecoration: system title resizeh Mwm*transientFuntions: -minimize -maximize Mwm*XTerm.iconImage: Mwm*transientDecoration: Title resize Mwm*workspaceMenu: True Mwm*restartSettings: True Mwm*systemMenu: RootMenu Mwm*systemButtonClick: True Mwm*systemButtonClick2: True Mwm*buttonBindings: DefaultButtonBindings Mwm*iconDecoration: label image Mwm*useIconBox: true Mwm*iconbox*systemMenu: DefaultSystemMenu Mwm*iconBoxTitle: Mwm*RootMenu: DefaultButtonBindings #ifdef COLOR Mwm*iconImageForeground: yellow Mwm*iconImageBackground: Mediumvioletred Mwm*iconbox*backgorund: white #endif Mwm*keyboardFocusPolicy: explicit Mwm*interactivePlacement: True Mwm*showFeedback: all ---------- > > I'm also getting unexpected results with the >resource file they give: If you mean the .mwmrc file, then here are some example entries that works well with the above .Xdefaults file. # DEFAULT mwm RESOURCE DESCRIPTION FILE (.mwmrc) # # menu pane description # Menu DefaultSystemMenu { "Root Menu" f.title "New Window" f.exec "xterm &" "Shuffle Up" f.circle_up "Shuffle Down" f.circle_down "Refresh" f.refresh no-label f.separator "Restart" f.restart } # # # Menu RootMenu { "System Menu" f.title "All hosts rejected" f.exec "xhost - >/dev/null 2>&1&" "Any host allowed" f.exec "xhost + >/dev/null 2>&1&" "Background setting" f.menu BackGroundSetMenu "Bell setting" f.menu BellSetMenu "Calculators" f.menu CalculatorsMenu "Click setting" f.menu ClickSetMenu "DECwindows" f.menu DECwinwoesApplicationsMenu "Demo's" f.menu XDemonstrationsMenu "Loadaverage" f.exec "nice xload -geometry =275x85&" "Mail " f.exec "dxmail&" "Manual pages" f.exec "xman&" "Usenet" f.exec "xrn -fn helvetica14&" "Biff" f.exec "xbiff&" "Edit" f.exec "xedit -fn helvetica14&" "XCalendar" f.exec "xcalendar&" "Monitor" f.exec "nice xperfmon =275x300 -n idle collision&" "Mouse setting" f.menu MouseSetMenu "Refresh" f.refresh "Shuffle Up" f.circle_up "Shuffle Down" f.circle_down "Xterm (local xterm)" f.exec "xterm -fb helvetica18&" no-label f.separator "Reread .mwmrc" f.restart } # #etc. #etc. # key binding descriptions # Keys DefaultKeyBindings { ShiftEscape icon|window f.post_smenu Metaspace icon|window f.post_smenu MetaTab root|icon|window f.next_key Meta Shift Tab root|icon|window f.prev_key MetaEscape root|icon|window f.circle_down Meta ShiftEscape root|icon|window f.circle_up Meta Ctrl Shift exclam root|icon|window f.set_behavior MetaF6 window f.next_key transient } # # button binding descriptions # Buttons DefaultButtonBindings { frame f.raise frame|icon f.post_smenu root f.menu RootMenu Meta icon|window f.move Meta xwindow f.minimize root f.menu RootMenu frame f.lower } # # END OF mwm RESOURCE DESCRIPTION FILE # ------- > When I load this in, my window manager menus became blue > (they were black & white.) > > Also, when I tried to put these definitions in the system > /.Xdefaults, it caused dxsession to hang (actually, I don't > know which part hung, but no login window ever came up). > > Strange stuff, I know! Any clues? If you follow my examples, you will probably do better ;-) Christopher Graham Digital Equipment Corp Ultrix Resource Center New York City