You are not logged in.

#1 2013-09-21 21:09:15

Registered: 2013-05-24
Posts: 17

Pipe output from Conky to XFCE genmon plugin

I want to use XFCE's genmon plugin to show Conky's terminal output. I seem to have two options:

  1. Run Conky in run-once mode, which doesn't give good readings

  2. Run Conky from a script, writing its output to a named pipe and using a separate script to read from the pipe, but the latter script kills Conky with a SIGPIPE when the read exits

So, obviously, neither of these options work. Here are my scripts:

The script to start Conky:

conky -c conkyrc > fifo

The script to read Conky's output:

read LINE < fifo
echo $LINE

Last edited by cardinal-biggles (2013-09-21 21:10:49)


#2 2013-09-22 17:56:36

From: A comfortable couch
Registered: 2010-10-09
Posts: 1,030

Re: Pipe output from Conky to XFCE genmon plugin

Try using while, something like:

while read LINE; do
    echo $LINE
done < fifo

You're just jealous because the voices only talk to me.


Board footer

Powered by FluxBB