Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (9) </ ... 3 4 5 6 7 [8] 9 >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: A TWM for Open DSL< Next Oldest | Next Newest >
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: Jan. 14 2005,21:50 QUOTE

Quote (henk1955 @ Jan. 14 2005,15:26)
Code Sample

-- Main menu
defmenu("mainmenu", {
   submenu("Programs",{
     menuentry("XTerm", make_exec_fn("xterm")),

Holy moley!
I didn't notice how you had used the '{' in the submenu line...I guess that pretty much defines the submenu in the same manner that Flubox does.

I'm getting excited now....I'll keep you posted...
cheers!


--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
Max Offline





Group: Members
Posts: 211
Joined: July 2004
Posted: Jan. 14 2005,23:01 QUOTE

:)   Had to laugh when I heard your "holey moley"!  you just forgot the Batman....

--------------
Using DSL on: IBM T42, IBM 560x, Dell Dimension CPx
Back to top
Profile PM 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: Jan. 14 2005,23:18 QUOTE

henk: it didn't seem to work =o(

Ion seems to get confused about which terminator is used for each submenu...even after carefully checking every brace it still gives errors about expecting a curly brace before a 'submenu'.  I cut it back until I had only one submenu within the 'defmenu':
Code Sample

--
-- Ion menu definitions
--

-- Generated by dsl-flux2ion2

-- Load a library with some convenience functions.
include("menulib")
-- Load query support code
include("querylib")


-- Main menu
defmenu("DSL", {
       submenu("Apps", {
                       menuentry("Scite", make_exec_fn('scite')),
                       menuentry("Vim", make_exec_fn('rxvt -rv -e vi')),
                       menuentry("Zile EMACS-clone", make_exec_fn('rxvt -rv -T \'Zile\' -e zile')),
                       menuentry("Nano", make_exec_fn('rxvt -rv -T \'Nano\' -e nano-tiny')),
                       menuentry("xzgv Image Viewer", make_exec_fn('/usr/bin/xzgv')),
                       menuentry("Xpaint", make_exec_fn('/usr/bin/X11/xpaint')),
                       menuentry("Ted", make_exec_fn('ted-gtk')),
                       menuentry("Xpdf", make_exec_fn('/usr/bin/xpdf -geometry 640x480')),
                       menuentry("Xcalc", make_exec_fn('xcalc')),
                       menuentry("ABS spreadsheet", make_exec_fn('abs -geometry 640x480')),
                       menuentry("SQLite Book", make_exec_fn('/usr/local/bin/sqlitebook.pl')),
                       menuentry("PIM using Index", make_exec_fn(' rxvt -rv -T \'PIM using Index\' -e /usr/bin/index')),
                       menuentry("Net Dictionary", make_exec_fn(' rxvt -rv -T \'Internet Dictionary\' -e /usr/local/bin/getword')),
               })
       })


Ion finally seemed to accept this.  However, when I pressed F12 i didn't get a menu.

So I think it's back to the drawing board....


--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
henk1955 Offline





Group: Members
Posts: 249
Joined: June 2004
Posted: Jan. 15 2005,16:52 QUOTE

Screenshot of my desktop using the esample menu you give.
the only change i made was:
defmenu("DSL", {
to
defmenu("mainmenu", {
so the F12 key know where to find the menu


--------------
You have a Q or just want to chat?
Come to #damnsmalllinux on irc.freenode.net!
Open 24/7

dell latitude c640 p4@1.6Ghz 256Mb DSL0.9.1-remaster
asus p4p800-vm p4@2.8Ghz HT / celeron@2.4Ghz 512Mb DSL0.9.1-remaster (alsadebs.dsl)
ABit BE6 celeron@466 256Mb DSL0.9.1-remaster (xawtv)
Back to top
Profile PM WEB MSN 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: Jan. 15 2005,18:53 QUOTE

Oh...duuuhhhh.....
It hadn't occured to me that Ion probably needs "mainmenu" to tell it where to start =o)
So now I can build a menu with at least 1 level of submenus without the need to define them elsewhere, so that's a start.

I've been toying with various ideas, but it keeps coming back to me getting confused trying to keep up with where submenus and defmenus are being placed.  The fluxbox menu is very linear, and it's a bit of a boggler for me when I try to convert it to a non-linear format.


--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
41 replies since Jan. 10 2005,01:43 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (9) </ ... 3 4 5 6 7 [8] 9 >/
reply to topic new topic new poll
Quick Reply: A TWM for Open DSL

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code