You are not logged in.

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

cardinal-biggles
Member
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:

#!/bin/bash
conky -c conkyrc > fifo

The script to read Conky's output:

#!/bin/bash
read LINE < fifo
echo $LINE

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

Offline

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

moetunes
Member
From: A comfortable couch
Registered: 2010-10-09
Posts: 1,033

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.

Offline

Board footer

Powered by FluxBB