Re: [dev] mcabber (IM) and dwm?

From: Tadzik Sośnierz <tadzikes_AT_gmail.com>
Date: Sat, 18 Jul 2009 18:49:53 +0200

Dnia 2009-07-18, o godz. 12:42:47
Samuel Baldwin <shardz4217_AT_gmail.com> napisał(a):

> 2009/7/18 Tadzik Sośnierz <tadzikes_AT_gmail.com>:
> > I'd also like the answer to your question, though I semi-solved this
> > thing by scripting mcabber to set the scroll lock keyboard led if
> > there are unread messages. Anyway, I'd be glad if You found any
> > solution.
>
> How'd you do that?
>

set events_command = ~/.scripts/mcabber-unread
in .mcabberrc
and the script looks like this:

#!/bin/sh
if [ $1 == "UNREAD" ]; then
  ([ $2 -gt 0 ] && xset led 3) || xset -led 3
fi

It's not really good I guess, as I'm not quite good in sh scripting,
but it works.
Received on Sat Jul 18 2009 - 16:49:53 UTC

This archive was generated by hypermail 2.2.0 : Sat Jul 18 2009 - 17:00:01 UTC