Re: [dwm] Making it a million and one

From: bill lam <cbill.lam_AT_gmail.com>
Date: Tue, 17 Feb 2009 12:19:35 +0800

On Mon, 16 Feb 2009, I. Khider wrote:
> Learning about the 'float' feature more would also be nice.

There is another patch that you may interest. It set all client
windows to float except console programs (assumed started by xterm)

diff -r -u dwm/config.def.h dwm-bill/config.def.h
--- dwm/config.def.h 2009-02-08 23:53:19.000000000 +0800
+++ dwm-bill/config.def.h 2009-02-08 23:47:00.000000000 +0800
@@ -21,7 +21,7 @@
 
 static Rule rules[] = {
         /* class instance title tags mask isfloating */
- { "Gimp", NULL, NULL, 0, True },
+ { "XTerm", NULL, NULL, 0, False },
         { "Firefox", NULL, NULL, 1 << 8, True },
 };

diff -r -u dwm/dwm.c dwm-bill/dwm.c
--- dwm/dwm.c 2009-02-08 23:53:19.000000000 +0800
+++ dwm-bill/dwm.c 2009-02-08 23:51:20.000000000 +0800
@@ -866,6 +866,7 @@
                 die("fatal: could not malloc() %u bytes\n", sizeof(Client));
         *c = cz;
         c->win = w;
+ c->isfloating = True; /* bill lam: change default to float */
 
         /* geometry */
         c->x = wa->x;
 

-- 
regards,
====================================================
GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
唐詩203 柳宗元  登柳州城樓寄漳汀封連四州刺史
    城上高樓接大荒  海天愁思正茫茫  驚風亂颭芙蓉水  密雨斜侵薜荔牆
    嶺樹重遮千里目  江流曲似九迴腸  共來百越文身地  猶自音書滯一鄉
Received on Tue Feb 17 2009 - 04:19:35 UTC

This archive was generated by hypermail 2.2.0 : Tue Feb 17 2009 - 04:24:04 UTC