Re: OT: Manuel's dwm call (was: [dwm] broken pipes)

From: Manuel Badzong <lists_AT_badzong.com>
Date: Sat, 25 Nov 2006 13:33:30 +0100

Kurt Maier wrote:
> You mentioned calling dwm like this:
>
>> mkfifo dwm_pipe
>> dwm < dwm_pipe > dwm_pipe
Sorry, this snippet was just ment as a Prototype (You have to build a
.xinitrc or .xsession from that). Use it like this:

#!/bin/sh

PIPE=$HOME/.dwm.status

[ -e $PIPE ] || mkfifo $PIPE
[ -p $PIPE ] || exit

dwm < $PIPE > $PIPE &

# because open on a fifo blocks and dwm hangs
# you have to set an inital value
echo mydwm > $PIPE

wait

Regards, Manuel
Received on Sat Nov 25 2006 - 13:33:39 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 14:32:45 UTC