[dev] [dwm] 2000 SLOC

2011-10-30 Thread Martin Kopta
"dwm is only a single binary, and its source code is intended to never exceed 2000 SLOC." (http://dwm.suckless.org/) $ wc < dwm.c 2069 6745 52319 $ First 25 LOC is license and there is some whitespace too, however dwm.c is obviously somewhere around 2 kSLOC. 1) I wonder if the rule of 2 kS

Re: [dev] [dwm] 2000 SLOC

2011-10-30 Thread Christoph Lohmann
Greetings. Martin Kopta wrote: > "dwm is only a single binary, and its source code is intended to never exceed > 2000 SLOC." (http://dwm.suckless.org/) > > $ wc < dwm.c > 2069 6745 52319 > $ > > First 25 LOC is license and there is some whitespace too, however dwm.c is > obviously somewhere ar

Re: [dev] [dwm] 2000 SLOC

2011-10-30 Thread Martin Kopta
I am very if my questions are stupid. I am not clever man. And I am not productive in any way. I have not proposed any change yet. I do not want to start a flamewar. I have never used sloccount - thank you for the tip. I will try to learn it and use it. I am not here to disrupt the suckless wor

Re: [dev] [dwm] 2000 SLOC

2011-10-30 Thread Connor Lane Smith
On 30/10/2011, Martin Kopta wrote: > "dwm is only a single binary, and its source code is intended to never > exceed 2000 SLOC." (http://dwm.suckless.org/) > > $ wc < dwm.c > 2069 6745 52319 $ sloccount dwm.c | grep ^ansic ansic: 1810 (100.00%) cls

Re: [dev] [dwm] 2000 SLOC

2011-10-30 Thread Connor Lane Smith
On 30/10/2011, Martin Kopta wrote: > 2) Does that mean dwm won't gain any more features? There aren't really that many features that we could really add to dwm. The only two I really want are better support for window manager hints, and improving the distinction between floating and tiled windows

Re: [dev] [dwm] 2000 SLOC

2011-10-30 Thread Aurélien Aptel
Some of us are socially retarded, excuse them. On Sun, Oct 30, 2011 at 8:53 AM, Martin Kopta wrote: > 2) Does that mean dwm won't gain any more features? > 3) Does that mean the code will be cut short to make place for another > features? dwm won't gain any big features. Generally, if you want s

Re: [dev] [dwm] 2000 SLOC

2011-10-30 Thread pancake
Seriously nobody remembers the time where dwm got new features by removing lines of code? (and this feature was not getting less lines of code) On 30/10/2011, at 10:00, Aurélien Aptel wrote: > Some of us are socially retarded, excuse them. > > On Sun, Oct 30, 2011 at 8:53 AM, Martin Kopta wro

Re: [dev] [dwm] 2000 SLOC

2011-10-30 Thread Anselm R Garbe
On 30 October 2011 08:53, Martin Kopta wrote: > "dwm is only a single binary, and its source code is intended to never > exceed 2000 SLOC." (http://dwm.suckless.org/) > > $ wc < dwm.c >  2069  6745 52319 > $ > > First 25 LOC is license and there is some whitespace too, however dwm.c is > obviously

Re: [dev] [dwm] 2000 SLOC

2011-10-30 Thread Christoph Lohmann
Greetings. Connor Lane Smith wrote: > On 30/10/2011, Martin Kopta wrote: >> 2) Does that mean dwm won't gain any more features? > > There aren't really that many features that we could really add to > dwm. The only two I really want are better support for window manager > hints, and improving th

Re: [dev] [dwm] 2000 SLOC

2011-10-30 Thread Connor Lane Smith
On 30/10/2011, Anselm R Garbe wrote: > Apart from this, the boundary of 2kSLOC was chosen kind of randomly. I > personally feel that an average mind like myself can grasp 2k SLOC > easily and that this is a good strategy to keep the code readable and > maintainable. That reminds me: I think we ne

Re: [dev] [dwm] 2000 SLOC

2011-10-30 Thread Christoph Lohmann
Greetings. Connor Lane Smith wrote: > On 30/10/2011, Anselm R Garbe wrote: >> Apart from this, the boundary of 2kSLOC was chosen kind of randomly. I >> personally feel that an average mind like myself can grasp 2k SLOC >> easily and that this is a good strategy to keep the code readable and >> ma

Re: [dev] [dwm] 2000 SLOC

2011-10-30 Thread Anselm R Garbe
On Sun, Oct 30, 2011 at 10:50:31AM +0100, Connor Lane Smith wrote: > On 30/10/2011, Anselm R Garbe wrote: > > Apart from this, the boundary of 2kSLOC was chosen kind of randomly. I > > personally feel that an average mind like myself can grasp 2k SLOC > > easily and that this is a good strategy to

Re: [dev] Please recommend a suckless rss reader

2011-10-30 Thread Andreas Krennmair
* Martin Kopta [2011-10-29 17:40]: http://newsbeuter.org/ Not really suckless, but close enough. Also, TUI. newsbeuter is indeed far from suckless, but at least it's one of the few RSS/Atom parser implementation that doesn't take parsing lightly. Many RSS feeds in the real world are seriousl

Re: [dev] [dwm] 2000 SLOC

2011-10-30 Thread hiro
@Anselm: I think a graveyard is a great idea. Why don't you call it suck-my-ass-more.org? I can do youtube screencasts for it if you like. Please don't forget to change the links on wikipedia while you're at it.

Re: [dev] [dwm] 2000 SLOC

2011-10-30 Thread Jakub Lach
Dnia 30 października 2011 14:00 hiro <23h...@googlemail.com> napisał(a): > @Anselm: I think a graveyard is a great idea. Why don't you call it > suck-my-ass-more.org? I can do youtube screencasts for it if you like. > Please don't forget to change the links on wikipedia while you're at it. Think

Re: [dev] [dwm] 2000 SLOC

2011-10-30 Thread Martin Kopta
Thank you very much for answering my questions. mkopta On 10/30/2011 10:33 AM, Anselm R Garbe wrote: On 30 October 2011 08:53, Martin Kopta wrote: "dwm is only a single binary, and its source code is intended to never exceed 2000 SLOC." (http://dwm.suckless.org/) $ wc< dwm.c 2069 6745 52

Re: [dev] [dwm] 2000 SLOC

2011-10-30 Thread Szabolcs Nagy
* Martin Kopta [2011-10-30 08:53:48 +0100]: > First 25 LOC is license and there is some whitespace too, however i'd like to point out that the first 25 lines are not license but documentation as it should be in any program code the fact that you skipped the text without reading it just shows the

Re: [dev] [dwm] 2000 SLOC

2011-10-30 Thread Martin Kopta
Yes, I am sorry, I have indeed skipped that part. However, I have read it later. I agree that license in source code is not really great idea. On 10/30/2011 05:58 PM, Szabolcs Nagy wrote: * Martin Kopta [2011-10-30 08:53:48 +0100]: First 25 LOC is license and there is some whitespace too, how

Re: [dev] [dwm] 2000 SLOC

2011-10-30 Thread Anselm R Garbe
On Sun, Oct 30, 2011 at 02:00:41PM +0100, hiro wrote: > @Anselm: I think a graveyard is a great idea. Why don't you call it > suck-my-ass-more.org? I can do youtube screencasts for it if you like. I don't really care about the domain name, that was just an arbitrary placeholder. Thanks for volunte

[dev] ssh-agent stanza in POSIX shell

2011-10-30 Thread Sime Ramov
I've found the following clever ssh-agent stanza in Richard Crowley's `.profile`[https://raw.github.com/rcrowley/home/master/.profile]: which ssh-agent >/dev/null && { : ${SSH_AUTH_SOCK:=$(echo /tmp/ssh-*/agent.* | cut -d" " -f1)} [ -S "$SSH_AUTH_SOCK" ] && { export

Re: [dev] ssh-agent stanza in POSIX shell

2011-10-30 Thread Martin Kopta
Reminds me http://www.ioccc.org :-) On 10/30/2011 08:04 PM, Sime Ramov wrote: I've found the following clever ssh-agent stanza in Richard Crowley's `.profile`[https://raw.github.com/rcrowley/home/master/.profile]: which ssh-agent>/dev/null&& { : ${SSH_AUTH_SOCK:=$(echo /tmp/ssh-*/agen

Re: [dev] [dwm] ncol layout

2011-10-30 Thread Anselm R Garbe
On 30 October 2011 00:14, Szabolcs Nagy wrote: > * Thomas Dahms [2011-10-29 14:11:59 +0200]: >> Concerning bstack, I don't find any use for this with wide screens >> (16:10 or even 16:9) becoming mainstream. > > some ppl use rotated screens > even a 3:4 aspect ratio makes > vertical splitting bad

Re: [dev] ssh-agent stanza in POSIX shell

2011-10-30 Thread Eckehard Berns
> I've found the following clever ssh-agent stanza in Richard Crowley's > `.profile`[https://raw.github.com/rcrowley/home/master/.profile]: > > which ssh-agent >/dev/null && { > : ${SSH_AUTH_SOCK:=$(echo /tmp/ssh-*/agent.* | cut -d" " -f1)} > [ -S "$SSH_AUTH_SOCK" ] && { >

Re: [dev] [dwm] ncol layout

2011-10-30 Thread Rob
On 30 October 2011 20:13, Anselm R Garbe wrote: > As for the nmaster discussion: I think what I really dislike is the > fact that adjusting nmaster requires 2 key combos. What I could live > with is fixing nmaster in config.h. > > This leads me to the question to long-time users of nmaster: Do you

Re: [dev] [dwm] ncol layout

2011-10-30 Thread Roman Z.
> This leads me to the question to long-time users of nmaster: Do you > guys adjust nmaster frequently, or do you just stick to a particular > setting? I guess the latter... Please let me know. I got one 1680x1050 screen and most of the time I work with one window in the master column. Being able

Re: [dev] ssh-agent stanza in POSIX shell

2011-10-30 Thread Sime Ramov
A bit of an update. I went to find out the *simplest* possible way of using ssh-agent. echo 'eval `ssh-agent`' >> .xinitrc Done. I just manually invoke ssh-add at first leisure. No need for any fancy shell trickery.

Re: [dev] [dwm] 2000 SLOC

2011-10-30 Thread Jeremy Jackins
> First I want many projects removed from suckless.org, only the real key > projects should survive. I plan to set up suckmore-graveyard.org or something > similar in a couple of weeks to allow for an archive of those non fitters, as Aside from wmii, what other projects do you have in mind? I'm su

Re: [dev] [dwm] ncol layout

2011-10-30 Thread pancake
When nmaster was released I was a heavy user of it.. And definitively when I stopped using it I didnt really miss it. I find it useful just in few situations, like when coding on 4:3 screen and needing to read a manpage or src and another src at the same time. Another use was to get a 2|1 layou

Re: [dev] [dwm] ncol layout

2011-10-30 Thread Jeremy Jackins
I'm sure someone has thought of this before but it came to me as a nice way to allow multiple clients in master: Pretending for a moment that mod+shift+return didn't spawn a terminal by default, what if we had something like: - mod+return switches focused window in and out of master, like normal

Re: [dev] [dwm] ncol layout

2011-10-30 Thread Matthew Bauer
On Oct 30, 2011, at 5:49 PM, Jeremy Jackins wrote: I'm sure someone has thought of this before but it came to me as a nice way to allow multiple clients in master: Pretending for a moment that mod+shift+return didn't spawn a terminal by default, what if we had something like: - mod+return switc

Re: [dev] ssh-agent stanza in POSIX shell

2011-10-30 Thread Patrick Haller
On 2011-10-30 20:04, Sime Ramov wrote: > I've found the following clever ssh-agent stanza in Richard Crowley's > `.profile`[https://raw.github.com/rcrowley/home/master/.profile]: ... > It works partially, i.e. it spawns a new agent on every shell > invocation. It should probably test for functiona

Re: [dev] [dwm] ncol layout

2011-10-30 Thread Jeremy Jackins
> But, how would you be able to decrease the nmaster number? Focus a window in master and press alt+shift+enter (or whatever keybinding), so increasing nmaster and moving that window into the stack. Instead of choosing the nmaster number and letting the windows arrange themselves appropriately, yo

Re: [dev] [dwm] 2000 SLOC

2011-10-30 Thread Andrew Hills
On Sun, Oct 30, 2011 at 5:51 PM, Jeremy Jackins wrote: > Aside from wmii, what other projects do you have in mind? I'm suddenly > nervous that my favorite software is going to start to disappear... I think dwm, dmenu, and st are slated for removal, based on prior discussions on this list. --Andr

Re: [dev] [dwm] ncol layout

2011-10-30 Thread Jeremy Jackins
> keybinding), so increasing nmaster and moving that window into the s/increasing/decreasing/ > ... Anyway it seems like my > explanation isn't clear so I'll try to implement it and post a patch Okay, so not knowing the dwm source very well I'm having trouble implementing this, but I think these

Re: [dev] [dwm] 2000 SLOC

2011-10-30 Thread Anthony Campbell
On 31 Oct 2011, Andrew Hills wrote: > On Sun, Oct 30, 2011 at 5:51 PM, Jeremy Jackins > wrote: > > Aside from wmii, what other projects do you have in mind? I'm suddenly > > nervous that my favorite software is going to start to disappear... > > I think dwm, dmenu, and st are slated for removal,

Re: [dev] [dwm] 2000 SLOC

2011-10-30 Thread Scott Lawrence
On 10/31/11 02:31, Anthony Campbell wrote: As one who has arrived at dwm only a couple of weeks ago and like it a lot, I find this discussion alarming, if I understand it correctly. I came here via xmonad, which I also like; but I was largely defeated by Haskell. I don't know C either but I have

Re: [dev] [dwm] 2000 SLOC

2011-10-30 Thread Robert Ransom
On 2011-10-31, Anthony Campbell wrote: > On 31 Oct 2011, Andrew Hills wrote: >> On Sun, Oct 30, 2011 at 5:51 PM, Jeremy Jackins >> wrote: >> > Aside from wmii, what other projects do you have in mind? I'm suddenly >> > nervous that my favorite software is going to start to disappear... >> >> I th