Re: [dwm] HELP! I don't understand config.h or how dwm works!
Hello Benjamin! On Fri, May 08, 2009 at 03:14:39PM -0400, Benjamin Conner wrote: Hey, I'm new to the mailing lists. The subject says it all. I don't know how to setup DWM. I want some autostart programs, some keyboard shortcuts, and some basic stuff so I can use it. (and once I can use it, to use it well :P) Can anyone give me some basic help to using DWM? I found some stuff but nothing helps for me. I can post my config.h too. I will attach it to the message. Debian Sid. DWM 5.5. Thanks. I really appreaciate if anyone can help. It's not very hard. I'm sure that this page will help you a lot: http://dwm.suckless.org/customisation/ but if you don't understand something or you've some issues configuring dwm please share you're config.h and we'll try to help you. Enjoy dwm and good luck for the customisation (the hardest thing usually is to choose the right colors and font)! :-) Ciao, Leonardo -- Leonardo Taccari | Peace, love and NetBSD. | http://freeshells.ch/~leot/
Re: [dwm] dwm-5.3
Hello Anselm, On Thu, Dec 04, 2008 at 08:37:38PM +, Anselm R Garbe wrote: Let me know any issues. Great! Thank you for dwm-5.3. I think that it's needed to #include signal.h, infact without it I couldn't compile on NetBSD. I just updated the pkgsrc package[0] too and added the signal.h patch as wip/dwm/patches/patch-aa[1]. [0]: http://pkgsrc.se/wip/dwm [1]: http://pkgsrc-wip.cvs.sourceforge.net/viewvc/*checkout*/pkgsrc-wip/wip/dwm/patches/patch-aa Ciao, Leonardo -- Leonardo Taccari | Peace, love and NetBSD. | http://leot.netsons.org/ pgpBAkHiGZafL.pgp Description: PGP signature
Re: [dwm] [dvtm-patch] Top stack layout
Hello Claudio! On Tue, Feb 26, 2008 at 09:05:47PM +0100, Claudio M. Alessi wrote: For a personal choose i usually put all the secondary things at the top of the screen mantaining the current working area at the bottom. For this reason i thought would be nice to do the same thing with dvtm and i hacked the ``bottom stack'' layout in order to make it works exactly as the contrary; from here the ``top stack'' layout. I found it very useful expecially when i have only three maximized clients (often). The code works but i will not surprise to find bugs. Yes, the top stack philosophy is pretty good, I was comfortable with ``bottom stack'' and now I'm very comfortable with this new layout, because I think that ``master window'' should be on the bottom. However, I found a small bug, and (ATM) I'm not able to fix it, but I'll report it... If you have BarTop and only *one* non-minimized window and other minimized windows you'll have a problem with one minimized window, I'll try to explain it in ASCII art: It should be: [ BarTop ] -[#2]-- -- minimized window -[#1]-- -- non-minimized window aoeu aoeu aoeu aeou aoeu aoeu -- this line is empty (another bug?) --- But it is: [ BarTop ] -[#1]-- -- minimized and non-minimized windows aoeu aoeu aoeu aoeu aoeu aoeu aoeu aoeu aoeu -- this line is empty --- If I don't have the bar it works correctly: -[#2]- -[#1]- aoeu aoeu aoeu aoeu aoeu aoeu aoeu aoeu aoeu aoeu aoeu aoeu -- the last line isn't empty (and this is correct) -- I hope someone will found it helpful. Of course, it's a useful layout especially for bsdtack users that want the master area in the bottom (and the minimized windows near BarTop are more readable too). Thank you! Ciao, Leonardo -- Leonardo Taccari (leot) | http://leot.netsons.org/ pgp6MipHG97hR.pgp Description: PGP signature
[dwm] [dvtm] CO_BEL patch for madtty.c
Hello Marc and all dvtm lovers (and users), with dvtm I wasn't able to listen the '\a' so I saw that it was a feature, not a bug. I saw that madtty.c need ncurses.h, so we can use the beep()[0][1] X/Open Curses function for this stuff. I simply added the beep() invocation on the madtty_process_nonprinting() routine (case CO_BEL). I also hope to commit wip/dvtm on pkgsrc[2] this weekend (pkgsrc is the NetBSD packages system, but it is very very very portable so it runs on a lot other OSes as well). My local package works well, but I should add options.mk for selecting ncurses or ncursesw. HTH. [0] NetBSD Curses library: curses_tty(3) [1] ncurses library: curs_beep(3X) [2] http://www.pkgsrc.org/ Ciao, Leonardo -- Leonardo Taccari (leot) | http://leot.netsons.org/ --- madtty.c.orig 2008-02-14 16:55:42.0 +0100 +++ madtty.c2008-02-14 17:04:12.0 +0100 @@ -663,9 +663,13 @@ new_escape_sequence(t); break; - case C0_BEL: -/* do nothing for now... maybe a visual bell would be nice? */ -break; + case C0_BEL: /* bell */ + /* + * If possible play our dear speaker or flash the screen + * (otherwise do nothing). + */ + (void)beep(); + break; case C0_BS: if (t-curs_col 0) pgpPDqAfeVE00.pgp Description: PGP signature
Re: [dwm] [dvtm] CO_BEL patch for madtty.c
Hello Szabolcs, On Sat, Feb 16, 2008 at 07:30:02PM +0100, Szabolcs Nagy wrote: very portable.. except it doesn't conform to the fhs (uses /usr/pkg) This isn't true (AFAIK). Please read the fine pkgsrc documentation[0]. You can set ${LOCALBASE}[1] to /usr/local and in this way is FHS-compliant[2]. (: sorry i couldn't resist to make a naughty comment.. Eheh, don't worry. ;-) [0]: http://www.netbsd.org/docs/pkgsrc/ [1]: http://www.netbsd.org/docs/pkgsrc/configuring.html#general-configuration [2]: http://www.pathname.com/fhs/pub/fhs-2.3.html#USRLOCALLOCALHIERARCHY Ciao, Leonardo -- Leonardo Taccari (leot) | http://leot.netsons.org/ pgpHz7x0FrKAo.pgp Description: PGP signature
Re: [dwm] [ANNOUNCE] dvtm-0.3
Hello Marc and all dwm users, With this 0.3 release I started to use dvtm and I can say that it is a very cool, elegant and useful program. I think that with dwm and dvtm we can have a very elegant environment. :) I'm a NetBSD user and I saw that with the 0.2 release you corrected some portability issues about FreeBSD and OpenBSD system. I attached a (very small and simple) madtty.c patch for compiling it correctly on NetBSD too, for more information please see util(3)[1]. I also saw that now dvtm has the mouse support. Only ncurses library supports the mouse (this is an extension), so I suggest to change the config.mk LIBS in this way: [...] LIBS = -lc -lutil -lncurses [...] Infact with ``-lcurses'' on operating systems like NetBSD that have their Curses library I get an error with ``make''. But with a ``make unicode'' I don't get an error because I use devel/ncursesw[2] and with this new LIBS I don't got the error too. I saw on ncurses(3) that ``-lncurses'' should be okay for all OSes that can run GNU new curses. I also attached another (very small and simple) patch of the dvtm(1) man page (about -m option). By the way Marc you're doing a very good software, dvtm is simply great! :) Thank you Marc and HTH. :) [1]: http://netbsd.gw.com/cgi-bin/man-cgi?util++NetBSD-current [2]: http://pkgsrc.se/devel/ncursesw Ciao, Leonardo -- Leonardo Taccari (leot) | http://leot.netsons.org --- madtty.c2008-01-13 12:38:18.0 +0100 +++ madtty.c.orig 2008-01-13 12:37:52.0 +0100 @@ -37,7 +37,7 @@ # include pty.h #elif defined(__FreeBSD__) # include libutil.h -#elif defined(__OpenBSD__) || defined(__NetBSD__) +#elif defined(__OpenBSD__) # include util.h #endif #include madtty.h --- dvtm.1 2008-01-13 17:33:59.0 +0100 +++ dvtm.1.orig 2008-01-13 17:33:47.0 +0100 @@ -13,7 +13,7 @@ .B \-v prints version information to standard output, then exits. .TP -.B \-m mod +.B \-k mod set default modifier at runtime. .TP .B \-s status pgpmn74xziN1R.pgp Description: PGP signature
Re: [dwm] [ANNOUNCE] dvtm-0.3
Hello Marc, On Sun, Jan 13, 2008 at 09:36:23PM +0100, Marc Andre Tanner wrote: Just out of interest could you please send me the exact error message? Of course, this is the exact error: [...] cleaning dvtm build options: CFLAGS = -std=c99 -Os -I. -I/usr/include -I/usr/local/include -I/usr/pkg/include -DVERSION=0.3 -DNDEBUG LDFLAGS = -L/usr/lib -L/usr/local/lib -L/usr/pkg/lib -R/usr/pkg/lib -lc -lutil -lcurses CC = cc CC dvtm.c CC madtty.c CC -o dvtm dvtm.o: In function `handle_mouse': dvtm.c:(.text+0x2f3): undefined reference to `getmouse' dvtm.o: In function `draw_border': dvtm.c:(.text+0x521): undefined reference to `acs_map' dvtm.o: In function `setup': dvtm.c:(.text+0x7b6): undefined reference to `mousemask' madtty.o: In function `madtty_init_vt100_graphics': madtty.c:(.text+0x13a5): undefined reference to `acs_map' madtty.c:(.text+0x13af): undefined reference to `acs_map' madtty.c:(.text+0x13b9): undefined reference to `acs_map' madtty.c:(.text+0x13c3): undefined reference to `acs_map' madtty.c:(.text+0x13cd): undefined reference to `acs_map' madtty.o:madtty.c:(.text+0x13d7): more undefined references to `acs_map' follow *** Error code 1 Stop. make: stopped in /home/leot/documents/software/c/misc/tmp/dvtm-0.3 [...] Thanks good catch. As a sidenote your patches were reversed. Heheh, yes, you're right, sorry. Thanks for the compliment but you should probably thank Anselm too i have mostly just adapted his concepts to a different environment. Yes, both you and Anselm and suckless developers are writing good, useful and pretty software, so thank to dwm developers too! Ciao, Leonardo -- Leonardo Taccari (leot) | http://leot.netsons.org pgp9moquQqyww.pgp Description: PGP signature