Page 3 of 4 FirstFirst 1234 LastLast
Results 21 to 30 of 35

Thread: Get Tomboy Notes into Conky

  1. #21
    Join Date
    Jul 2005
    Beans
    740
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Get Tomboy Notes into Conky

    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.

  2. #22
    Join Date
    May 2005
    Beans
    96

    Re: Get Tomboy Notes into Conky

    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:

    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
    conkyrc2 (tomboy)

    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}
    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 550
    
    
     TEXT
    ${execi 900 ~/.scripts/gcal.sh}
    ${font tintin:size=12}${color #d0d3e4}${head /home/sweetth/.scripts/gcal.txt 10 20}${color}${font}
    Thanks for your help

  3. #23
    Join Date
    Jul 2005
    Beans
    740
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Get Tomboy Notes into Conky

    Quote Originally Posted by sweetthdevil View Post
    conkyrc2 (tomboy)

    Code:
    ${execi 900 ~/.scripts/checkIfTomboyOpenThenExportTomboyNote.sh}
    ${font tintin:size=12}${color #d0d3e4}${head /home/sweetth/.scripts/tasks.txt 30 20}${font}${color}
    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

    Code:
    ${font tintin:size=12}${color #d0d3e4}${execi 900 ~/.scripts/checkIfTomboyOpenThenExportTomboyNote.sh}
    and likewise for Gcal

  4. #24
    Join Date
    May 2005
    Beans
    96

    Re: Get Tomboy Notes into Conky

    Many thanks for the quick reply, day and night

    Change both like you said, but both conky do not show any result now?

  5. #25
    Join Date
    Jul 2005
    Beans
    740
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Get Tomboy Notes into Conky

    Quote Originally Posted by sweetthdevil View Post
    Many thanks for the quick reply, day and night

    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

  6. #26
    Join Date
    May 2005
    Beans
    96

    Re: Get Tomboy Notes into Conky

    Great!! Work fantasticly!!!

    Many thanks

  7. #27
    Join Date
    May 2005
    Beans
    96

    Re: Get Tomboy Notes into Conky

    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?

  8. #28
    Join Date
    Jul 2005
    Beans
    740
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Get Tomboy Notes into Conky

    rather than
    Code:
    cat /path/to/exported_tasks.txt
    try

    Code:
    head /path/to/exported_tasks.txt -n 30
    where 30 is the number of lines.

    If that doesn't work then you might not be able to execi.

  9. #29
    Join Date
    May 2005
    Beans
    96

    Re: Get Tomboy Notes into Conky

    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!!
    Last edited by sweetthdevil; June 10th, 2008 at 07:15 PM.

  10. #30
    Join Date
    Feb 2008
    Beans
    100

    Re: Get Tomboy Notes into Conky

    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.

Page 3 of 4 FirstFirst 1234 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •