Fvwm menu code questions....please help
OK, in my root menu I'm looking for a way to make two dynamic menus within it, each with a different purpose.
I want one menu, opening within the root menu, to look up, find, and list my favorites from firefox.
I want another menu, opening within the root menu, to check within a text file and add the text file's text (per-line) as menu options, and as a command (the same exact lines).
The file I want to take text from is this:
gmrun is a run program pop-up...similar to ALT+F2 in gnome or KDE.
conky -b -u .5 -x 600 -y 0
aterm -tr -g 90 +sb
aterm -tr -g 90+196+4 +sb -fg black
aterm -ib 0
Can someone please help me with this? Once I get this working, I'll be very very happy with my Fvwm configuration. I've also signed up for the Fvwm forums, in hopes of getting this answered, but I'm waiting for the administrator to accept me as a user....this is day 4 now :?, and I'm becoming eager to get this answer.
I know my fellow linuxforums users can help me with this....and I look forward to your responses :D
Finished the recent program menu (with code).....can someone help with sed??
I successfully got the recently run program menu working now:
in my .fvwm2rc file (the menu part)
the app at /home/josh/.fvwm/scripts/recentapps :
# Recently run apps
AddToMenu MenuFvwmRecentlyRun "[ Recently Run Apps ]" Title
Piperead 'exec /home/josh/.fvwm/scripts/recentapps'
exec 6<&0; exec < /home/josh/.gmrun_history; read line; while [ "$line" != "" ]; do line2=\"$line\"; echo "+ $line2 Exec $line"; read line; done; exec 0<&6 6<&-
Now, I need some help from someone with sed experience with the bookmarks menu :D
here is a typical bookmark line in bookmarks.html
but there are some lines that are irrelevant of any individual bookmark. So, I need a couple of sed commands (i believe) that can do this. One that: only works on lines from the file that have "http://" in them and takes what's between the first two quotes and echo's it. The other sed command would need to take what's between the second ">" and the third "<" and echo that.
<DT><A HREF="http://www.linuxjournal.com/article/8005" ADD_DATE="1147434769" LAST_VISIT="1147713275" ICON="data:image/x-icon;base64,AA[LOTS_OF_JIBBERISH]" LAST_CHARSET="UTF-8" ID="rdf:#$Kbx7K3">Useful Things You Can Do with FVWM | Linux Journal</A>
The parts that I explained above are accentuated in the short code that I posted. Bold means it's for the first sed command, underlined is for the second sed command I'd need.
If someone has another way of doing the above than I'm glad to hear (and see code)...but I would really like someone to help with this. I just thought sed might work, but I'm no good at using sed...it just really confuses me.
Thanks you very much in advance! :D