Re: [dev] dmenu idea and diff, Ability to set menu width

From: Josh Hogan <josh_AT_sarafynn.org>
Date: Sun, 29 Apr 2012 12:41:20 -0700

I know that there was some excitement about exposed password process monitoring when I sent my previous mail but I was curious if anyone had a chance to take a look at it.

From: Josh Hogan
Sent: Thursday, April 19, 2012 12:17 AM
To: dev_AT_suckless.org
Subject: RE: [dev] dmenu idea and diff, Ability to set menu width

Updating on this. I did some extra digging and it looks like the menu should be set to hold a max of 32 chars as that's the input limit. I re-adjusted my patch and now it takes the font width * 32 and uses that as the width measurement. With this I removed the custom size option and just allowed the caller to have it on or off by simply using a -w flag. I've checked with both fixed and variable width fonts and it looks to operate correctly although it does give extra space with variable width fonts as I believe the reported width is for the widest character in the font.

diff attached.


> Date: Sat, 17 Mar 2012 19:28:00 +0000
> Subject: Re: [dev] dmenu idea and diff, Ability to set menu width
> From: svartman95_AT_gmail.com
> To: dev_AT_suckless.org
>
> > I wasn't suggesting resizing it depending on the match, but resizing
> > it to the given font metrics for the longest item read from stdin
> > instead (only once at the start of dmenu).
> >
> Most simply, dmenu would be as wide as the screen.
>




Received on Sun Apr 29 2012 - 21:41:20 CEST

This archive was generated by hypermail 2.3.0 : Sun Apr 29 2012 - 21:48:04 CEST