Re: [dwm] xgamma notify

2009-03-06 Thread stanio
* Alan Busby thebu...@thebusby.com [2009-03-06 00:09]:
 urxvt seems to ignore xgamma. So although it's a great idea, it isn't much
 help if you only have some terminals open.

xgamma works with urxvt here.

-- 
 cheers
 stanio_



Re: [dwm] xgamma notify

2009-03-06 Thread markus schnalke
[2009-03-06 07:04] Samuel Baldwin shardz4...@gmail.com
 2009/3/6 pancake panc...@youterm.com:
  I have been playing a bit with xgamma and I think it can be useful as a
  graphical
  notification for important alerts like low battery or so.
 
  The usage is quite simple. and we can 'flash' the screen in red for a
  fraction of a second with:
 
 What happens if you're not looking at the screen?

I modified `slock' some time ago to display a fullscreen red window
that closes on any button press. I use it to notify about low battery.

The code is attached.

Example usage:

$ ./redscr
 a red windows appears 

$ ./redscr 336699
 a baby blue window appears 



meillo
/* © 2006-2007 Anselm R. Garbe garbeam at gmail dot com
 * See LICENSE file for license details. */
/* #define _XOPEN_SOURCE 500 */
#define VERSION 0.8

#include stdarg.h
#include stdlib.h
#include stdio.h
#include string.h
#include unistd.h
#include X11/Xlib.h


int main(int argc, char* argv[]) {
	char curs[] = {0, 0, 0, 0, 0, 0, 0, 0};
	int screen;
	unsigned int len;
	char screencolor[8] = #66;
	Cursor invisible;
	Display *dpy;
	Pixmap pmap;
	Window root, w;
	XColor black, dummy;
	XEvent ev;
	XSetWindowAttributes wa;

/* 	printf(argc: %d\n, argc); */

	if (argc  2) {
		/* invalid option */
		fprintf(stderr, usage: redscr [--version]\n
		   redscr color (color has to be 6 hex chars)\n);
		exit(EXIT_FAILURE);
	}

	if ((argc == 2)  (strcmp(--version, argv[1]) == 0)) {
		/* version information */
		fprintf(stderr, redscr-%s, (c) 2006-2007 Anselm R. Garbe, 2007 markus schnalke\n, VERSION);
		exit(EXIT_SUCCESS);
	}

	if ((argc == 2)) {
		/* set color */
/* 		printf(arg: %s, argv[1]); */
		screencolor[0] = '#';
		screencolor[1] = '\0';
		strcat(screencolor, argv[1]);
/* 		printf(color is: %s, screencolor); */
	}

	if(!(dpy = XOpenDisplay(0))) {
		fprintf(stderr, redscr: cannot open display\n);
		exit(EXIT_FAILURE);
	}




	/* init */
	screen = DefaultScreen(dpy);
	root = RootWindow(dpy, screen);

	Colormap cmap = DefaultColormap(dpy, screen);
	XColor color;

	if(!XAllocNamedColor(dpy, cmap, screencolor, color, color)) {
		fprintf(stderr,error, cannot allocate color\n);
		exit(EXIT_FAILURE);
	}

	wa.override_redirect = 1;
	wa.background_pixel = color.pixel;

	w = XCreateWindow(dpy, root, 0, 0, DisplayWidth(dpy, screen), DisplayHeight(dpy, screen),
	0, DefaultDepth(dpy, screen), CopyFromParent, DefaultVisual(dpy, screen),
	CWOverrideRedirect | CWBackPixel, wa);
	XAllocNamedColor(dpy, DefaultColormap(dpy, screen), black, black, dummy);
	pmap = XCreateBitmapFromData(dpy, w, curs, 8, 8);
	invisible = XCreatePixmapCursor(dpy, pmap, pmap, black, black, 0, 0);
	XDefineCursor(dpy, w, invisible);
	XMapRaised(dpy, w);

	for(len = 1000; len; len--) {
		if(XGrabKeyboard(dpy, root, True, GrabModeAsync, GrabModeAsync, CurrentTime) == GrabSuccess)
			break;
		usleep(1000);
	}

	/* main event loop */
	while (ev.type != KeyPress) {
		XNextEvent(dpy, ev);
		usleep(10);
	}

	XFreePixmap(dpy, pmap);
	XDestroyWindow(dpy, w);
	XCloseDisplay(dpy);
	return 0;
}


signature.asc
Description: Digital signature


[dwm] Re: xgamma notify

2009-03-06 Thread Agathoklis D. Hatzimanikas
On Fri, Mar 06, at 07:04 Samuel Baldwin wrote:
 2009/3/6 pancake panc...@youterm.com:
  I have been playing a bit with xgamma and I think it can be useful as a
  graphical
  notification for important alerts like low battery or so.
 
  The usage is quite simple. and we can 'flash' the screen in red for a
  fraction of a second with:
 
 What happens if you're not looking at the screen?

How about a sound then?

http://www.zedge.net/ringtones/542303/low-battery-ringtone/

 -- 
 Samuel 'Shardz' Baldwin - staticfree.info/~samuel/

Regards,
Ag.



Re: [dwm] xgamma notify

2009-03-06 Thread Neale Pickett

On 3/6/2009, markus schnalke mei...@marmaro.de wrote:

I modified `slock' some time ago to display a fullscreen red window
that closes on any button press. I use it to notify about low battery.

