Post your conky file, and run the sh file in a terminal and post the output here. This should tell which is causing the double up.
Printable View
Post your conky file, and run the sh file in a terminal and post the output here. This should tell which is causing the double up.
Well, the double information only occurs when tomboy is not running, I checked tasks.txt and gcal.txt and they're ok.
Starting Conky Output:
conkyrc2 (tomboy)Code:'/home/sweetth/.scripts/conky_start.sh'
sweetth@ubuntu:~$ Conky: one or more $endif's are missing
Conky: forked to background, pid is 9239
Conky: desktop window (10000b8) is subwindow of root window (13b)
Conky: window type - override
Conky: drawing to created window (3200001)
Conky: drawing to double buffer
Conky: desktop window (10000b8) is subwindow of root window (13b)
Conky: drawing to desktop window
Conky: drawing to double buffer
Conky: desktop window (10000b8) is subwindow of root window (13b)
Conky: window type - override
Conky: drawing to created window (3800001)
Conky: drawing to double buffer
conkyrc3 (Gcalcli)Code:use_xft yes
xftfont verdana:size=8
xftalpha 0.8
background no
update_interval 2.0
total_run_times 0
own_window yes
own_window_transparent yes
own_window_type override
double_buffer yes
cpu_avg_samples 2
net_avg_samples 2
use_spacer right
alignment top_right
gap_x 1110
TEXT
${execi 900 ~/.scripts/checkIfTomboyOpenThenExportTomboyNote.sh}
${font tintin:size=12}${color #d0d3e4}${head /home/sweetth/.scripts/tasks.txt 30 20}${font}${color}
Thanks for your helpCode:use_xft yes
xftfont verdana:size=8
xftalpha 0.8
background no
update_interval 2.0
total_run_times 0
own_window yes
own_window_transparent yes
own_window_type override
double_buffer yes
cpu_avg_samples 2
net_avg_samples 2
use_spacer right
alignment top_right
gap_x 550
TEXT
${execi 900 ~/.scripts/gcal.sh}
${font tintin:size=12}${color #d0d3e4}${head /home/sweetth/.scripts/gcal.txt 10 20}${color}${font}
There is the problem, you are reading it twice. When you run execi it outputs the info to conky and then head is reading that same output which was saved to the text file.
So you might want to change it to
and likewise for GcalCode:${font tintin:size=12}${color #d0d3e4}${execi 900 ~/.scripts/checkIfTomboyOpenThenExportTomboyNote.sh}
Many thanks for the quick reply, day and night :lolflag:
Change both like you said, but both conky do not show any result now?
I tried to run that script and if was giving an error because the "Else" statement was empty.
So replace that sh with this:
Code:#!/bin/sh
if ps ax | grep -v grep | grep "tomboy" > /dev/null
then
#tomboy is running run the script
python exportTomboyNote.py
fi
cat /path/to/exported_tasks.txt
Great!! Work fantasticly!!!
Many thanks
a quick question, my notes are not display completly, you've seen my conkyrc and I had as you suggest in the first topic, "max_user_text 32768" but it didn't change anything, any idea?
rather than
tryCode:cat /path/to/exported_tasks.txt
where 30 is the number of lines.Code:head /path/to/exported_tasks.txt -n 30
If that doesn't work then you might not be able to execi.
Well, I found a solution:
I remove the head function from the checkIfTomboyOpenThenExportTomboyNote.sh and had it in the conkyrc
Many thanks for your help!!
If you can do this, in your opinion, how hard would it be to write software that would directly read and write your tomboy notes through an (php?) interface on the web? Making a wiki, so that your tomboy notes can be accessed and modified anywhere...
This would be extremely useful for alot of people and I can't find where anyone has done it yet.