[hackers] [sent] [PATCH 2/2] replace farbfeld with libnetpbm

2015-12-09 Thread Grant Mathews
Since the PNM/PAM format already exist as a minimal intermediate representation with a rich set of commandline tools to manipulate them, use Netpbm to handle images. --- README.md| 8 ++--- config.def.h | 5 +-- config.mk| 2 +- example | 2 +- sent.c | 105 +

[hackers] [sent] [PATCH 1/2] filter via shell pipeline

2015-12-09 Thread Grant Mathews
Instead of requiring an executable, allow building arbitrary shell pipelines to filter filetypes through. --- sent.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sent.c b/sent.c index fc5e389..99361e8 100644 --- a/sent.c +++ b/sent.c @@ -152,8 +152,8 @@ filter(int fd, co

Re: [hackers] [dmenu][RFC][PATCH] History functionality

2015-12-09 Thread Silvan Jegen
On Wed, Dec 9, 2015 at 11:12 AM, Roberto E. Vargas Caballero wrote: > On Wed, Dec 09, 2015 at 10:31:09AM +0100, Silvan Jegen wrote: >> I realized that I am not dealing with the case that the history file >> does not exist already. I added a simple check for that (although I >> was considering just

Re: [hackers] [dmenu][RFC][PATCH] History functionality

2015-12-09 Thread Roberto E. Vargas Caballero
On Wed, Dec 09, 2015 at 10:31:09AM +0100, Silvan Jegen wrote: > I realized that I am not dealing with the case that the history file > does not exist already. I added a simple check for that (although I > was considering just putting in a comment saying that it has to). > > +if [ ! -e $historyfil

Re: [hackers] [dmenu][RFC][PATCH] History functionality

2015-12-09 Thread Silvan Jegen
On Tue, Dec 8, 2015 at 8:34 PM, Silvan Jegen wrote: > Heyhey > > On Thu, Dec 03, 2015 at 02:57:52AM -0800, Xarchus wrote: >> [...] >> >> - improved the history/cache parsing/de-duplication awk one-liner in >> dmenu_path; the former 'NR==FNR' test was not enough: in case of a not >> supplied or e

Re: [hackers] [PATCH] [sent] Quick patch to replace png with farbfeld

2015-12-09 Thread Dimitris Papastamos
On Wed, Dec 09, 2015 at 12:37:00AM +0100, Markus Teich wrote: > Heyho, > > Dimitris Papastamos wrote: > > I would be inclined to keep regex matching. 2ff is a helper. One can > > imagine > > piping gnuplot files to generate graphs. > > But then we have to adapt it to use `sh` to exec the bin f