That reminds me, I used to use xrefresh for something similar.

xrefresh -solid red

If you have a fancypants graphics card it might not last long enough to
notice.



[dwm] GSoC 2009 mentors please shout

2009-03-06 Thread Anselm R Garbe
Hi there,

please send me a private mail if you'd be willing to mentor a GSoC
project this year for suckless.org.
We need at least 10 mentors I'd say.

Kind regards,
--Anselm



Re: [dwm] GSoC 2009 mentors please shout

2009-03-06 Thread Matthias-Christian Ott
On Fri, Mar 06, 2009 at 03:02:17PM +, Anselm R Garbe wrote:
 Hi there,
 
 please send me a private mail if you'd be willing to mentor a GSoC
 project this year for suckless.org.
 We need at least 10 mentors I'd say.

I also created a list of mentors:

http://www.suckless.org:8000/gsoc.html

You may add yourself to the list if Anselm agreed.
 
 Kind regards,
 --Anselm

Regards,
Matthias-Christian Ott



Re: [dwm] [dwm+ow...@suckless.org: Messages from dwm@suckless.org to you have been bouncing]

2009-03-06 Thread Joerg van den Hoff
On Thu, Mar 05, 2009 at 09:35:43AM +0100, Szabolcs Nagy wrote:
 On 3/5/09, Szabolcs Nagy nszabo...@gmail.com wrote:
  7587 messages: Starting Wed Jul 19 2006 - 06:39:23 UTC, Ending Thu Mar
  05 2009 - 08:03:46 UTC
 
  so i wonder which is the no. 7600 if there is only 7538..
 
 7587
 
 (sorry)
 
well the last one I've got ( Fri, 06 Mar 2009 00:00:09 + )
reads:

==CUT==
Hi, this is the mlmmj program managing the mailinglist

dwm@suckless.org

Some messages to you could not be delivered. If you're seeing this
message it means things are back to normal, and it's merely for your
information.

Here is the list of the bounced messages:

7617
==CUT==

right now the archive counts 7610 mails. I presume this is updated
only once a day or something?

so I can wait a day or so before looking which mail bounced, but still:
is there an easy way to find, e.g, message no. 4321?

until a few weeks ago I've never seen such bouncing messages. it does'nt
occur with any other list, too.

regards,
joerg



Re: [dwm] [dwm+ow...@suckless.org: Messages from dwm@suckless.org to you have been bouncing]

2009-03-06 Thread Premysl Hruby
On (06/03/09 17:24), Joerg van den Hoff wrote:
 To: dwm mail list dwm@suckless.org
 From: Joerg van den Hoff j.van_den_h...@fzd.de
 Subject: Re: [dwm] [dwm+ow...@suckless.org: Messages from dwm@suckless.org
   to you have been bouncing]
 Reply-To: dwm mail list dwm@suckless.org
 List-Id: dwm mail list dwm.suckless.org
 User-Agent: Mutt/1.5.18 (2008-05-17)
 
 On Thu, Mar 05, 2009 at 09:35:43AM +0100, Szabolcs Nagy wrote:
  On 3/5/09, Szabolcs Nagy nszabo...@gmail.com wrote:
   7587 messages: Starting Wed Jul 19 2006 - 06:39:23 UTC, Ending Thu Mar
   05 2009 - 08:03:46 UTC
  
   so i wonder which is the no. 7600 if there is only 7538..
  
  7587
  
  (sorry)
  
 well the last one I've got ( Fri, 06 Mar 2009 00:00:09 + )
 reads:
 
 ==CUT==
 Hi, this is the mlmmj program managing the mailinglist
 
 dwm@suckless.org
 
 Some messages to you could not be delivered. If you're seeing this
 message it means things are back to normal, and it's merely for your
 information.
 
 Here is the list of the bounced messages:
 
 7617
 ==CUT==
 
 right now the archive counts 7610 mails. I presume this is updated
 only once a day or something?
 
 so I can wait a day or so before looking which mail bounced, but still:
 is there an easy way to find, e.g, message no. 4321?
 
 until a few weeks ago I've never seen such bouncing messages. it does'nt
 occur with any other list, too.
 
 regards,
 joerg
 

