Hi, All. How can I unsubscribe from this mail list? Stas.
On Fri, Oct 24, 2008 at 12:00 PM, <[EMAIL PROTECTED]> wrote: > Hi, > > On Sun, Mar 23, 2008 at 05:58:30PM -0500, John S. Yates, Jr. wrote: >> I have some vague recollection of someone posting a library for emacs to >> control a tiling WM. I thought that that WM was dwm. Googling around, even >> substituting wmii, awesome, xmonad, etc I have found no trace of such a >> beast. >> Am I simply mistaken or can anyone provide a pointer? >> >> TIA, >> >> /john > > I don't suppose you are thinking about stumpwm ? > > Jimmy. > > -- > Jimmy Tang > Trinity Centre for High Performance Computing, > Lloyd Building, Trinity College Dublin, Dublin 2, Ireland. > http://www.tchpc.tcd.ie/ | http://www.tchpc.tcd.ie/~jtang > > > -- > Henrik Holst, Sweden | TYPING IS NO SUBSTITUTE FOR THINKING > holst CHR(64) matmech.com | - A Manual for BASIC, > | Darthmouth College, 1 October 1964 > try > > [EMAIL PROTECTED] > > (if you haven't already..) > > > On 10/17/08, Henrik Holst <[EMAIL PROTECTED]> wrote: >> >> -- >> Henrik Holst, Sweden | TYPING IS NO SUBSTITUTE FOR THINKING >> holst CHR(64) matmech.com | - A Manual for BASIC, >> | Darthmouth College, 1 October 1964 >> >> > Hi, > > Sorry for the delay, I had to deal with some other random crap. > Anyway current git HEAD now contains fixes for the bugs mentioned in > this thread, the scripting interface is disabled for now and the top > stack layout is included in the tarball allthough it won't get compiled > in by default. > > If there is no show stopper found in the next few days, I will release > it as dvtm-0.5. > > Cheers, > Marc > > -- > Marc Andre Tanner >< http://www.brain-dump.org/ >< GPG key: CF7D56C0 > Just started using dwm again. I like the new monocole layout. Thanks. > > -- > Jack J. Woehr # "Self-delusion is > http://www.well.com/~jax # half the battle!" > http://www.softwoehr.com # - Zippy the Pinhead > > I blogged about dwm --> > http://dobbscodetalk.com/index.php?option=com_myblog&show=dwm.html&Itemid=29 > > -- > Jack J. Woehr # "Self-delusion is > http://www.well.com/~jax # half the battle!" > http://www.softwoehr.com # - Zippy the Pinhead > > Hi. I am very bad speak English. > I make no big patch to display icons in dwm-bar. > > --- dwm.c 2008-09-10 04:46:17.000000000 +0900 > +++ dwm-icon.c 2008-10-21 10:10:04.570787446 +0900 > @@ -117,6 +117,7 @@ > } Key; > > typedef struct { > + const char *icon; > const char *symbol; > void (*arrange)(void); > } Layout; > @@ -146,6 +147,7 @@ > static void detachstack(Client *c); > static void die(const char *errstr, ...); > static void drawbar(void); > +static void drawicon(const char *file, unsigned long col[ColLast]); > static void drawsquare(Bool filled, Bool empty, Bool invert, unsigned long > col[ColLast]); > static void drawtext(const char *text, unsigned long col[ColLast], Bool > invert); > static void enternotify(XEvent *e); > @@ -511,8 +513,14 @@ > dc.x += dc.w; > } > if(blw > 0) { > - dc.w = blw; > - drawtext(lt[sellt]->symbol, dc.norm, False); > + if (useicons == False) { > + dc.w = blw; > + drawtext(lt[sellt]->symbol, dc.norm, False); > + } > + else { > + dc.w = iw; > + drawicon(lt[sellt]->icon, dc.sel); > + } > x = dc.x + dc.w; > } > else > @@ -537,6 +545,22 @@ > XSync(dpy, False); > } > > +void > +drawicon(const char *file, unsigned long col[ColLast]) { > + Pixmap icon; > + unsigned int x, pw, ph; > + x = dc.x; > + icon = XCreatePixmap(dpy, dc.drawable, 12, 12, 1); > + XReadBitmapFile(dpy, dc.drawable, file, &pw, &ph, &icon, &ix, &iy); > + > + XSetForeground(dpy, dc.gc, col[ColBG]); > + XFillRectangle(dpy, dc.drawable, dc.gc, x, 0, iw, ih); > + > + XSetForeground(dpy, dc.gc, col[ColFG]); > + XSetBackground(dpy, dc.gc, col[ColBG]); > + XCopyPlane(dpy, icon, dc.drawable, dc.gc, ix, iy, iw, ih, x, 0, 1); > +} > + > void > drawsquare(Bool filled, Bool empty, Bool invert, unsigned long col[ColLast]) > { > int x; > > --- config.def.h 2008-09-10 04:46:17.000000000 +0900 > +++ config.def-icon.h 2008-10-21 10:13:32.293097267 +0900 > @@ -28,11 +28,12 @@ > static float mfact = 0.55; /* factor of master area size [0.05..0.95] */ > static Bool resizehints = True; /* False means respect size hints in tiled > resizals */ > > +static Bool useicons = True; /* Use icons for Layout. True or False */ > static Layout layouts[] = { > /* symbol arrange function */ > - { "[]=", tile }, /* first entry is default */ > - { "><>", NULL }, /* no layout function means floating behavior */ > - { "[M]", monocle }, > + { "~/.dwm/icons/tile.xbm", "[]=", tile }, /* first entry is > default */ > + { "~/.dwm/icons/float.xbm", "><>", NULL }, /* no layout function > means floating behavior */ > + { "~/.dwm/icons/monocle.xbm", "[M]", monocle }, > }; > > /* key definitions */ > > screenshot http://img90.imageshack.us/img90/104/20081021kp4.png > > P.S. Sorry if I did sometheng wrong. I do it first time. > > -- > freej > On Tue, 21 Oct 2008 11:12:15 +0900 > "Alexandr Gubanoff" <[EMAIL PROTECTED]> wrote: > >> Hi. I am very bad speak English. >> I make no big patch to display icons in dwm-bar. >> > > Hi, > > What is the font family and color scheme you are using there? > > Thanks, > Amit > Hi, > > i like the idea but i cant try it cause i cant figure out where i{x,y,w,h} > should come from. > i guess they should describe the icons positon and size but patched against a > clean tarball or hg clone it dosnt work. > could you clearify this? id really like to try it out :) > > > kind regards, > > Henry > > CC dwm.c > dwm.c: In function 'drawbar': > dwm.c:522: error: 'iw' undeclared (first use in this function) > dwm.c:522: error: (Each undeclared identifier is reported only once > dwm.c:522: error: for each function it appears in.) > dwm.c: In function 'drawicon': > dwm.c:555: error: 'ix' undeclared (first use in this function) > dwm.c:555: error: 'iy' undeclared (first use in this function) > dwm.c:558: error: 'iw' undeclared (first use in this function) > dwm.c:558: error: 'ih' undeclared (first use in this function) > make: *** [dwm.o] Error 1 > > > On Tue, 21 Oct 2008 04:12:15 +0200, Alexandr Gubanoff <[EMAIL PROTECTED]> > wrote: > >> Hi. I am very bad speak English. >> I make no big patch to display icons in dwm-bar. >> >> ... >> >> screenshot http://img90.imageshack.us/img90/104/20081021kp4.png >> >> P.S. Sorry if I did sometheng wrong. I do it first time. >> >> -- >> freej > > > > On Tue, 21 Oct 2008 08:04:43 +0200, Amit Uttamchandani <[EMAIL PROTECTED]> > wrote: > >> On Tue, 21 Oct 2008 11:12:15 +0900 >> "Alexandr Gubanoff" <[EMAIL PROTECTED]> wrote: >> >>> Hi. I am very bad speak English. >>> I make no big patch to display icons in dwm-bar. >>> >> >> Hi, >> >> What is the font family and color scheme you are using there? >> >> Thanks, >> Amit >> > > Like to know that too. :) > Possibly it should read like this (haven't tried) > > +void > +drawicon(const char *file, unsigned long col[ColLast]) { > + Pixmap icon; > + unsigned int x, iw, ih, ix, iy; > + x = dc.x; > + icon = XCreatePixmap(dpy, dc.drawable, 12, 12, 1); > + XReadBitmapFile(dpy, dc.drawable, file, &iw, &ih, &icon, &ix, &iy); > + > + XSetForeground(dpy, dc.gc, col[ColBG]); > + XFillRectangle(dpy, dc.drawable, dc.gc, x, 0, iw, ih); > + > + XSetForeground(dpy, dc.gc, col[ColFG]); > + XSetBackground(dpy, dc.gc, col[ColBG]); > + XCopyPlane(dpy, icon, dc.drawable, dc.gc, ix, iy, iw, ih, x, 0, 1); > +} > > 2008/10/21, Henry <[EMAIL PROTECTED]>: >> On Tue, 21 Oct 2008 08:04:43 +0200, Amit Uttamchandani <[EMAIL PROTECTED]> >> wrote: >> >>> On Tue, 21 Oct 2008 11:12:15 +0900 >>> "Alexandr Gubanoff" <[EMAIL PROTECTED]> wrote: >>> >>>> Hi. I am very bad speak English. >>>> I make no big patch to display icons in dwm-bar. >>>> >>> >>> Hi, >>> >>> What is the font family and color scheme you are using there? >>> >>> Thanks, >>> Amit >>> >> >> Like to know that too. :) >> >> > On 10/21/08, Henry <[EMAIL PROTECTED]> wrote: >> On Tue, 21 Oct 2008 08:04:43 +0200, Amit Uttamchandani <[EMAIL PROTECTED]> >> wrote: >> >>> On Tue, 21 Oct 2008 11:12:15 +0900 >>> "Alexandr Gubanoff" <[EMAIL PROTECTED]> wrote: >>> >>>> Hi. I am very bad speak English. >>>> I make no big patch to display icons in dwm-bar. >>>> > > Alexander, hello from LOR! (= > >>> >>> Hi, >>> >>> What is the font family and color scheme you are using there? >>> >>> Thanks, >>> Amit >>> >> >> Like to know that too. :) > > I'll try to translate Alex's comments from LOR[1] while he is idle. > GTK theme: modified mookid. > GTK font: snap-10 from artwiz-ru package. > Terminal font: profont. > > Links: > 1. http://www.linux.org.ru/view-message.jsp?msgid=3171062 > 2. http://www.linux.org.ru/gallery/3171062.png > 3. http://www.rootshell.be/~polachok/fonts/ > > -- > . Hoc est simplicissimum! > ..: maxim.vuets.name > 2008/10/21, Maxim Vuets <[EMAIL PROTECTED]>: > >> >> Alexander, hello from LOR! (= >> > > Oh, wow! LOR party here > >> GTK theme: modified mookid. >> GTK font: snap-10 from artwiz-ru package. >> Terminal font: profont. >> >> Links: >> 1. http://www.linux.org.ru/view-message.jsp?msgid=3171062 >> 2. http://www.linux.org.ru/gallery/3171062.png >> 3. http://www.rootshell.be/~polachok/fonts/ >> > > It seems like you're wrong about the location of artwiz fonts. > artwiz-ru is located here [4] and artwize-aleczapka is here [5]. > snap-11 is the one you can get on my site. > > [1] > ftp://ftp.freebsd.org/pub/FreeBSD/ports/local-distfiles/novel/artwiz_ru.tar.bz2 > [2] http://artwizaleczapka.sourceforge.net/ > On 10/21/08, Alexander Polakov <[EMAIL PROTECTED]> wrote: > >> It seems like you're wrong about the location of artwiz fonts. > > I didn't say that my links point to location of artwiz fonts. > That links were just copied from Russian LOR page to > avoid greping of that page by non-Russian subscribers. > I hope that guys are smart enough to google on "artwiz" > and "mookid" (; > > Anyway thanks for the additional links. > > -- > . Hoc est simplicissimum! > ..: maxim.vuets.name > Ooops =) I have forgott. > > Write thes line "static int iy, ix, ih = 14, iw = 14;" in variables. > > At me it is a line number 213. > > 2008/10/22 Henry <[EMAIL PROTECTED]> >> >> Hi, >> >> i like the idea but i cant try it cause i cant figure out where i{x,y,w,h} >> should come from. >> i guess they should describe the icons positon and size but patched against >> a clean tarball or hg clone it dosnt work. >> could you clearify this? id really like to try it out :) >> >> >> kind regards, >> >> Henry >> >> CC dwm.c >> dwm.c: In function 'drawbar': >> dwm.c:522: error: 'iw' undeclared (first use in this function) >> dwm.c:522: error: (Each undeclared identifier is reported only once >> dwm.c:522: error: for each function it appears in.) >> dwm.c: In function 'drawicon': >> dwm.c:555: error: 'ix' undeclared (first use in this function) >> dwm.c:555: error: 'iy' undeclared (first use in this function) >> dwm.c:558: error: 'iw' undeclared (first use in this function) >> dwm.c:558: error: 'ih' undeclared (first use in this function) >> make: *** [dwm.o] Error 1 >> > > > I have tried to correct this patch. > > --- dwm.c 2008-09-10 04:46:17.000000000 +0900 > +++ dwm.c 2008-10-22 11:41:23.998331637 +0900 > @@ -117,6 +117,7 @@ > } Key; > > typedef struct { > + const char *icon; > const char *symbol; > void (*arrange)(void); > } Layout; > @@ -146,6 +147,7 @@ > static void detachstack(Client *c); > static void die(const char *errstr, ...); > static void drawbar(void); > +static void drawicon(const char *file, unsigned long col[ColLast]); > static void drawsquare(Bool filled, Bool empty, Bool invert, unsigned long > col[ColLast]); > static void drawtext(const char *text, unsigned long col[ColLast], Bool > invert); > static void enternotify(XEvent *e); > @@ -208,6 +210,7 @@ > static int screen; > static int sx, sy, sw, sh; /* X display screen geometry x, y, width, height > */ > static int by, bh, blw; /* bar geometry y, height and layout symbol width > */ > +static int iy, ih, iw, ix; /* icon geometry*/ > static int wx, wy, ww, wh; /* window area geometry x, y, width, height, bar > excluded */ > static unsigned int seltags = 0, sellt = 0; > static int (*xerrorxlib)(Display *, XErrorEvent *); > @@ -511,8 +514,14 @@ > dc.x += dc.w; > } > if(blw > 0) { > + if (useicons == False) { > dc.w = blw; > drawtext(lt[sellt]->symbol, dc.norm, False); > + } > + else { > + dc.w = iw; > + drawicon(lt[sellt]->icon, dc.sel); > + } > x = dc.x + dc.w; > } > else > @@ -538,6 +547,21 @@ > } > > void > +drawicon(const char *file, unsigned long col[ColLast]) { > + Pixmap icon; > + unsigned int x, y, pw, ph; > + icon = XCreatePixmap(dpy, dc.drawable, iw, ih, 1); > + XReadBitmapFile(dpy, dc.drawable, file, &pw, &ph, &icon, &ix, &iy); > + x = dc.x + (iw / 2) - (pw / 2) - 1 ; > + y = dc.y + (ih / 2) - (ph / 2) - 1; > + XSetForeground(dpy, dc.gc, col[ColBG]); > + XFillRectangle(dpy, dc.drawable, dc.gc, dc.x, 0, iw, ih); > + XSetForeground(dpy, dc.gc, col[ColFG]); > + XSetBackground(dpy, dc.gc, col[ColBG]); > + XCopyPlane(dpy, icon, dc.drawable, dc.gc, ix, iy, iw, ih, x, y, 1); > +} > + > +void > drawsquare(Bool filled, Bool empty, Bool invert, unsigned long col[ColLast]) > { > int x; > XGCValues gcv; > @@ -1307,7 +1331,7 @@ > sy = 0; > sw = DisplayWidth(dpy, screen); > sh = DisplayHeight(dpy, screen); > - bh = dc.h = dc.font.height + 2; > + iw = ih = bh = dc.h = dc.font.height + 2; > lt[0] = &layouts[0]; > lt[1] = &layouts[1 % LENGTH(layouts)]; > updategeom(); > > --- config.def.h 2008-09-10 04:46:17.000000000 +0900 > +++ config.def.h 2008-10-22 11:42:21.201603243 +0900 > @@ -1,7 +1,7 @@ > /* See LICENSE file for copyright and license details. */ > > /* appearance */ > -static const char font[] = > "-*-terminus-medium-r-normal-*-14-*-*-*-*-*-*-*"; > +static const char font[] = > "-*-terminus-medium-r-normal-*-10-*-*-*-*-*-*-*"; > static const char normbordercolor[] = "#cccccc"; > static const char normbgcolor[] = "#cccccc"; > static const char normfgcolor[] = "#000000"; > @@ -13,6 +13,8 @@ > static Bool showbar = True; /* False means no bar */ > static Bool topbar = True; /* False means bottom bar */ > static Bool readin = True; /* False means do not read > stdin */ > +static Bool useicons = True; /* User icons for Layout > True or False */ > + > > /* tagging */ > static const char tags[][MAXTAGLEN] = { "1", "2", "3", "4", "5", "6", "7", > "8", "9" }; > @@ -29,10 +31,10 @@ > static Bool resizehints = True; /* False means respect size hints in tiled > resizals */ > > static Layout layouts[] = { > - /* symbol arrange function */ > - { "[]=", tile }, /* first entry is default */ > - { "><>", NULL }, /* no layout function means floating behavior */ > - { "[M]", monocle }, > + /* icon symbol arrange function */ > + { "{yuor path to icon}.xbm", "[]=", tile }, /* first entry is > default */ > + { "{yuor path to icon}.xbm", "><>", NULL }, /* no layout > function means floating behavior */ > + { "{yuor path to icon}.xbm", "[M]", monocle }, > }; > > /* key definitions */ > > Its work =. > But, i dont have ideas as it make batter > x = dc.x + (iw / 2) - (pw / 2) - 1 ; > y = dc.y + (ih / 2) - (ph / 2) - 1; > > 2008/10/22 Alexandr Gubanoff <[EMAIL PROTECTED]> >> >> Ooops =) I have forgott. >> >> Write thes line "static int iy, ix, ih = 14, iw = 14;" in variables. >> >> At me it is a line number 213. >> >> 2008/10/22 Henry <[EMAIL PROTECTED]> >>> >>> Hi, >>> >>> i like the idea but i cant try it cause i cant figure out where i{x,y,w,h} >>> should come from. >>> i guess they should describe the icons positon and size but patched against >>> a clean tarball or hg clone it dosnt work. >>> could you clearify this? id really like to try it out :) >>> >>> >>> kind regards, >>> >>> Henry >>> >>> CC dwm.c >>> dwm.c: In function 'drawbar': >>> dwm.c:522: error: 'iw' undeclared (first use in this function) >>> dwm.c:522: error: (Each undeclared identifier is reported only once >>> dwm.c:522: error: for each function it appears in.) >>> dwm.c: In function 'drawicon': >>> dwm.c:555: error: 'ix' undeclared (first use in this function) >>> dwm.c:555: error: 'iy' undeclared (first use in this function) >>> dwm.c:558: error: 'iw' undeclared (first use in this function) >>> dwm.c:558: error: 'ih' undeclared (first use in this function) >>> make: *** [dwm.o] Error 1 >>> >> > > > 2008/10/22, Alexandr Gubanoff <[EMAIL PROTECTED]>: >> I have tried to correct this patch. > > Me too. Can you test the patch attached and report if it acts like the > one you sent? > > > > 2008/10/23 Alexander Polakov <[EMAIL PROTECTED]> >> >> 2008/10/22, Alexandr Gubanoff <[EMAIL PROTECTED]>: >> > I have tried to correct this patch. >> >> Me too. Can you test the patch attached and report if it acts like the >> one you sent? > > Snx. It's work very well.=))) Your variant is more successful ;) > >
