--- Stephen Liu <[EMAIL PROTECTED]> wrote:

> > As you mentioned, another way would be to launch the application
> > without an
> > xterm. How exactly are you launching the application? An xterm is not
> > required to run X programs such as firefox.
> 
> I haven't figured out how to do it.  Firefox needs X-window.

You're using twm for your window manager, right? You can set up menus for
different programs you want to run. I recommend you read the manual page
twm(1) for a lot of information on customizing twm. I don't use twm, though;
I usually use a different window manager. But here's what you can probably do
to make using twm easier:

# -------------------------------------------------------------------------
cd
[ -f .twmrc ] && mv .twmrc{,.orig}
install -m 0640 /usr/X11R6/lib/X11/twm/system.twmrc .twmrc
cat >> .twmrc << "EOF"
Button2 = : root : f.menu "TwmWindows"
Button3 = : root : f.menu "programs"

menu "programs"
{
    "Programs"  f.title
    "Firefox"   f.exec "exec firefox &"
    "Calculator" f.exec "exec xcalc &"
    "Editor"    f.exec "exec xedit &"
    
}
EOF
# -------------------------------------------------------------------------

I'm assuming you haven't yet customized your .twmrc; if you already have a
.twmrc, the file test command ([ -f .twmrc ]) will back-up your original as
.twmrc.orig. Then the system-wide twmrc from
/usr/X11R6/lib/X11/twm/system.twmrc will be copied to your home directory. I
used the "install" command to copy the file and set the permissions at the
same time (6 = read-write for the user, 4 = read-only for the group, and 0 =
nothing for others). Finally, the "cat" command will add a "Programs" menu to
your .twmrc, with a mouse binding on the right mouse button.

After executing those commands, left-click on the root window and choose
"Restart" and that will update your configuration to use the new settings.
Now you may right-click on the root window to get a list of programs. Edit
.twmrc to customize it.

> Furthermore about the icons on screen, would it be possible to align
> them on bottom/top/either side of the screen, not manually, rather than
> let them floating around there?

Like I said, I'm not a regular twm user, but looking in the twm manpage, I
found an option called IconRegion which seemed to be what you are wanting.
But when I tried setting IconRegion to a region near the top of the screen,
it didn't seem to influence where the icons were placed; I still had to do it
manually. Here's the setting I tried; maybe something else will work for you:

IconRegion 1019x175+3+3 North West 8 8

that needs to be in $HOME/.twmrc, of course. There are lots of other
customizations you can make to twmrc. When using it for a little while, I
decided I didn't like the default menu ("defops") and changed it to look like
this:

menu "defops"
{
    "Twm"       f.title
    "Show Iconmgr"      f.showiconmgr
    "Hide Iconmgr"      f.hideiconmgr
    ""          f.nop
    "Xterm"             f.exec "exec xterm &"
    "Programs..." f.menu "programs"
    ""          f.nop
    "Kill"              f.destroy
    "Delete"    f.delete
    "Identify"  f.identify
    ""          f.nop
    "Restart"   f.restart
    "Exit"              f.quit
}

That's more streamlined for my use. The "defops" menu is what gets displayed
when you left-click on the root window. Edit the .twmrc to customize it.


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to