Re: fvwm: was i3 sticky/floating windows (brasero requires gvfs)
- To: Charlie <ariestao@ipstarmail.com.au>
- Cc: Debian-user <debian-user@lists.debian.org>
- Subject: Re: fvwm: was i3 sticky/floating windows (brasero requires gvfs)
- From: "Vincent W. Chen" <vinmun@gmail.com>
- Date: Wed, 1 Oct 2014 17:33:43 -0700
- Message-id: <[🔎] CAFuqiEZbTh7VSRa_fuWv-OMvrpppPBXQoZkrWrgFX=L6j=CHCQ@mail.gmail.com>
- In-reply-to: <20140930173011.4f93b6b8@taogypsy>
- References: <540C9D67.9090909@zen.co.uk> <87mwabf242.fsf@yun.yagibdah.de> <540D9D89.8070602@zen.co.uk> <20140911184510.0c56deab@bonifac.skk> <20140911201431.0fd8edf7@mydesq2.domain.cxm> <87oaujwb1r.fsf@yun.yagibdah.de> <20140914130040.227cd1dc@mydesq2.domain.cxm> <87zje0plo5.fsf@yun.yagibdah.de> <20140915202940.433bfa6c@mydesq2.domain.cxm> <87d2aqjg3v.fsf@yun.yagibdah.de> <20140921022035.GB5115@swansys> <87lhpddlfm.fsf@yun.yagibdah.de> <20140921182110.2eb5ad69@mydesq2.domain.cxm> <87vbof6trg.fsf@yun.yagibdah.de> <87oau1qh6c.fsf@yun.yagibdah.de> <20140928074430.7df19655@taogypsy> <CAFuqiEZpg6COTsa+o+LmTGzCVmbBCTK0RdjifH=w8OYgC4rvnA@mail.gmail.com> <20140930173011.4f93b6b8@taogypsy>
On Tue, Sep 30, 2014 at 12:30 AM, Charlie <ariestao@ipstarmail.com.au> wrote:
>
> On Mon, 29 Sep 2014 17:51:41 -0700 Vincent mentioned this:
> Re: fvwm: was i3 sticky/floating windows (brasero requires
> gvfs).
>
>> On Sat, Sep 27, 2014 at 2:44 PM, Charlie <ariestao@ipstarmail.com.au>
>> wrote:
>> >
>> > On Sat, 27 Sep 2014 16:20:27 +0200 lee mentioned this:
>> > Re: fvwm: was i3 sticky/floating windows (brasero requires
>> > gvfs).
>> >
>> >>
>> >> >> Steve Litt <slitt@troubleshooters.com> writes:
>> >> >>
>> >> >> Because you use fvwm on a regular basis, you should write some
>> >> >> documentation on it.
>> >>
>> >> Please check out [1] --- let me know if it works for you and how
>> >> you like it.
>> >>
>> >>
>> >> [1]: https://github.com/lee-/fvwm
>> >>
>> >>
>> >> --
>> >> Knowledge is volatile and fluid. Software is power.
>> >
>> >
>> > From my keyboard:
>> >
>> > Hello Lee,
>> >
>> > I've just had a cursory read and you have put a lot of effort
>> > into this. Thank you on behalf of those of us who will
>> > appreciate and use it.
>> >
>> > I have a meeting to attend this morning that will keep me away most
>> > of the day, so I won't have the time to read all of it till I
>> > return.
>> >
>> > But just quickly and without the history why I moved from fvwm to
>> > xfce4.
>> >
>> > I used the win95 script to get an fvwm setup quickly. I'm tweaking
>> > as i go along as time permits.
>> >
>> > I wanted to get the Debian Menu into the fvwm Root menu to get rid
>> > of the taskbar but have not found yet, how that can be done.
>> >
>>
>> Examples of how the Debian menu is configured and used is provided as
>> part of the Fvwm package, under /usr/share/doc/fvwm/examples/.
>>
>> It is composed of three parts:
>> 1. A function definition
>>
>> DestroyFunc SetDebianMenu
>> AddToFunc SetDebianMenu
>> + I Read /etc/X11/fvwm/menudefs.hook
>>
>> Which when called will read from the menudefs.hook under
>> /etc/X11/fvwm/. This menudefs.hook defines the structure of the Debian
>> menu, but is not yet linked to your personal menu. The name of the
>> Debian menu is "/Debian".
>>
>> 2. Calling the function
>>
>> Test (f /etc/X11/fvwm/menudefs.hook) SetDebianMenu
>>
>> Which will first test if the menu exists, then calls the function
>> defined in step 1. This line can be put anywhere you like, as long as
>> it's after the function definition.
>>
>> 3. Add the Debian menu to your menu
>>
>> Test (f /etc/X11/fvwm/menudefs.hook) + "Debian Menu" Popup "/Debian"
>>
>> Insert this as part of your menu definitions, under 'AddToMenu ...'.
>> This instructs Fvwm to insert an entry to popup the menu "/Debian".
>>
>> Hope it helps,
>>
>> Vincent Chen
>
>
> From my keyboard:
>
> Hello Vincent,
>
> Thanks you for that. Doesn't do it for me. I want to get rid of
> the taskbar and just have the Debian menu available through the
> left mouse click on the desktop instead.
>
> But it doesn't work for me at all. I can get rid of the taskbar, but
> then I don't have a Debian menu I can call up every application in the
> Debian menu in a terminal, but that's just too tedious.
>
That's because you didn't follow the steps I laid out. Insert the
snippets I provided in step 1 and 2 directly in your config file. Not
inside the root menu or any other directives, but directly in your
config file.
> In my menus - Root Menu - there is already this in part:
>
> + "&Restart%mini.turn.xpm%" Popup Restart
> + "&Quit fvwm%mini.stop.xpm%" FvwmForm
> FvwmForm-QuitVerify Test (f /etc/X11/fvwm/menudefs.hook) +
> "$[gt.&Update My Debian Menu]%menu/terminal.xpm%" PipeRead
> 'update-menus && echo "Read $./menudefs.hook"'
>
Because this does exactly what it says: "Update My Debian Menu". _IF_
you already have a Debian menu, clicking this entry will update the
Debian menu. This has nothing to do with actually providing the Debian
menu entry in your menu.
> But It doesn't show up so I might have to edit it, but don't know how.
> So will have to keep playing about when I get time.
>
Insert the snippet in step 3 in your menu. That's what will actually
insert the Debian menu entry in your own menu.
I'll try and restate what is being done:
- Steps 1 and 2 defines the structure of the Debian menu, and makes
Fvwm aware of what the Debian menu looks like.
- Step 3 is what makes Fvwm actually show the Debian menu as a menu entry.
If you only do steps 1 and 2, Fvwm will know about the Debian menu,
but does not display it anywhere. If you only do step 3, Fvwm will
display a menu entry, but will have no idea what this "/Debian" menu
is.
Regards,
Vincent
Reply to: