[ctwm] Re: [repository.lp.se #114] Folding menus

2006-01-30 Thread Michael Widerkrantz
Richard Levitte - VMS Whacker via RT [EMAIL PROTECTED] writes:

 I'm talking about menus that are so long that they don't fit on the
 screen.  For example, on my laptop, the Debian-Apps-Tools menu is
 very large and doesn't fit on my screen.

Oh. My bad. I didn't realize. I have never seen such horribly long
menus.


[ctwm] Re: [repository.lp.se #114] Folding menus

2006-01-30 Thread Richard Levitte - VMS Whacker via RT
In message [EMAIL PROTECTED] on Mon, 30 Jan 2006 15:54:43 +0100 (CET), J.O. 
Aho [EMAIL PROTECTED] said:

trizt On Mon, 30 Jan 2006, Richard Levitte - VMS Whacker via RT wrote:
trizt 
trizt  In message [EMAIL PROTECTED] on Mon, 30 Jan 2006 09:55:56 +0100, 
Michael Widerkrantz [EMAIL PROTECTED] said:
trizt 
trizt  mc Many window managers don't fold menus that extend below
trizt  mc the screen. Instead, they simply display the menu
trizt  mc slightly higher, so that the menu window can fit on the
trizt  mc visible screen.
trizt 
trizt  I'm talking about menus that are so long that they don't fit
trizt  on the screen.  For example, on my laptop, the
trizt  Debian-Apps-Tools menu is very large and doesn't fit on my
trizt  screen.
trizt 
trizt Why make the meny that big in the first place?
trizt I like to have submenus so that I don't have any big ones.

They are automatically generated by the Debian installer and accessed
via this line in my configuration (which needs m4 to work, of course):

  undivert(`/etc/X11/ctwm/menudefs.hook')

Cheers,
Richard

-
Please consider sponsoring my work on free software.
See http://www.free.lp.se/sponsoring.html for details.

-- 
Richard Levitte [EMAIL PROTECTED]
http://richard.levitte.org/

When I became a man I put away childish things, including
 the fear of childishness and the desire to be very grown up.
-- C.S. Lewis




[ctwm] Re: [repository.lp.se #114] Folding menus

2006-01-30 Thread Matthew D. Fuller
On Mon, Jan 30, 2006 at 03:54:43PM +0100 I heard the voice of
J.O. Aho, and lo! it spake thus:
 
 Why make the meny that big in the first place?
 I like to have submenus so that I don't have any big ones.

I have a menu with all the xlock modes on it (for no particularly good
reason, other than that the idea stuck me once).  I ended up writing a
perl script to parse the xlock mode list output and generate a set of
more'd submenus with 25 modes on each.  It comes out to 5 of 'em,
each of which is a bit less than half the height of my screen.

(Actually, it doesn't generate ctwm menus as output, it generates perl
definitions of ctwm menus, since I build them with a perl script on
the fly, but who wants to get THAT nutty?  ;)


-- 
Matthew Fuller (MF4839)   |  [EMAIL PROTECTED]
Systems/Network Administrator |  http://www.over-yonder.net/~fullermd/
   On the Internet, nobody can hear you scream.


[ctwm] Re: [repository.lp.se #114] Folding menus

2006-01-30 Thread J.O. Aho

On Mon, 30 Jan 2006, Matthew D. Fuller wrote:


On Mon, Jan 30, 2006 at 03:54:43PM +0100 I heard the voice of
J.O. Aho, and lo! it spake thus:


Why make the meny that big in the first place?
I like to have submenus so that I don't have any big ones.


I have a menu with all the xlock modes on it (for no particularly good
reason, other than that the idea stuck me once).  I ended up writing a
perl script to parse the xlock mode list output and generate a set of
more'd submenus with 25 modes on each.  It comes out to 5 of 'em,
each of which is a bit less than half the height of my screen.

(Actually, it doesn't generate ctwm menus as output, it generates perl
definitions of ctwm menus, since I build them with a perl script on
the fly, but who wants to get THAT nutty?  ;)


So how does this work really, as it do sound a bit interesting for me.

Have myself been thinking of making menus of all those *.desktop that are 
used by many desktop environments for their menu entries, didn't think of 
making this on fly, as I guess that can be pritty slow to use the menus, 
but generate statick menu files. Maybe someone has already made a such 
script that makes menus of the *.desktop files.


--
 //Aho

 
  E-Mail: [EMAIL PROTECTED]URL: http://www.kotiaho.net/~trizt/
 ICQ: 13696780
  System: Linux System(PPC7447/1000 AMD K7A/2000)
 
EU forbids you to send spam without my permission