Re: FVWM: Lots of fun Fvwm questions

From: Mikhael Goikhman <migo_at_cortext.co.il>
Date: Tue, 10 Oct 2000 05:36:20 +0200

On 09 Oct 2000 15:15:28 -0400, ralph stickley wrote:
>
> Hey, while your here :-) My start menu is almost there - but...
>
> 1.a is there any way to bind the Start key on the keyboard to the Start menu?

Ok, I explain what I did, maybe it can be useful to someone.
I started xev and pressed my Start key. I got keycode 117 (it may be
different on your keyboard) and no keysym assigned with it.
Similarly, `xmodmap -pk | grep 117` gave no keysyms.

Then I executed `xmodmap -e 'keycode 117 = F13'`, i.e. assigned this key
to symbolic name F13, which is not used on my keyboard. Then started
FvwmConsole, executed the following and everything worked:

  Key F13 A A Menu MenuFvwmRoot Root +1p o100-25p

So, if I wanted to be annoyed by these extra keys I would just add this
"xmodmap -e .." command to my ~/.xinitrc or call it from InitFunction.

> 1.b is there any way to configure the start menu to remain on-screen
> after an item with a sub-menu is clicked ?? If I click on "Programs..."
> the sub menu is displayecd, but the start menu disappears. - whoa..now
> where did that get off to ??

In 2.3, the default is what you want. In 2.2, this is not configurable.

> > > - any way to make the menu popup "on top" of the "start" button ?
> > > (instead of off to the side - any magical context rectangle number?)
> >
> > Use:
> >
> > *FvwmTaskBarStartMenu MenuFvwmRoot Root +1p o100-25p
>
> Yep...works great - I even understand it after going back to read the manual.
>
> Note, if the user extends the taskbar the window pops up at the same place,
> overlaying the start button... might be a way to make it relative to the
> taskbar window or some other trick....

You can also try 'Mouse c -100m' or so, but I think the first is better.

> > > 2. I start an application in another desktop, but when the application
> > > closes, it never returns to the first desktop. If I don't display the
> > > Pager, there
> > > seems "to the user" no way to get back (at least key bindings work).
> > > - any way to automagically return to the first desktop?
> >
> > You can start FvwmEvent and hook destroy_window event to something like:
> >
> > Desk 0 0
> >
> > In 2.3 it can be done more effectivelly using PassId of FvwmEvent
> > and having in the hook function: WindowId $w ("MyApp") GotoDesk 0 0
> >
> > > - or - any way to make the taskbar popup when a window closes??
> >
> > The same here. Just add this after/instead Desk command:
> >
> > Menu MenuFvwmRoot Root +1p o100-25p,
> > In 2.2 this will change desk or/and pop up the menu after any window
> > closing, so you probably may want to have a function which first starts
> > FvwmEvent, then your application; in destroy_window: KillModule FvwmEvent.
>
> Ok, I got nothing here....I don't know where to start or where to stick the
> FvwmEvent
> thing. more manual reading is in order :-( What is the desk command ??

Desk (the new name is GotoDesk) changes the current desk.

> My application has a style defined as:
> Style "xxx" border Width 0 , NoHandles, NoTitle, NoDecorHint, StartsOnDesk 2
>
> from the StartMenu:
> + "xxx" Exec /usr/bin/xxx
>
> from the Buttons in the pager:
> *FvwmButtons (Title Xxx, Icon icons_bt.xpm, Action 'Exec /usr/bin/xxx')

Take a look at fvwm.org/generated/FAQ.html and read question 3.18 and 3.19.
I hope you will learn something useful.

> I'm using a Media GX with the sound, soundcore and sb modules installed...
> any suggestions ? and how do you use these modules anyhow ??

It is really not fvwm specific, try to find about "bell in X" on internet.

Regards,
Mikhael.
--
Visit the official FVWM web page at <URL: http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_fvwm.org.
To report problems, send mail to fvwm-owner_at_fvwm.org.
Received on Mon Oct 09 2000 - 22:36:55 BST

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:37:51 BST