You are not logged in.

#26 2009-04-18 13:59:08

palobo
Member
From: Leiria, Portugal
Registered: 2009-03-21
Posts: 68

Re: Simple task list. (Openbox Pipe Menu)

Hi B.

I like that idea. I am currently make a minor change as to the way the taskfile is created and I'll include your sugestion.

Will report back soon.


" If it aint broke... Then you're not trying hard enough! "

Offline

#27 2009-04-18 14:22:55

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: Simple task list. (Openbox Pipe Menu)

Thanks smile


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#28 2009-05-03 02:34:22

palobo
Member
From: Leiria, Portugal
Registered: 2009-03-21
Posts: 68

Re: Simple task list. (Openbox Pipe Menu)

Hey guys.

Sorry for the long wait but it's been a hecting few weeks. Anyway, it's update time. I've made a few changes, some code optimization and implemented a few requests/suggestions.

@B: You can now use the same script with as many task lists as you like just call it with "... -f taskfile_1", ... -f taskfile_2 etc

You can grab the latested code here. Please also if possible, check out the wiki and comment, criticise and if you see anything that could be better let me know.

Also, as always, requests/suggestions and feedback are very much welcome and appreciated.

Cheers all,
P.


" If it aint broke... Then you're not trying hard enough! "

Offline

#29 2009-05-03 12:58:04

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: Simple task list. (Openbox Pipe Menu)

Cool Palobo, gonna try that out soon smile. Thanks!


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#30 2009-08-20 14:46:23

nickoe
Member
From: Denmark
Registered: 2009-06-30
Posts: 7

Re: Simple task list. (Openbox Pipe Menu)

What is that font that says "Tasks" in the Conky view?

Offline

#31 2009-09-16 10:44:36

palobo
Member
From: Leiria, Portugal
Registered: 2009-03-21
Posts: 68

Re: Simple task list. (Openbox Pipe Menu)

Sorry all for the delay and absence but unfortunately I've been dragged away from Arch and linux in general so I can't really check out the font info. Sorry.

Cheers,
P.


" If it aint broke... Then you're not trying hard enough! "

Offline

#32 2010-06-20 19:39:00

c00kiemon5ter
Member
From: Greece
Registered: 2010-06-01
Posts: 562
Website

Re: Simple task list. (Openbox Pipe Menu)

hi all, I made a bash script of a very simple tasklist
http://github.com/c00kiemon5ter/scripts … asklist.sh

which I stores tasks on file,  which then I can parse and display on conky
http://github.com/c00kiemon5ter/dotfile … /tasklist/

got the idea today, reading this topic, redirected from the screenshots thread
feel free to copy, edit, use, improve, suggest features to the script etc

sample screenshots
tNHAyeA

tNHAzdQ


it's still very basic, and bugs exist, like handling special chars, like '!' '#' etc and reording the list when something gets removed
I hope I'll find time to fix and improve these as soon as possible smile

Last edited by c00kiemon5ter (2010-06-20 19:41:45)


.:[ git me! ] :.

Offline

#33 2010-06-21 11:57:43

ammon
Member
Registered: 2008-12-11
Posts: 413

Re: Simple task list. (Openbox Pipe Menu)

Hey, sry I dont understand this

Then put the following in the root-menu wherever you'd like the SimpleTasks pipe menu to be displayed:

<menu id="pipe-tasklist" />

Where to place it? Why to do new menu entry when there is allready one named Task List?

Offline

#34 2010-06-21 12:33:21

c00kiemon5ter
Member
From: Greece
Registered: 2010-06-01
Posts: 562
Website

Re: Simple task list. (Openbox Pipe Menu)

I didn't get it either, I had the same bug as the 2nd post, I got an empty Tasklist-> menu, I tried different things, I looked up different revisions of the code, I changed some code (offcourse the paths), but I couldn't get it to work properly so I scripted the above ^^


.:[ git me! ] :.

Offline

