You are not logged in.

#1 2009-06-16 11:56:22

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,896
Website

Trying to get a sweet conky todo list going on...[solved]

Hi,

I use an on the desktop conky todo list but its not floating my boat....

Want something I can get too easily and edit in Gnome

Thought about a file page in the fox but a blank white page with a few lines on it looks awful

Are there any cool note apps? screenlets? google apps? I could use

RTM is not on the list waay over the top for my needs

Thanks

MrG


Mr Green

Offline

#2 2009-06-16 12:01:26

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,392
Website

Re: Trying to get a sweet conky todo list going on...[solved]

Gnotes/Tomboy?   I just use Notecase but it is not an always display sort of thing...

Offline

#3 2009-06-16 12:26:53

Shapeshifter
Member
Registered: 2008-03-11
Posts: 230

Re: Trying to get a sweet conky todo list going on...[solved]

Here's a recipe: Take a terminal (e.g. urxvt), tell your WM to remove borders, fix placement, always below (or above with a hotkey if you like), make it autostart when starting the session and start it with -e "vi" and configure vi to autosave periodically (http://vim.wikia.com/wiki/Auto-save_cur … riodically)
This gets you a place to write stuff into, it saves automatically, and it's always there.
Result! smile

Here, I made you a demonstrative screenshot:
vi-note-thumb.png

Offline

#4 2009-06-16 12:26:59

the_isz
Member
Registered: 2009-04-14
Posts: 280

Re: Trying to get a sweet conky todo list going on...[solved]

I wrote a little perl script which converts the output of calcurse to a format interpretable by conky. Currently, I'm
at work, but if you can wait approximately 2 hours, I can post it here.

Offline

#5 2009-06-16 13:39:55

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,896
Website

Re: Trying to get a sweet conky todo list going on...[solved]

Wow thanks guys something to get me started


Mr Green

Offline

#6 2009-06-16 14:33:56

the_isz
Member
Registered: 2009-04-14
Posts: 280

Re: Trying to get a sweet conky todo list going on...[solved]

Ok, there I am again. It's no magic and all, but like you said, maybe it's something to get you started. I wanted to post this on my Arch Linux blog
but crouse hasn't created one for me yet, so here it is:

#!/usr/bin/perl

my %inited;

while( <> )
{
    if( /^to do:$/ )
    {
        # filter "to do:" line
    }
    if( /^([0-9]{2})\/([0-9]{2})\/([0-9]{2}):$/ )
    {
        # date of a task

        if( ! exists $inited{"task"} )
        {
            print "\${template1 TASKS}\n\$font";
            $inited{"task"} = 1;
        }

        print "\${color1}$2.$1.$3\n\${color1}";
    }
    elsif( /^\s+\*\s+(.+)/ )
    {
        # tasks for a whole day
        print " - $1\n";
    }
    elsif( /^\s+-\s+(.+)/ )
    {
        # time range of tasks with special time
        print " - $1: ";
    }
    elsif( /^[0-9]\. (.+)/ )
    {
        # reminders

        if( ! exists $inited{"reminder"} )
        {
            print "\${template1 REMINDERS}\n\$font\${color1}";
            $inited{"reminder"} = 1;
        }

        print "$1\n";
    }
    elsif( /\s+(.+)/ )
    {
        # description of tasks with special time
        print "$1\n";
    }
}

And this is how you might want to embed it in your .conkyrc:

[...]
# Headline color
color0 Tan1
# Information text
color1 83BF1B
# color of lines next to headline
color2 DarkSlateGray
[...]
# template for headline
template1 ${font Arial:bold:size=10}$color0 \1 $color2 ${hr 2}
[...]
TEXT
[...]
${execpi 300 calcurse -d14 | ~/.conky/calcurse_task_to_conky.pl}

${execpi 300 calcurse -t | ~/.conky/calcurse_task_to_conky.pl}
[...]

Have fun with it!

Edit: Added the removal of the "to do:" line

Last edited by the_isz (2009-06-16 17:29:01)

Offline

#7 2009-06-16 14:36:22

genisis300
Member
From: Uk
Registered: 2008-01-15
Posts: 284

Re: Trying to get a sweet conky todo list going on...[solved]

I use this it's pretty simple but very handy

http://bbs.archlinux.org/viewtopic.php?id=69365


"is adult entertainment killing our children or is killing our children entertaining adults?" Marilyn Manson

Offline

#8 2009-06-16 15:08:19

firecat53
Member
From: Lake Stevens, WA, USA
Registered: 2007-05-14
Posts: 1,542
Website

Re: Trying to get a sweet conky todo list going on...[solved]

I use the todo.sh script (todotxt.com - also in the aur) for todos -- it's very easy to pop open a terminal and add/edit/list entries. It's formatted as a plain text file, so I use this little script to output it as a nicely formatted list with a heading for each 'context' to conky (assuming you use the @ notation to tag each entry) --

#!/bin/sh
for item in `todo.sh -d ~/.todotxt/todo.cfg lsc|sed 's/@//g'`
do
        echo `echo $item|tr a-z A-Z`
        todo.sh -pd ~/.todotxt/todo.cfg ls `echo @"$item"` |sed 's/@[^ ]*//g' |sed 's/^/  /'
done

Then added to conky like:

${font DejaVu Sans:size=8}${color #ffccaa}TODO
${font DejaVu Sans:size=8}${color #CCCCCC}${execi 300 /home/firecat53/scripts/todolist.sh }

As an added bonus I set up the AIM bot server as described on the website so I can add/view/list todo items from my non-smartphone. Quite cool to send a msg from my phone and see my todo list updated on the computer a couple of minutes later!

Good luck!
Scott

Last edited by firecat53 (2009-06-16 15:09:29)

Offline

#9 2009-06-16 17:35:12

Rumor
Member
From: Albany, NY
Registered: 2006-07-07
Posts: 638

Re: Trying to get a sweet conky todo list going on...[solved]

If you're using Gnome, there is the sticky note applet that you can add to the panel. The notes don't look all that spiffy, but they sit on your desktop nagging . . . er, reminding you of things you need to do. You certainly can't beat it for "easy to use."

Basket Notes is another good app. Yes, it's designed for KDE, but it works fine with Gnome, sits in the system tray and has more options and features than Baskin-Robbins has flavors. Info about it here: http://basket.kde.org/


Smarter than a speeding bullet
My Goodreads profile

Offline

#10 2009-06-16 17:53:43

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,963
Website

Re: Trying to get a sweet conky todo list going on...[solved]

Take a look at xpad in the community repo.


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#11 2009-06-16 19:20:05

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,896
Website

Re: Trying to get a sweet conky todo list going on...[solved]

pad sticky things etc... are not the best looking thing in world

conky is very close to what I need, wondered if a page in the browser would do the trick?

you can view a file in firefox, could have tab with todos in it... sync with dropbox so I can get it on the move

there must be something like that already?

MrG


Mr Green

Offline

#12 2009-06-16 20:06:54

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,963
Website

Re: Trying to get a sweet conky todo list going on...[solved]

Is the only problem with conky the lack of a way to quickly edit the list?
It should be trivial to write a tray app that brings up an editor to let you change the list displayed by conky.
If this is what you want, I could probably write it for you.


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#13 2009-06-16 23:12:08

the_isz
Member
Registered: 2009-04-14
Posts: 280

Re: Trying to get a sweet conky todo list going on...[solved]

As the name denotes, calcurse has a curse-based front-end (with vi keybindings as default), so editing your todos and tasks is very easy.

Offline

#14 2009-06-17 04:06:50

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,896
Website

Re: Trying to get a sweet conky todo list going on...[solved]

@Xyne that is exactly how I have been using it, conky displays the todo list and I had a launcher linked to editor [that opens list] works fine but I have browser open most the time so thought about displaying it in a tab and so I could get to it quickly without trying to find my desktop [ctrl+alt+d]


Mr Green

Offline

#15 2009-06-17 04:30:12

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,963
Website

Re: Trying to get a sweet conky todo list going on...[solved]

So ideally you would want a bookmarked webpage that contains the list and which  you could edit from within the browser, possibly keeping the list displayed in conky?

That might be possible with some javascript and a textarea.


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#16 2009-06-17 06:36:40

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,896
Website

Re: Trying to get a sweet conky todo list going on...[solved]

I just feel that I use a browser more than the desktop, changing tabs [click] is easier

I can file:/// in firefox so can get a local todo list onscreen [but it does look awful] so yes a bit of html/php

java well I do not want  it on the net  saves uploading and logging in etc.... again I can add file to dropbox for use anywhere


Mr Green

Offline

#17 2009-06-17 07:59:28

HashBox
Member
Registered: 2009-01-22
Posts: 271

Re: Trying to get a sweet conky todo list going on...[solved]

This is somewhat related but I'm working on a Timekeeper for myself using python (cherrypy), and sqlite, and once it's finished it should be easy to package up. Because it uses sqlite as the backend it can be queried easily through scripts etc.

Offline

#18 2009-06-17 15:25:46

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,963
Website

Re: Trying to get a sweet conky todo list going on...[solved]

todo.py

#!/usr/bin/env python
from BaseHTTPServer import HTTPServer, BaseHTTPRequestHandler
from cgi import parse_header, parse_multipart
from sys import argv

class BHandler(BaseHTTPRequestHandler):


  def do_GET(self):
    global port
    global fpath
    try:
      f = open(fpath)
    except IOError:
      self.send_error(404,'File Not Found: %s' % fpath)
    except:
      self.send_error(404,'Unexpected Error')
    else:
      todo = f.read()
      f.close()
      self.send_response(200)
      self.send_header('Content-type', 'text/html')
      self.end_headers()
      response = """
      <html><head><title>To Do</title><style type="text/css">
      textarea {width:100%%;height:90%%;}</style></head><body>
      <form method='POST' enctype='multipart/form-data' action='http://localhost:%d/'>
      <textarea name="list">%s</textarea><br />
      <input type=submit value="update">
      </form></body></html>
      """ % (port,todo)
      self.wfile.write(response)

  def do_POST(self):
    #global rootnode
    try:
      ctype, pdict = cgi.parse_header(self.headers.getheader('content-type'))
      if ctype == 'multipart/form-data':
        query=cgi.parse_multipart(self.rfile, pdict)
      newlist = query.get('list')[0]
    except :
      pass
    else:
      f = open(fpath,'w')
      f.write(newlist)
      f.close()
    self.do_GET()

def main(port):
  try:
    server = HTTPServer(('localhost', port), BHandler)
    server.serve_forever()
  except KeyboardInterrupt:
    server.socket.close()

if __name__ == '__main__':
  if len(argv) == 3:
    global port
    global fpath
    port = int(argv[1])
    fpath = argv[2]
    main(port)
  else:
    print "usage: %s <port> <file>" % argv[0]

Usage: ./todo.py <port> <file>
Browser URL: http://localhost:<port>

That will read a file on the disk and display it in a text area in your browser when you navigate to the URL. You can edit the list directly without any external editor.

Technical Notes
This does not use Javascript.
The script is bound to localhost so it can only be accessed locally on your computer.
It only has access to the file specified when you start the application.

If you like the basic idea, it would be easy to update the script to format the output with html tags (e.g. bullet lists, headwords and indented descriptions, etc). You would really need to be much more specific about what you actually want than you've been so far in this thread in that case.

Last edited by Xyne (2009-06-17 15:26:40)


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#19 2009-06-17 15:55:50

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,896
Website

Re: Trying to get a sweet conky todo list going on...[solved]

emmm interesting .... no an in browser list would be better for me, I could link any file to dropbox...

Let me have a play see what I can do

Thanks

MrG


Mr Green

Offline

#20 2009-06-17 19:28:43

anrxc
Member
From: Croatia
Registered: 2008-03-22
Posts: 834
Website

Re: Trying to get a sweet conky todo list going on...[solved]

Are there any cool note apps? screenlets? google apps? I could use

Emacs org-mode is extremely simple yet very powerful. It utilizes a simple plain-text format - which also means you can grab your agenda from just about anywhere, a conky script, have cron e-mail it to you every morning, or simply display it on your desktop.


You need to install an RTFM interface.

Offline

#21 2009-06-17 19:51:01

HashBox
Member
Registered: 2009-01-22
Posts: 271

Re: Trying to get a sweet conky todo list going on...[solved]

anrxc wrote:

Are there any cool note apps? screenlets? google apps? I could use

Emacs org-mode is extremely simple yet very powerful. It utilizes a simple plain-text format - which also means you can grab your agenda from just about anywhere, a conky script, have cron e-mail it to you every morning, or simply display it on your desktop.

I'd second this, I'm writing my Timekeeper to replace org-mode for me, but so far it wouldn't have a tenth of the features that org-mode has. It's the only reason I even use Emacs. Plus I have scripted it to send the current days appointments to my phone at 7:15 each morning in vcal format smile

Offline

#22 2009-06-18 02:20:28

Rumor
Member
From: Albany, NY
Registered: 2006-07-07
Posts: 638

Re: Trying to get a sweet conky todo list going on...[solved]

Ok, perhaps Remember the Milk will suit? http://www.rememberthemilk.com/

It will integrate with tasque, which is in the AUR
aur/tasque 0.1.8-1 (67)
    Simple Task Manager for the Linux Desktop

So you'd have your webpage interface and you'd be able to manage it from a smaller app on your desktop.


Smarter than a speeding bullet
My Goodreads profile

Offline

#23 2009-06-18 04:48:00

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,896
Website

Re: Trying to get a sweet conky todo list going on...[solved]

Xyne's Python App is very close to what I want

RTM well its an online thing and it takes too long to add items and in that time I could have done them wink

Conky does the job if only on the desktop, its the post ebay stuff reminders and collect bits for pc notes is what I need

my lists are not date specific do as I go along type things

Thanks for all the input and help

MrG


Mr Green

Offline

#24 2010-05-14 01:14:38

B0ris
Member
From: France
Registered: 2010-05-14
Posts: 1
Website

Re: Trying to get a sweet conky todo list going on...[solved]

I know your problem is solved, but if you want something which does exactly that, try this.

Offline

Board footer

Powered by FluxBB