Hi,

sorry for such a late reply,

first: yes, web archive is not updated live but twice a day.

That messages you are receiving are just bounce test as reaction to
mlmmj receiving bounce message (itself as consequnce of mlmmj trying to
send you a message from mail-list).

I had saved one bounce message mlmmj received from your MX, and it looks
like your MX is acting very strangely (bounce message attached to this
email). 

I hope that it will help you to solve the problem, because from what I
can get from bounce message and mail-logs, it looks like problem on your
side.

Regards,

-Ph



-- 
Premysl Anydot Hruby, http://www.redrum.cz/
X-Original-To: dwm+bounces-7527-j.van_den_hoff=fzd...@suckless.org
Delivered-To: dwm+bounces-7527-j.van_den_hoff=fzd...@suckless.org
X-Greylist: delayed 1324 seconds by postgrey-1.27 at epona; Wed, 18 Feb 2009 
23:52:35 UTC
Received: from smtpout.fz-rossendorf.de (ix2.fz-rossendorf.de [149.220.4.86])
by code.suckless.org (Postfix) with ESMTP id C66E141C0
for dwm+bounces-7527-j.van_den_hoff=fzd...@suckless.org; Wed, 18 Feb 
2009 23:52:35 + (UTC)
Received: from localhost (localhost [127.0.0.1])
by smtpout.fz-rossendorf.de (Postfix) with ESMTP id 9C1B6936C6
for dwm+bounces-7527-j.van_den_hoff=fzd...@suckless.org; Thu, 19 Feb 
2009 00:30:30 +0100 (CET)
Received: from smtpout.fz-rossendorf.de ([127.0.0.1])
by localhost (ix2 [127.0.0.1]) (amavisd-new, port 10024) with LMTP
id 14521-05-2
for dwm+bounces-7527-j.van_den_hoff=fzd...@suckless.org;
Thu, 19 Feb 2009 00:30:30 +0100 (CET)
Received: from fz-rossendorf.de (cg.fzd.de [149.220.4.66])
by smtpout.fz-rossendorf.de (Postfix) with ESMTP id 655E3936C3
for dwm+bounces-7527-j.van_den_hoff=fzd...@suckless.org; Thu, 19 Feb 
2009 00:30:30 +0100 (CET)
Subject: Delivery report: Re: [dwm] [OT] Personal Website and CSS
From: mailer-dae...@fz-rossendorf.de
To: dwm+bounces-7527-j.van_den_hoff=fzd...@suckless.org
Date: Thu, 19 Feb 2009 00:30:30 +0100
Message-ID: receipt-2044...@cg2.fz-rossendorf.de
X-MAPI-Message-Class: REPORT.IPM.Note.DR
Precedence: list
Reply-To: dwm mail list dwm@suckless.org
List-Id: dwm mail list dwm.suckless.org
List-Unsubscribe: mailto:dwm+unsubscr...@suckless.org
List-Subscribe: mailto:dwm+subscr...@suckless.org
List-Help: mailto:dwm+h...@suckless.org
List-Post: mailto:dwm@suckless.org
MIME-Version: 1.0
Content-Type: multipart/report; report-type=delivery-status; 
boundary=_===2044759cg2.fz-rossendorf.de===_
X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at fz-rossendorf.de


--_===2044759cg2.fz-rossendorf.de===_
Content-Type: text/plain; charset=utf-8

Message delivered to 'j.van_den_h...@cg.fzd.de'
LOCAL module(account v...@fzd.de) reports:
 Delivered to the user mailbox


--_===2044759cg2.fz-rossendorf.de===_
Content-Type: message/delivery-status

Reporting-MTA: dns; cg2.fz-rossendorf.de

Original-Recipient: rfc822;j.van_den_h...@cg.fzd.de
Final-Recipient: LOCAL;v...@fzd.de
Action: delivered
Status: 2.0.0

--_===2044759cg2.fz-rossendorf.de===_
Content-Type: text/rfc822-headers

Received: from mx1.fz-rossendorf.de ([149.220.142.11] verified)
  by cg2.fz-rossendorf.de (CommuniGate Pro SMTP 5.2.12)
  with ESMTP id 2044758 for j.van_den_h...@cg.fzd.de; Thu, 19 Feb 2009 00:30:30 
+0100
Received: from localhost (mx1 [127.0.0.1])
by mx1.fz-rossendorf.de (Postfix) with ESMTP id 11EA92FBBF
for j.van_den_h...@cg.fzd.de; Thu, 19 Feb 2009 00:30:30 +0100 (CET)

Re: [dwm] GSoC 2009 mentors please shout

2009-03-06 Thread voltaic
Hey Matthias,

That URL you mentioned has some simple typos in it. The page is not
publicly editable, so I thought I'd let you know. The things that
stick out at me right away are:

proof should be prove
Our project scopes focus on advanced should be ...focuses on advanced
projects who focus should be projects that focus
Need a comma after average and normal end users

I could go on, but editing that page over email is not the most
efficient way of doing things.


On Fri, Mar 6, 2009 at 10:13 AM, Matthias-Christian Ott o...@mirix.org wrote:
 On Fri, Mar 06, 2009 at 03:02:17PM +, Anselm R Garbe wrote:
 Hi there,

 please send me a private mail if you'd be willing to mentor a GSoC
 project this year for suckless.org.
 We need at least 10 mentors I'd say.

 I also created a list of mentors:

 http://www.suckless.org:8000/gsoc.html

 You may add yourself to the list if Anselm agreed.

 Kind regards,
 --Anselm

 Regards,
 Matthias-Christian Ott





[dwm] minimal communication

2009-03-06 Thread Scytrin dai Kinthra
I'm slowly migrating from irssi to sic for IRC conversations, setting
up up a hotkey in dwm to popup dmenu, which feeds into sic. sic will
be displayed in either the root window or a terminal. I'm still
figuring out the IPC for this setup to work sanely.

My question however, is anyone familiar with a jabber client similar
to sic? I've looked at freetalk and mcabber. freetalk seems more CLI
oriented, but I doesn't seem that piping friendly to me.
mcabber uses ncurses as an interface, but already has a few howtos on
sending notifications and data to text files, which means I can get
notifications similar to sic. But I'd have to utilize the application
itself rather than a dmenu pipe.

Anyone?

-- 
stadik.net



Re: [dwm] minimal communication

2009-03-06 Thread Uriel
Bitlbee is the only remotely sane jabber client i know of

uriel


On 3/7/09, Scytrin dai Kinthra scyt...@gmail.com wrote:
 I'm slowly migrating from irssi to sic for IRC conversations, setting
  up up a hotkey in dwm to popup dmenu, which feeds into sic. sic will
  be displayed in either the root window or a terminal. I'm still
  figuring out the IPC for this setup to work sanely.

  My question however, is anyone familiar with a jabber client similar
  to sic? I've looked at freetalk and mcabber. freetalk seems more CLI
  oriented, but I doesn't seem that piping friendly to me.
  mcabber uses ncurses as an interface, but already has a few howtos on
  sending notifications and data to text files, which means I can get
  notifications similar to sic. But I'd have to utilize the application
  itself rather than a dmenu pipe.

  Anyone?


  --
  stadik.net





Re: [dwm] minimal communication

2009-03-06 Thread Jeremy Jay
I'll second bitlbee, although I still use it with irssi.  I do need to
try out sic sometime though...

Jeremy

On Sat 07 Mar 2009 - 01:40AM, Uriel wrote:
 Bitlbee is the only remotely sane jabber client i know of
 
 uriel
 
 
 On 3/7/09, Scytrin dai Kinthra scyt...@gmail.com wrote:
  I'm slowly migrating from irssi to sic for IRC conversations, setting
   up up a hotkey in dwm to popup dmenu, which feeds into sic. sic will
   be displayed in either the root window or a terminal. I'm still
   figuring out the IPC for this setup to work sanely.
 
   My question however, is anyone familiar with a jabber client similar
   to sic? I've looked at freetalk and mcabber. freetalk seems more CLI
   oriented, but I doesn't seem that piping friendly to me.
   mcabber uses ncurses as an interface, but already has a few howtos on
   sending notifications and data to text files, which means I can get
   notifications similar to sic. But I'd have to utilize the application
   itself rather than a dmenu pipe.
 
   Anyone?
 
 
   --
   stadik.net
 
 
 



