Page 2 of 4 FirstFirst 1234 LastLast
Results 11 to 20 of 35

Thread: Get Tomboy Notes into Conky

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

    Thumbs up Re: Get Tomboy Notes into Conky

    Quote Originally Posted by sweetthdevil View Post
    Well, to update the note automatically I placed the following option in my conky:

    ${execi 900 ~/.scripts/exportTomboyNote.py}
    (900 secondes => 15minutes!)

    However, every times it does update, tomboy is lunch, and when already lunch the log file become empty.
    Is there a way, for the script to be fetching the information without lunching tomboy, and to fetch the information, when tomboy is open?
    One way to get around this is have Tomboy running in the panel as an applet, which I wind is useful. It neatly hides away as shown in the above screenshot.

    Or you can encase the above script in a bash script which will test if Tomboy is running.
    Code:
    #!/bin/sh
    
    if ps ax | grep -v grep | grep "tomboy" > /dev/null
    then
        #tomboy is running run the script 
     python exportTomboyNote.py
    else
        #not running just cat the exported tasks text file
        cat exported_tasks.txt
        exit
    fi

  2. #12
    Join Date
    Mar 2006
    Beans
    379
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Get Tomboy Notes into Conky

    i just decided to have a nice little text file which conky just displays:
    Code:
    ${color slate grey}To Do:
    ${color}${head /home/uzair/.tasks 30 20}
    and if i ever need to add a task, it's as simiple as:
    Code:
    echo "1) Save the world" >> .tasks
    to remove, just edit the file and delete the line

    i guess i never got into using tomboy cuz it required too much. i think note taking should be super quick

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

    Re: Get Tomboy Notes into Conky

    But then it is cumbersome to delete, I use Tomboy for other stuff so managing tasks through it is effective for me.

    I have also wrote a small python script that take completed tasks and place it in another text file so Conky can distinguish the complete & incomplete tasks.

    Here is the other tutorial about getting your Google Calendar into Conky

    http://ubuntuforums.org/showthread.php?t=818053
    Last edited by pt123; June 8th, 2008 at 07:23 AM.

  4. #14
    Join Date
    May 2005
    Beans
    96

    Re: Get Tomboy Notes into Conky

    Quote Originally Posted by pt123 View Post
    One way to get around this is have Tomboy running in the panel as an applet, which I wind is useful. It neatly hides away as shown in the above screenshot.

    Or you can encase the above script in a bash script which will test if Tomboy is running.
    Code:
    #!/bin/sh
    
    if ps ax | grep -v grep | grep "tomboy" > /dev/null
    then
        #tomboy is running run the script 
     python exportTomboyNote.py
    else
        #not running just cat the exported tasks text file
        cat exported_tasks.txt
        exit
    fi

    Thanks, but could you please be a little bit specific on how to integrate the code?

  5. #15
    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
    Thanks, but could you please be a little bit specific on how to integrate the code?
    rather than running this
    Code:
    ${execi 900 ~/.scripts/exportTomboyNote.py}
    in conky like you wanted to (in your earlier post
    run this
    Code:
    ${execi 900 ~/.scripts/checkIfTomboyOpenThenExportTomboyNote.sh}
    That checkIfTomboyOpenThenExportTomboyNote.sh is the above script I wrote, which checks if Tomboy is open before calling the export python script.

  6. #16
    Join Date
    May 2005
    Beans
    96

    Re: Get Tomboy Notes into Conky

    Alright, sorry to be such an idiot, but I do not know understand the code, so I am asking,

    I create the file, in my folder ~./scripts gave it the right to execute, close tomboy to check if working; and obviously something is wrong

    "cat: exported_tasks.txt: Aucun fichier ou dossier de ce type"

    What should I do?

  7. #17
    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
    "cat: exported_tasks.txt: Aucun fichier ou dossier de ce type"

    What should I do?
    Is looking for the file called exported_tasks.txt in the directory where this script is.

    You need to change that line to
    Code:
    cat /path/to/exported_tasks.txt
    it is where the initial script saves your tomboy tasks to,

    Here is the script more tailored to what you are after
    Code:
    #!/bin/sh
    
    if ps ax | grep -v grep | grep "tomboy" > /dev/null
    then
        #tomboy is running run the script 
     python exportTomboyNote.py
    else
        #not running just cat the exported tasks text file
       # do nothing
    fi
    cat /path/to/exported_tasks.txt
    Last edited by pt123; June 9th, 2008 at 02:02 AM.

  8. #18
    Join Date
    May 2005
    Beans
    96

    Re: Get Tomboy Notes into Conky

    Many thanks, works great now, but just to make sure I understand.

    Now when Conky is going to start, the "checkIfTomboyOpenThenExportTomboyNote.sh"is going to run, if tomeboy is running then the other script is going to fetch the information, but if tomboy is not running, are the information going to be fetch?

  9. #19
    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
    but if tomboy is not running, are the information going to be fetch?
    yep it will fetch the notes from the last successful fetch by "cat-ing" (reading it) that saved file.

  10. #20
    Join Date
    May 2005
    Beans
    96

    Re: Get Tomboy Notes into Conky

    Little trouble though, when I do like that, both tomboy note and GoogleCalendar got double information.

    See attach picture.
    Last edited by sweetthdevil; June 9th, 2008 at 02:45 AM.

Page 2 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
  •