Re: [dwm] dwm without statusbar
Hi, Anselm R. Garbe [EMAIL PROTECTED] schrieb am 11.05.2007 um 15:15: On Fri, May 11, 2007 at 02:59:36PM +0200, lobzang wrote: just a simple question , is it possible to have dwm without any status bar ? (just a blank screen in fact) It is possible if you hack the code, though it is dependent from your intention, there are two motivations for this: a) You want make dwm simplier, so you might want remove the code responsible for drawing/creating/resizing the status bar completely. b) You only don't like the status bar on the screen, so you might want add a togglebar() function which shows/hides the status bar and performs a rearrange() accordingly - actually I even consider this an interesting option for mainstream dwm, because this way, one could define an [...] How about an option to run without statusbar, but to run a command when the mouse hits the screen edge? One could then run dzen or whatever and have some kind of self-hiding status bar/tray, like in Gnome or *gasp* Windows. ciao Stefan -- Dipl.-Ing. Stefan Märkl | [EMAIL PROTECTED] Institute of Microelectronic Systems | http://www.ims.uni-hannover.de Phone: +49-(0)-511-762-19657 | Fax: +49-(0)-511-762-19694 pgpdyaQ4Jbq9f.pgp Description: PGP signature
Re: [dwm] dwm without statusbar
On Fri, May 11, 2007 at 02:59:36PM +0200, lobzang wrote: just a simple question , is it possible to have dwm without any status bar ? (just a blank screen in fact) It is possible if you hack the code, though it is dependent from your intention, there are two motivations for this: a) You want make dwm simplier, so you might want remove the code responsible for drawing/creating/resizing the status bar completely. b) You only don't like the status bar on the screen, so you might want add a togglebar() function which shows/hides the status bar and performs a rearrange() accordingly - actually I even consider this an interesting option for mainstream dwm, because this way, one could define an enum { BarTop, BarBot, BarOff }; and implement a togglebar() function which toggles between those modes. #define BARPOS BarOff in config.h could be then use to hide the bar by default. Is b) of your taste? I consider this useful, to have the possibility to hide or move the bar somewhere else on demand. What do others thing about my proposal? void togglebar(const char *arg) { barpos = ++barpos % 3; way = sy; wah = sh; switch(barpos) { case BarTop: way += bh; XMoveWindow(dpy, barwin, sx, sy); case BarBot: wah -= bh; XMoveWindow(dpy, barwin, sx, sy + sh - bh); break; case BarOff: XMoveWindow(dpy, barwin, sx, sy - bh); break; } lt-arrange(); } Note, not tested, but something like that is in my mind. Regards, -- Anselm R. Garbe http://www.suckless.org/ GPG key: 0D73F361
Re: [dwm] dwm without statusbar
I really like the b option and it would be very usefull to my setup. I hope to see this option soon :D On 5/11/07, Anselm R. Garbe [EMAIL PROTECTED] wrote: On Fri, May 11, 2007 at 02:59:36PM +0200, lobzang wrote: just a simple question , is it possible to have dwm without any status bar ? (just a blank screen in fact) It is possible if you hack the code, though it is dependent from your intention, there are two motivations for this: a) You want make dwm simplier, so you might want remove the code responsible for drawing/creating/resizing the status bar completely. b) You only don't like the status bar on the screen, so you might want add a togglebar() function which shows/hides the status bar and performs a rearrange() accordingly - actually I even consider this an interesting option for mainstream dwm, because this way, one could define an enum { BarTop, BarBot, BarOff }; and implement a togglebar() function which toggles between those modes. #define BARPOS BarOff in config.h could be then use to hide the bar by default. Is b) of your taste? I consider this useful, to have the possibility to hide or move the bar somewhere else on demand. What do others thing about my proposal? void togglebar(const char *arg) { barpos = ++barpos % 3; way = sy; wah = sh; switch(barpos) { case BarTop: way += bh; XMoveWindow(dpy, barwin, sx, sy); case BarBot: wah -= bh; XMoveWindow(dpy, barwin, sx, sy + sh - bh); break; case BarOff: XMoveWindow(dpy, barwin, sx, sy - bh); break; } lt-arrange(); } Note, not tested, but something like that is in my mind. Regards, -- Anselm R. Garbe http://www.suckless.org/ GPG key: 0D73F361
Re: [dwm] dwm without statusbar
On Fri, May 11, 2007 at 03:15:17PM +0200, Anselm R. Garbe wrote: On Fri, May 11, 2007 at 02:59:36PM +0200, lobzang wrote: just a simple question , is it possible to have dwm without any status bar ? (just a blank screen in fact) It is possible if you hack the code, though it is dependent from your intention, there are two motivations for this: a) You want make dwm simplier, so you might want remove the code responsible for drawing/creating/resizing the status bar completely. b) You only don't like the status bar on the screen, so you might want add a togglebar() function which shows/hides the status bar and performs a rearrange() accordingly - actually I even consider this an interesting option for mainstream dwm, because this way, one could define an enum { BarTop, BarBot, BarOff }; and implement a togglebar() function which toggles between those modes. #define BARPOS BarOff in config.h could be then use to hide the bar by default. Is b) of your taste? I consider this useful, to have the possibility to hide or move the bar somewhere else on demand. What do others thing about my proposal? I would appreciate such an option. Diego
Re: [dwm] dwm without statusbar
well I'm interested in both a b :) a) I would then simply use dzen to notify any interesting information ( too much cpu / im conversation..) b) that would be perfect indeed to show/hide the statusbar, so I could forget a) ! On Fri, 2007-05-11 at 15:15 +0200, Anselm R. Garbe wrote: Is b) of your taste? I consider this useful, to have the possibility to hide or move the bar somewhere else on demand. What do others thing about my proposal? Lobzang ___ http://lobzang.free.fr
Re: [dwm] dwm without statusbar
On Fri, May 11, 2007 at 03:15:17PM +0200, Anselm R. Garbe wrote: | |What do others thing about my proposal? b) option is really nice. ciao alex -- Alessandro Dotti Contra | email: [EMAIL PROTECTED] Bologna, Italy | PGP Key ID: 0x9C84C3DA http://www.hyboria.org/ | jabber: [EMAIL PROTECTED] | gtalk: [EMAIL PROTECTED]
Re: [dwm] dwm without statusbar
Anselm R. Garbe [EMAIL PROTECTED] wrote: a) You want make dwm simplier ... wasn't the old way to KISS? customizing should be done by patching source code right? yes, a switch like suggested would surely be nice ... but perhaps simple would be better!? just to think about Meillo r e t u r n s
Re: [dwm] dwm without statusbar
On Fri, May 11, 2007 at 03:15:17PM +0200, Anselm R. Garbe wrote: What do others thing about my proposal? Hello, I like this idea. I never liked the current #define TOPBAR true/false, so this seems to me like a more elegant solution with added NOBAR and runtime switching as a bonus. TOP-BOT-OFF toggling probably won't work for me, but patching it to TOP-OFF won't be that difficult I guess :) Regards, Jeroen Schot