Re: [dev] [grep-notify] A simple notifier when stdout prints a pattern

2014-06-28 Thread Markus Teich
Amadeus Folego wrote: > I also addressed some of your concerns on [0], much better! You still do not initialize size to 0 or free(line) after you're done. --Markus

Re: [dev] [grep-notify] A simple notifier when stdout prints a pattern

2014-06-28 Thread Amadeus Folego
On Sat, Jun 28, 2014 at 11:51:12PM +0200, Markus Teich wrote: > Amadeus Folego wrote: > > Using only sic piped with sed works, but the bell has no effect as I am on > > xmonad and it simply has no effect. > > That should be no problem[0]. You also have to make sure your terminal > emulator > sets

Re: [dev] [grep-notify] A simple notifier when stdout prints a pattern

2014-06-28 Thread Markus Teich
Amadeus Folego wrote: > Using only sic piped with sed works, but the bell has no effect as I am on > xmonad and it simply has no effect. That should be no problem[0]. You also have to make sure your terminal emulator sets the urgency hint on a bell character. st does that by default. --Markus [0

Re: [dev] [grep-notify] A simple notifier when stdout prints a pattern

2014-06-28 Thread Amadeus Folego
> Hi Markus, thank you very much for the tip! I like it, is very simple. > > However, it's suffering from the same problem I am having with > grep-notify. > > The output of sic is being blocked from showing up, if I send :quit all > the output is printed back and the program exits. > > sic -h

Re: [dev] [grep-notify] A simple notifier when stdout prints a pattern

2014-06-28 Thread Amadeus Folego
On Sat, Jun 28, 2014 at 11:24:51PM +0200, Markus Teich wrote: > Rob wrote: > > Perhaps see how using the bell character works for you. You could even do it > > with a shell script: > > > > ... | grep 'your-regex' | while read line; do printf '\x7'; done > > This is probably not helpful since it d

Re: [dev] [grep-notify] A simple notifier when stdout prints a pattern

2014-06-28 Thread Markus Teich
Rob wrote: > Perhaps see how using the bell character works for you. You could even do it > with a shell script: > > ... | grep 'your-regex' | while read line; do printf '\x7'; done This is probably not helpful since it does only print the matching lines. Try sed to insert the bell character: ..

Re: [dev] [grep-notify] A simple notifier when stdout prints a pattern

2014-06-28 Thread Rob
On Sat, 28 Jun 2014, Amadeus Folego wrote: Hi Guys, for some days I've been looking for a suckless irc client. ... It's current status is very prototypical and it's by no measure near to something that I would like to share or tell others to use, I know it's working for simple things though.

Re: [dev] [grep-notify] A simple notifier when stdout prints a pattern

2014-06-28 Thread Markus Teich
Amadeus Folego wrote: > Since I could not find one, I've started grep-notify[3]. > > If you guys have any idea or know of another program that could help me > with this, it would be great! Heyho Amadeus, 0. Your dependencies are screwed up, you link against gdk_pixbuf-2.0, gio-2.0, gobject-2.0 a

[dev] [grep-notify] A simple notifier when stdout prints a pattern

2014-06-28 Thread Amadeus Folego
Hi Guys, for some days I've been looking for a suckless irc client. I've taken a look and used ii[1] but I did not find it very usable for me. So I've been using sic[2] which has been great for me, I had to make some wrappers to improve the experience, like ignoring PARTs, JOINs, etc. sic -