Re: [dev] [dwm] [patch] floating window stacking

2011-12-12 Thread Petr Ĺ abata
On Sat, Dec 10, 2011 at 11:20:40AM +0100, Anselm R Garbe wrote:
> (...)
> 
> The current approach has been in place since the very early beginning
> of dwm, so I don't intend to change it in the ways you suggest.

Thank you.
-P


pgpqt13AVRC4d.pgp
Description: PGP signature


[dev] Urgent window shortcut

2011-12-12 Thread Christoph Lohmann
Greetings comrades,

attached is a patch to add a Mod + u, which will switch
to the next urgent window in the window list. This idea
was proudly stolen from awesome.


Sincerely,

Christoph Lohmann
diff -r cb2ba6763beb config.def.h
--- a/config.def.h	Sun Oct 09 20:53:51 2011 +0200
+++ b/config.def.h	Mon Dec 12 16:26:30 2011 +0100
@@ -60,6 +60,7 @@
 	{ MODKEY,   XK_Return, zoom,   {0} },
 	{ MODKEY,   XK_Tab,view,   {0} },
 	{ MODKEY|ShiftMask, XK_c,  killclient, {0} },
+	{ MODKEY,			XK_u,	   showurgent,	   {0} },
 	{ MODKEY,   XK_t,  setlayout,  {.v = &layouts[0]} },
 	{ MODKEY,   XK_f,  setlayout,  {.v = &layouts[1]} },
 	{ MODKEY,   XK_m,  setlayout,  {.v = &layouts[2]} },
diff -r cb2ba6763beb dwm.c
--- a/dwm.c	Sun Oct 09 20:53:51 2011 +0200
+++ b/dwm.c	Mon Dec 12 16:26:30 2011 +0100
@@ -219,6 +219,7 @@
 static void setmfact(const Arg *arg);
 static void setup(void);
 static void showhide(Client *c);
+static void showurgent(const Arg *arg);
 static void sigchld(int unused);
 static void spawn(const Arg *arg);
 static void tag(const Arg *arg);
@@ -1620,6 +1621,30 @@
 }
 
 void
+showurgent(const Arg *arg) {
+	Monitor *m;
+	Client *c;
+	Arg a;
+
+	for(m = mons; m; m = m->next) {
+		for(c = m->clients; c; c = c->next) {
+			if(c->isurgent) {
+if(m != selmon) {
+	unfocus(selmon->sel, True);
+	selmon = c->mon;
+	focus(NULL);
+}
+a.ui = c->tags;
+view(&a);
+focus(c);
+arrange(selmon);
+return;
+			}
+		}
+	}
+}
+
+void
 sigchld(int unused) {
 	if(signal(SIGCHLD, sigchld) == SIG_ERR)
 		die("Can't install SIGCHLD handler");


[dev] simplyread

2011-12-12 Thread Nick
Hi good fellows,

I mentioned briefly in another thread that I'd made a nicer, much 
simpler alternative to readable and its kin; simplyread. Well, 
mostly people hated that it removed links, and in some cases that it 
added its own style. These things can now be turned on & off in your 
preferred browser, through the addon options, so I figure everybody 
should love it now. If anyone doesn't love it, let me know how to 
change that.

http://njw.me.uk/software/simplyread

Nick


pgpJKO3hqB0Zt.pgp
Description: PGP signature


Re: [dev] simplyread

2011-12-12 Thread Connor Lane Smith
Hey,

On 12 December 2011 18:37, Nick  wrote:
> I mentioned briefly in another thread that I'd made a nicer, much
> simpler alternative to readable and its kin; simplyread. Well,
> mostly people hated that it removed links, and in some cases that it
> added its own style. These things can now be turned on & off in your
> preferred browser, through the addon options, so I figure everybody
> should love it now. If anyone doesn't love it, let me know how to
> change that.

Much much much better! I'll be sure to try this out (all the other
readability plugins have let me down). A few issues, though:

 1. Sometimes it only displays a subsection of an article. e.g., [1].
 2. Can I remain in simplyread mode even after I've clicked a link?
 3. In Firefox 6.0.2 I don't seem to have any configuration options.
 4. Can you avoid showing the  if an  is present?

[1]: http://blog.asmartbear.com/startup-hiring-advice.html

Thanks,
cls



Re: [dev] simplyread

2011-12-12 Thread Nick
Quoth Connor Lane Smith:
> Much much much better!

Woopdeedoo.

>  1. Sometimes it only displays a subsection of an article. e.g., [1].
> [1]: http://blog.asmartbear.com/startup-hiring-advice.html

Yep. One of the disadvantages of the super-simple algorithm is that 
odd HTML isn't always well handled. But that's always going to be 
the case, to an extent.

>  2. Can I remain in simplyread mode even after I've clicked a link?

That'd be lovely, wouldn't it? However, it'd involve rather heavier 
integration with the browser. Which is something I probably don't 
have the patience for.

>  3. In Firefox 6.0.2 I don't seem to have any configuration options.

Yeah. They work in 7+. Mozilla changed the API for v7, and I'm too 
lazy to make it work with the old one. You could probably set the 
options from about:config (search for 'simplyread').

>  4. Can you avoid showing the  if an  is present?

I probably should, yeah. I'll add it to the TODO.

Thanks for the feedback. Any more would be welcome.


pgpkTNU44VBYL.pgp
Description: PGP signature


Re: [dev] simplyread

2011-12-12 Thread Connor Lane Smith
On 12 December 2011 22:35, Nick  wrote:
> Yep. One of the disadvantages of the super-simple algorithm is that
> odd HTML isn't always well handled. But that's always going to be
> the case, to an extent.

Fair enough. I noticed pretty much every other readability plugin
failed when encountering an unclosed . It would be really nice if
every site were to use the HTML5 , in which case we could
just grab that and call it a day. Ahh, if only.

> That'd be lovely, wouldn't it? However, it'd involve rather heavier
> integration with the browser. Which is something I probably don't
> have the patience for.

There are probably pros and cons to that approach, too. I'm sure I'll
manage to hit M-r. ;)

> Yeah. They work in 7+. Mozilla changed the API for v7, and I'm too
> lazy to make it work with the old one. You could probably set the
> options from about:config (search for 'simplyread').

Yep, that works fine. And I use 9.0a2 most of the time, anyway.

> Thanks for the feedback. Any more would be welcome.

I'll probably end up using this a lot (over time my tolerance for
poorly designed websites has quickly approached zero), so I'll let you
know if I find any other bugs.

Anyway, really nice. I love the styling, btw -- very pleasant to read.

Thanks,
cls



[dev] what's your opinion on Go

2011-12-12 Thread Arian Kuschki
Hi all,

I would like to learn a new programming language. I do not know C. As
I remember positive reactions on this list when Go came out, I would
like to know if people still think it might be a 'better C'. One thing
I like about Go is that is seems more suitable for server/web stuff,
which is where I 'earn my bread' (working in Java and Javascript
mainly, also Python) . But is it also good for building stuff like
dmenu, dwm, cli tools in general etc? Or is C still king here?

Cheers,
Arian