Re: [dwm] Master window width in pixels, not percent?

From: Anselm R. Garbe <>
Date: Mon, 28 Aug 2006 12:17:41 +0200

On Mon, Aug 28, 2006 at 12:52:42PM +0300, Ville Koskinen wrote:
> Hi,
> I recently began using dwm, and I must say it is what I've needed for a
> long time. It does have one irksome feature (or lack of): you can only set
> the master window width to be some percent of the screen width.
> Before dwm, all my terminal windows were 80 characters wide. I'd like it
> if it was possible to set a fixed and hard limit in pixels or characters
> (although the latter only applies to terminals) for the master window.
> Yes, I could also calculate the wanted width in percent by hand from the
> given resolution, but I would need to do this to all resolutions (I
> sometimes need resolutions other than 1280x960), which is tedious and
> sounds more like a job of a computer program, :) and I would need to have
> differently configured executables for different resolutions. A hard limit
> of, say, 800 pixels would be 800 pixels in 800x600, 800 pixels in
> 1024x768, etc.
> Now, I have no experience in X programming, but I don't see why it would
> be impossible to have a feature like this. I would be satisfied with the
> following configurable parameters:
> #define MASTERW 550
> and, as defaults,
> #define MASTERW 60
> in config.h.

Pixels don't scale in different resolutions that well (for your
purpose they do, but not in general). To have a 80 column
terminal you assume that the terminal font is never changed.

If percent is to raw, I'd be fine to change that into promille.


 Anselm R. Garbe  ><><  ><><  GPG key: 0D73F361
Received on Mon Aug 28 2006 - 12:17:41 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 14:30:37 UTC