Puppus, me thinks that you are still happily violating
Rule #1: Never edit /root/.jwmrc !
The Puppymakers should have made this file read-only and explode in the face of anyone who tries to change a single bit. Making it hidden and putting a warning on top seems to be no deterrent for determined hackers like you.
But I'm confident. You are already on the right track to kick this bad habit.
Puppus Dogfellow wrote:maybe someone should link or post some untouched _root_.jwmrc and jwmrc files here
Look into /initrd/pup_ro2/ for all your pristine Puppy files - unless you have remastered your installation.
Mochi, what would it take to set that "mymenu" file up as a separate menu with its own button and click activation?
You have to wrap the whole stuff with <RootMenu> tags like this:
<?xml version="1.0"?>
<JWM>
<RootMenu onroot="2">
<Menu label="original menu" icon="" height="16">
[the entire original menu with many of my own menus buried within the extant categories, plus what ever menus and submenus i added outside it, under it, within it, etc]
</Menu>
</RootMenu>
</JWM>
This will turn it into a separate menu. Do not include this menu in the main menu with <Include> as proposed in my previous post, because now it has become a menu of its own, and you can't include complete menus in other menus.
JWM let's you create up to 10 different menus. They are referenced in tray buttons and keyboard shortcuts as root:0, root:1...root:9. You must create these shortcuts/buttons manually, but you can use the ones created for the main menu (root:3) as a model.
Menus with IDs 1 to 5 are special. They are automatically assigned to mouse actions and you can open them by clicking the desktop:
onroot:1 via left-click
onroot:2 via middle-click
onroot:3 via right-click
onroot:4 via scrollwheel-up
onroot:5 via scrollwheel-down
Be careful with onroot:3. If want to name your new menu onroot:3, you first have to rename the original menu in _root_.jwmrc
to something else. onroot:0 would be a nice number for the Mother of all Menus. Don't forget to assign a shortcut/tray button to root:0, otherwise the original menu will be unaccessible.
The next step is to link your mymenu into JWM's menu structure. I prefer to include it in .jwmrc-tray, but you can also put it into jwmrc-personal. There you can put the link right after the <JWM> tag, like this
<?xml version="1.0"?>
<JWM>
<Include>/path/to/mymenu</Include>
That's it.
Here is a very simple example which should work without modification, except for the last menu item. "Edit me!" opens itself in an editor. After saving and closing the editor it reloads the menu and you can see the results of your menu messing immediately. I prefer Leafpad because I normally keep Geany open for other tasks and don't want the menu to mix with other documents. Leafpad is ideal for quick single tasks. The ID for this menu is onroot:2. I don't have to explain how to open it, do I?
Code: Select all
<?xml version="1.0"?>
<JWM>
<RootMenu onroot="2">
<Program label="/root" icon="mini-ofolder.xpm"> rox /root</Program>
<Program label="/" icon="mini-ofolder.xpm"> rox /</Program>
<Menu label="TMP folders" icon="mini-ofolder.xpm">
<Program label="/tmp" icon="mini-ofolder.xpm"> rox /tmp</Program>
<Program label="/dev/shm" icon="mini-ofolder.xpm"> rox /dev/shm</Program>
</Menu>
<Program label="HOME SWEET HOME"icon="usb16.xpm"> . /etc/rc.d/PUPSTATE;rox /mnt/$PDEV1</Program>
<Separator/>
<Program label="Edit me!" icon="mini-edit.xpm"> leafpad "/path/to/mymenu";jwm -reload</Program>
</RootMenu>
</JWM>