Re: [dwm] minimal communication

2009-03-06 Thread Alan Busby
Just curious, what are the advantages of sic over irssi?

On Sat, Mar 7, 2009 at 10:48 AM, Jeremy Jay dinkuma...@gmail.com wrote:

 I'll second bitlbee, although I still use it with irssi.  I do need to
 try out sic sometime though...

 Jeremy

 On Sat 07 Mar 2009 - 01:40AM, Uriel wrote:
  Bitlbee is the only remotely sane jabber client i know of
 
  uriel
 
 
  On 3/7/09, Scytrin dai Kinthra scyt...@gmail.com wrote:
   I'm slowly migrating from irssi to sic for IRC conversations, setting
up up a hotkey in dwm to popup dmenu, which feeds into sic. sic will
be displayed in either the root window or a terminal. I'm still
figuring out the IPC for this setup to work sanely.
  
My question however, is anyone familiar with a jabber client similar
to sic? I've looked at freetalk and mcabber. freetalk seems more CLI
oriented, but I doesn't seem that piping friendly to me.
mcabber uses ncurses as an interface, but already has a few howtos on
sending notifications and data to text files, which means I can get
notifications similar to sic. But I'd have to utilize the application
itself rather than a dmenu pipe.
  
Anyone?
  
  
--
stadik.net
  
  
 




Re: [dwm] [dwm+ow...@suckless.org: Messages from dwm@suckless.org to you have been bouncing]

2009-03-06 Thread Neale Pickett
Premysl Hruby dfe...@gmail.com writes:

 I had saved one bounce message mlmmj received from your MX, and it
 looks like your MX is acting very strangely (bounce message attached
 to this email).

Wow, his MTA (or maybe MUA) is sending out a delivery status
notification, saying that the message was delivered.  I didn't think any
MTAs actually did that, it can create many problems (like the current
one).

Joerg, you should check your mail client to see if it's sending out
delivery status notifications (DSNs).  What's happening is that your
mail client, or your mail server, is responding back to the message
saying I got it!  mlmmj (the list software used at suckless.org, which
I happen to have contributed to) treats any response to the envelope
sender address as a bounced message.

I'm guessing there's some sender on the list who requests delivery
status notifications on their outbound messages, and this is why you
only see the bounces occasionally.

I'll refrain from expounding on my opinion of DSNs.  Check the Internet
if you're curious.

Neale



Re: [dwm] minimal communication

2009-03-06 Thread Scytrin dai Kinthra
The challenge is nice. However the major reason I love applications
that follow the suckless philosophy is the tendency to avoid large or
non-ubiquitous libraries. The setup at work is one involving a wide
variety of platforms and configurations, so having a complete setup
that works nigh-everywhere is very very appealing.

I like knowing what's going on but like a very efficient screen usage,
and allowing certain things piped to other things allows a variety of
customizable interfaces and setups. I prize that over shiny GUIs and
amazing configuration any day. I'd rather be able to grep a set of
text files, than adjust history writing settings, memory on scroll
back, or learn client specific commands on regexing the wanted
message.

I've ended up opening up the socket and readline libraries in ruby and
cobbling together a minimal IRC overlay. The most I'll be doing is
color coding output, trimming useless data, and setting up a few
macros for authentication. sic is almost perfect but for a few of it's
choices in output, and I got fed up with figuring out a decent way of
chaining pipes. When I can short circut a setup of 3 or 4 process with
just building a script that opens a few sockets, I'll call that a
gain.
Additionally I can apply the knowledge and already developed code to
when I take a whack a minimal cli jabber client.

2009/3/6 Neale Pickett ne...@woozle.org:
 Ian Daniher it.dani...@gmail.com writes:

 Why do you want to use sic over irssi?

 Maybe the guy likes a challenge :)

 irssi is pretty light...

 The irssi processes on my multi-user server are currently the second
 biggest memory users.  Behind them are the web server, the SMTP, IMAP,
 and POP3 servers, bitlbee, and even the IRC server!

 It certainly isn't anywhere near as heavyweight as, say, pidgin, but I'd
 stop short of calling irssi pretty light.  I'm pretty sure it weighs
 in heavier than any other text-mode client.

 Neale






-- 
stadik.net