#35 2010-08-15 04:46:37

the dsc
Member
Registered: 2009-08-01
Posts: 12

Re: Simple task list. (Openbox Pipe Menu)

ammon and c00kiemon5ster,

The first thing you add isn't the menu entry, but it's akin to declare a function on bash. You got to tell first, "here, by menu-X I mean this", and then, later on, you put "menu-X" wherever you want.

Regarding the other issue, it's probably because either you don't have created a text file for your task list (the script does not do it alone), and/or the paths and actual places for files and the script itself are in a mismatch. It happened with me, I executed it from the command line, and the script ended in a error message that was some "file not found" sort of thing.

Great script. I got to learn python someday, at least a little.

Offline

#36 2010-09-21 22:59:53

mDuo13
Member
Registered: 2010-04-25
Posts: 93

Re: Simple task list. (Openbox Pipe Menu)

I'm running my own derivative of this that supports a primitive tag-sorting system. (It filters out any #twitterhashtagstyle words from the task string, and provides separate submenus for each hashtag in addition to a comprehensive list. Multiple tags are OK.)

I rewrote a lot of the stuff and didn't bother with the parts I'm not using, so some things (like Conky output) don't work anymore. It should be relatively easy to hack them back in if you have a need for that stuff.

Anyway, if you're interested, it's here:
http://mduo13.com/stuff/tasklist2.py

Offline

#37 2011-03-13 20:59:36

greatant
Member
Registered: 2011-02-12
Posts: 28

Re: Simple task list. (Openbox Pipe Menu)

Great script!

I'm trying to set this up for use in FVWM. I've got it displaying the New Task menu entry, the separator and the tasks. I just need help getting the last 2 print commands to output on the same line.

def print_menu(tf):
    """Print the pipe menu structure"""
    open_file(tf)
    print 'AddToMenu TaskMenu "TaskMenu" Title'
    print 'AddToMenu TaskMenu "New Task" Exec exec %s' % ('xterm -geometry x++ -e "python ~/.fvwm/scripts/tasklist.py -a new -f %s"' & tf)
    print 'AddToMenu TaskMenu "" Nop'
    i = 0    # Var for tasklist index needed for del_task()
    for t in tasklist:
        print 'AddToMenu TaskMenu "%s"' % t
        print 'Exec exec %s' % ('python ~/.fvwm/scripts.tasklist.py -f %s -a del -i %u ' % (tf, i))
        i += 1

Last edited by greatant (2011-03-14 06:22:26)

Offline

#38 2011-03-24 19:54:00

mDuo13
Member
Registered: 2010-04-25
Posts: 93

Re: Simple task list. (Openbox Pipe Menu)

greatant wrote:

Great script!

I'm trying to set this up for use in FVWM. I've got it displaying the New Task menu entry, the separator and the tasks. I just need help getting the last 2 print commands to output on the same line.

Am I missing something? It seems like this is really trivial. Like, try taking the two print statements, and simply merging them into one with a comma, e.g.:

        print 'AddToMenu TaskMenu "%s"' % t, 'Exec exec %s' % ('python ~/.fvwm/scripts.tasklist.py -f %s -a del -i %u ' % (tf, i))

There are other hacks to do this in Python but that's the easiest one. And if you don't wanna jam it all on one line, you can break it up after the comma with a backslash and continue on the next line, e.g.:

        print 'AddToMenu TaskMenu "%s"' % t, \
                'Exec exec %s' % ('python ~/.fvwm/scripts.tasklist.py -f %s -a del -i %u ' % (tf, i))

Offline

#39 2011-04-17 00:36:54

greatant
Member
Registered: 2011-02-12
Posts: 28

Re: Simple task list. (Openbox Pipe Menu)

Cheers, it works now.
I just have no idea how python works and couldn't work it out with google.

Here it is if anyone else wants an FVWM version:
http://pastebin.com/kLfJLGv9

Offline

Board footer

Powered by FluxBB