View Single Post
fiferboy's Avatar
Posts: 475 | Thanked: 771 times | Joined on Dec 2007 @ Hamilton, Ontario, Canada
#90
Okay, for people who want multiple Personal Menus, let me know if this suits your needs.

I have written a small shell script that will swap between two menu configurations so you can have multiple setups from a single Personal Menu button.

The script (which can probably be improved upon by someone with more script knowledge) is this:

Code:
#!/bin/sh

if [ -f ~/.personal_menu.alt1 ]; then
  mv ~/.personal_menu.rc ~/.personal_menu.alt2
  mv ~/.personal_menu.alt1 ~/.personal_menu.rc
  personal-menu
elif [ -f ~/.personal_menu.alt2 ]; then
  mv ~/.personal_menu.rc ~/.personal_menu.alt1
  mv ~/.personal_menu.alt2 ~/.personal_menu.rc
  personal-menu
fi
Copy this into a file (I called it pm_swap.sh in my home directory) and run "chmod a+x pm_swap.sh" without the quotes from the terminal in that directory.

Then add an entry to Personal Menu with the following information:
Name: Menu swap
Executable: /home/user/pm_swap.sh

You can name it whatever you want and choose whatever icon you want.

Finally, from the terminal rename your personal_menu.rc file, like this:

Code:
mv ~/.personal_menu.rc ~/.personal_menu.alt1
Now when you click the Personal Menu button you will see a single entry inviting you to create your Personal Menu. Do so with whatever you want in it, and include another "Menu swap" entry like above.

When you are finished you will be able click "Menu swap" and it will pop-down the menu, pop it back up, and then switch over to your other configuration. It is not instantaneous, but it does not take too long either. For editing the menu configurations, just swap to whichever one you want to change, then invoke the "Personal Menu" plugin from the control panel.

Let me know if this is useful.
 

The Following 5 Users Say Thank You to fiferboy For This Useful Post: