Standard/Advanced Menus

What features/apps/bugfixes needed in a future Puppy
Message
Author
User avatar
Diggs
Posts: 53
Joined: Sun 14 Sep 2008, 22:08

Standard/Advanced Menus

#1 Post by Diggs »

Puppy has so much in it's menu system and much of it is so cryptic that the novice or new user can be easy baffled and intimidated by the multitude of choices in each sub-menu. When I introduce new users to Puppy I have wished for a "Basic" or "Standard" menu setting that hides 2/3 of the menu items that a new user is very unlikely to use. Present them the initial option of just the basics and the ability to turn on and off the advanced items of each (or all) sub-menus. I think this would go a long way in promoting the user-friendliness of Puppy.

Just my $.02.

User avatar
RSH
Posts: 2397
Joined: Mon 05 Sep 2011, 14:21
Location: Germany

Standard/Advanced

#2 Post by RSH »

Hi.

I think i have one way (actually cooking in my head) how this could be done (easy to use for the new linux user).

Would you please suggest, what should be available in the standard menu? I will try some work on this. It should be easily done using shellscript (i hope so).

RSH
[b][url=http://lazy-puppy.weebly.com]LazY Puppy[/url][/b]
[b][url=http://rshs-dna.weebly.com]RSH's DNA[/url][/b]
[url=http://murga-linux.com/puppy/viewtopic.php?t=91422][b]SARA B.[/b][/url]

User avatar
Diggs
Posts: 53
Joined: Sun 14 Sep 2008, 22:08

#3 Post by Diggs »

I can make some suggestions, but I'm sure there are others out there that would do a much better job of it.

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#4 Post by Lobster »

good plan

If possible
I believe Beginner/Intermediary/Advanced would be better

Beginner
Part of the problem is the names
eg menu/Exit
restart JWM
restart x
etc


power off
restart
all a beginner needs

Help (no probs can stay in all levels)

Fun (which is not much fun but would leave in)

now up to multimedia (yuk)

OK
I do not even know where to begin with that . . . m m m
I would just have Gnome Mplayer (Puppy 5.3.1)
but 'Gnome Mplayer' - geeky nothing
so it should be called Play media - because that is what it does
I would add mywavedit
What does it do? 'Record and edit' so that becomes the label

. . . that should get you started . . . 8)
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

User avatar
RSH
Posts: 2397
Joined: Mon 05 Sep 2011, 14:21
Location: Germany

Standard/Advanced Menus

#5 Post by RSH »

Hi,

Is that quick? So, what do you think about this?

This is a very hard cutdown - just to show its possibilities.

Did only beginner and advanced edited. Only for testing and improving.

Please, do not use your favorite save file to improve that!

After installing and (automatically) refreshing menu run "beginner" or "advanced" in the "state of user" menu above help menu.

This one is only edited for fbpanel - but i am able to do this for openbox, fluxbox, jwm and icewm as well.

RSH

P.S.

I must have to go to bed and sleep some hours. Would you please create and post any suggestions of every menu entry and its wanted subs, to give me a line to work. I don't want to break my mind by thinking and doing this alone.

Thank you.

Edit - 2012-01-12: removed the .pet for testing; not longer needed!
Last edited by RSH on Thu 12 Jan 2012, 04:32, edited 5 times in total.
[b][url=http://lazy-puppy.weebly.com]LazY Puppy[/url][/b]
[b][url=http://rshs-dna.weebly.com]RSH's DNA[/url][/b]
[url=http://murga-linux.com/puppy/viewtopic.php?t=91422][b]SARA B.[/b][/url]

stu90

#6 Post by stu90 »

I like to use 'myGTKmenu' (this is the name of the menu application i didnt make it) for custom menus then map it to the left mouse button - on puppy i use this menu more than openbox menu! ( i posted a pet somewhere for it on the forum )

Syb menus are supported and configuration is done by a single text file with simple entry:
item = Terminal
cmd = urxvt
icon = /usr/local/lib/X11/pixmaps/console48.png


Image

User avatar
RSH
Posts: 2397
Joined: Mon 05 Sep 2011, 14:21
Location: Germany

Standard/Advanced Menus

#7 Post by RSH »

stu90 wrote:I like to use 'myGTKmenu' (this is the name of the menu application i didn't make it) for custom menus then map it to the left mouse button - on puppy i use this menu more than openbox menu! ( i posted a pet somewhere for it on the forum )
This is really a nice little menu. Unfortunately i believe it is not what is needed to get this one project solved. I am still a "newbie" too and i remember exactly what has made me much confused the first time i used puppy (muppy 08.3F aka minisys-linux).

When ever i tried to select several desktop icons the way i do this in windows, i did not get the "rubberband". Instead of the rubberband icewm comes up with desktop and/or window selection. :evil: :evil: :evil:

I believe to get a third and different menu to the other menus by clicking on the desktop will make the new linux user unnecessary much more confused as the new linux user already is (when he runs a puppy at first time).
RSH wrote:Hi,

Is that quick?
Yes, but a little too fast!

One should not start a new work if one has already worked 20 hours and more. He better should go to bed and sleep! :D

However: i have tested this one in some other puppies (wary, slacko, muppy) and it works. BUT: the way it has been done is usable only as long as you do not install new software. This way any .desktop file of a new installed software will get lost after changing from "beginner" to "advanced" (f.e.). :oops:

So, what is needed, is a script running in background as long as puppy runs (or automatically started after installing new software and refreshing the menu). It should observe the "applications" directory. If new program is installed it should find the new .desktop file in "applications" and move it to a (the) specified directory and set a link to it in "applications".

Edit: it should know the difference between a real file and a link!

I am sure, this will work (in my german brain i can see the whole thing running - unfortunately i do have to talk to you in English). :(

I will go to the programmers forum and make a post. Some of these experts must have the solution and/or surely some suggestions to provide us to get this one working. I am sure about that. :D

RSH
[b][url=http://lazy-puppy.weebly.com]LazY Puppy[/url][/b]
[b][url=http://rshs-dna.weebly.com]RSH's DNA[/url][/b]
[url=http://murga-linux.com/puppy/viewtopic.php?t=91422][b]SARA B.[/b][/url]

User avatar
jemimah
Posts: 4307
Joined: Wed 26 Aug 2009, 19:56
Location: Tampa, FL
Contact:

#8 Post by jemimah »

What we really need is a puppy for newbies that doesn't come with a bunch of confusing crap in the first place.

Come contribute to the Saluki project!
http://murga-linux.com/puppy/viewtopic.php?t=73687

User avatar
RSH
Posts: 2397
Joined: Mon 05 Sep 2011, 14:21
Location: Germany

Standard/Advanced Menus

#9 Post by RSH »

I had to apologize!

Unfortunately i forgot to copy the pfbpanel into /usr/sbin inside the pet! :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops:

Uploaded a new one (my 2. post above), that works!!! :D

RSH
RSH wrote:One should not start a new work if one has already worked 20 hours and more. He better should go to bed and sleep!
Edit - 2012-01-12: .pet removed - not longer needed!
Last edited by RSH on Thu 12 Jan 2012, 04:31, edited 2 times in total.
[b][url=http://lazy-puppy.weebly.com]LazY Puppy[/url][/b]
[b][url=http://rshs-dna.weebly.com]RSH's DNA[/url][/b]
[url=http://murga-linux.com/puppy/viewtopic.php?t=91422][b]SARA B.[/b][/url]

nancy reagan
Posts: 544
Joined: Thu 22 Jan 2009, 14:20

from a low profile wannabee user

#10 Post by nancy reagan »

What I think would be most illuminating, is to call things by a common name.

Windowers have no clue about Abowird.

My suggestion is: 1. name of the function (wordprocessor, spreadsheet) followed by 2. it funny names (e.g. pudd, gdmap, retrovol alsamixer etc.)

At least thus it worked by me. Did not give it a proper look sometimes hit by incidence the proper button and hence got around a bit in Puppy.

Pity, because it is so rich and full featured and yet mainly used by tweakers instead of average users.

Landed at linux because somebody broke my XP, got so intrigued so that I got lost in Puppy.

SFS's Pet's Slickpet Quickpet ???? it is just puppytalk between tweakers. Therefore linux and/or puppy will never become as popular as it should be, according to its possibilities.

User avatar
RSH
Posts: 2397
Joined: Mon 05 Sep 2011, 14:21
Location: Germany

Standard/Advanced Menus

#11 Post by RSH »

First (BIG) step is done!


New menu entry "Start Puppy as..." above menu>help

- 3 Subs added

* Beginner
* Intermediary
* Advanced

- (following Lobster's suggestions)

The Images do not show the solution for the menu entries in menu>multimedia. This is just an edit to show its possibilities.

More Info to come when i have posted the .pet for LazY Puppy 5.2.8-4. Then there will be one .pet for the latest standard lucid as well.

Actually it seems, this could work on all other puppies as well...


:idea: Please, make suggestions to the menu title "Start Puppy as..."

Just like:

- Run Puppy as...
- Use Puppy as...
- I am a...
- Must be a...

(Beginner, Intermediary, Advanced)

:?: I am not sure about which one to release...

Please...

RSH

Note, as almost always in my images: It will show the English menu if English keyboard layout is set.
Attachments
fb-nm.jpg
puppy-new-user-menu
(14.73 KiB) Downloaded 788 times
fb-nm-mm-adv.jpg
puppy-new-user-menu - advanced - multimedia
(100.57 KiB) Downloaded 789 times
fb-nm-mm-beg.jpg
puppy-new-user-menu - beginner - multimedia
(61.31 KiB) Downloaded 764 times
fb-nm-mm-intm.jpg
puppy-new-user-menu - intermediary - multimedia
(67.38 KiB) Downloaded 827 times
jwm-nm-mm-intm.jpg
puppy-new-user-menu - intermediary - multimedia
(75.3 KiB) Downloaded 772 times
flb-nm-mm-intm.jpg
puppy-new-user-menu - intermediary - multimedia
(69.47 KiB) Downloaded 776 times
ob-nm-mm-intm.jpg
puppy-new-user-menu - intermediary - multimedia
(67.06 KiB) Downloaded 805 times
[b][url=http://lazy-puppy.weebly.com]LazY Puppy[/url][/b]
[b][url=http://rshs-dna.weebly.com]RSH's DNA[/url][/b]
[url=http://murga-linux.com/puppy/viewtopic.php?t=91422][b]SARA B.[/b][/url]

User avatar
RSH
Posts: 2397
Joined: Mon 05 Sep 2011, 14:21
Location: Germany

#12 Post by RSH »

What I think would be most illuminating, is to call things by a common name.

Windowers have no clue about Abowird.

My suggestion is: 1. name of the function (wordprocessor, spreadsheet) followed by 2. it funny names (e.g. pudd, gdmap, retrovol alsamixer etc.)

At least thus it worked by me. Did not give it a proper look sometimes hit by incidence the proper button and hence got around a bit in Puppy.

Pity, because it is so rich and full featured and yet mainly used by tweakers instead of average users.

Landed at linux because somebody broke my XP, got so intrigued so that I got lost in Puppy.

SFS's Pet's Slickpet Quickpet ???? it is just puppytalk between tweakers. Therefore linux and/or puppy will never become as popular as it should be, according to its possibilities.
Hi Nancy, you had posted while i am editing my previous post. When you please take a look...

This is almost exactly what i have done in my LazY Puppy 528-4 - but only on the german menu entries. Unfortunately i did not have the spot on English newbies at that time. :oops:

I did for example: "MhWavedit Audioaufnahme" which means "mhwaveedit audiorecording" (as you can see in the images). Therefor i'd edited every single .desktop file and added "Name[de], Comment[de] etc. (such a monotonous work sizzles the worker's brain)

RSH

Thank you for your suggestions.
[b][url=http://lazy-puppy.weebly.com]LazY Puppy[/url][/b]
[b][url=http://rshs-dna.weebly.com]RSH's DNA[/url][/b]
[url=http://murga-linux.com/puppy/viewtopic.php?t=91422][b]SARA B.[/b][/url]

Volhout
Posts: 547
Joined: Sun 28 Dec 2008, 08:41

program name

#13 Post by Volhout »

For a beginner, I would hide the program name, only leave the functional description in the menu. If a beginner wanted to know what program he actually started he can always browse to the "about" menu. To a beginner it is absolutely not important what mediaplayer he uses, as long as it plays his media. Not important what browser he uses, as long as it works well on his internet pages.

To be honest, I would probably stay in "beginner" mode.....

Is there any benefit in following:

Beginner mode: only basic icons on the desktop (i.e. browser, mediaplayer, word processor, home (or my documents), shutdown), and a rightclick menu like browserlinux has with some 10-15 additional progs. No puppy menu at all.
Oh yeah, make sure there is a decent browser in the basic iso. Ik really LOVE the 52x series and use them every day, but this (IMHO) was a bad decission. I often use puppy CD to recover systems, and always run into this problem. Have you ever tried to download drivers (recover a WNDWS system...) from the HP site without a decent browser ?
Please look at Browserlinux501 for a good basic beginner OS.

Advanced mode: add a puppy menu

Expert mode: drop to the commandline and close X.

nancy reagan
Posts: 544
Joined: Thu 22 Jan 2009, 14:20

#14 Post by nancy reagan »

Well when I would have seen this in the menu when I first entered puppy I would not have given any notice to this entry MHWavedit Audioaufnahme.

Too long a sentence for somebody always being in a hurry.

Only after having read some posts people talking about this or that a recognised some entries.

However for somebody entering from day 1 I would suggest:

AUDIOAUFNAHME
- mhwavedit.
HD BACKUP - pudd
VIDEO EDITOR - Openshot

I think this -jumps- to the eye.

Of course no idea how much extra work this would cost, but maybe one day you might think "was will ich Heute mal machen ? .." then you could etc.

User avatar
RSH
Posts: 2397
Joined: Mon 05 Sep 2011, 14:21
Location: Germany

#15 Post by RSH »

Volhout wrote:For a beginner, I would hide the program name,
This would be only possible if you create "doubles" of the .desktop files in /usr/share/applications. Because the names shown in the menu are listed in there. There is one .desktop file for each menu entry (application). If you got 200 entries you have to create 200 .desktop files for "beginner" and then also for "intermediary" and "advanced".

New installed programs would not have those "doubles", so they must be edited by the user who has installed the program etc.pp.

I think this will not be possible to do it an easy way.
nancy reagan wrote:AUDIOAUFNAHME - mhwavedit.
HD BACKUP - pudd
VIDEO EDITOR - Openshot

I think this -jumps- to the eye.
Yes, this -jumps- to the eye. But it is not possible to do so. In the .desktop files you can not use the command [ b ] as it is used inside these posts.

This one will work and maybe even jumps a bit to the eye...

AUDIOAUFNAHME - mhwavedit
Volhout wrote:Is there any benefit in following:

Beginner mode: only basic icons on the desktop... ... ...
This is something i have already thought about. Still working on it and there will be (if possible for me to do) an option to get only basic icons automatically when entering "beginner"-mode.
[b][url=http://lazy-puppy.weebly.com]LazY Puppy[/url][/b]
[b][url=http://rshs-dna.weebly.com]RSH's DNA[/url][/b]
[url=http://murga-linux.com/puppy/viewtopic.php?t=91422][b]SARA B.[/b][/url]

bpm
Posts: 4
Joined: Wed 18 Jan 2012, 23:27
Location: Vancouver

sparse & profuse icon sets already exist

#16 Post by bpm »

The desktop icon set already is a menu, present without any action taken - and it already uses functional labels such as "browser."

Switching between profuse and sparse icon sets is already set up: menu/desktop/desktop templates. And the sets can be edited, simply by dragging icons to the trashcan.

So - there's something to be said, on simplicity grounds, for making the most of what is already there, rather than adding something new.
-----------------------------
Edit: well, actually, when tested (in 5.2.8 & 5.3.1) the feature doesn't seem to work. That is: starting from a customized state, if I select Traditional or Minimal setups, nothing happens: the icons stay as I've put them.
If this supposed function really is non-working debris, fixing it would be a good step - nothing confuses and annoys new users more than non-working debris.
Last edited by bpm on Thu 19 Jan 2012, 03:02, edited 1 time in total.

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#17 Post by Lobster »

bpm makes a good point. Some simplification is available but it is hidden away. I must admit only having used it once. I tend to prefer all the icons. Saluki has a simplified menu. We are already seeing a much simpler menu (that is end user ease - just works) with Saluki (currently at Alpha 007) Efforts spent with Saluki would be most productive.

The Alpha2 of Slacko uses a simpler 3 step menu. I am not sure if menu items can be made bold in JWM (or half bold) as Nancy Reagan suggests and Volhout would like. The dropping of geek program names has been talked of before and not adopted. I would suggest it is common sense.

So please support Saluki if possible and develop your idea :)

Puppy Linux
Simple not stupid
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

User avatar
RSH
Posts: 2397
Joined: Mon 05 Sep 2011, 14:21
Location: Germany

#18 Post by RSH »

Hi.

Information of working progress:

Solved - STEP 2 - comfortably and secure editing of user menus

First Step should figure out, if it is possible to create a user menu that shows only the wanted entries.

Improved and worked out successfully!

------

Step 2 should figure out, if it is possible to edit comfortably and save the user menu.

Improved and worked out successfully!

As you can see in the attached images, there is user mode for KIDS enabled. Related menu entry shows "on" if set on.
In example KIDS mode are only two programs enabled: Aqualung (to play music) and mtpaint (to paint pics, doesn't all kids do stuff like that?).
Changing user mode is possible at all user modes, but if not running in ADVANCED mode, a password is required.
If running as ADVANCED a password is also required, but the checkbox allows to set off password check - only ADVANCED.
Password check is a simple text file based password - i think it will be save enough to KIDS, BEGINNER and INTERMEDIARY users and easy to change by admin (you).

It is surely possible to make a "cutdown" of the menu structure instead of leaving empty menu entries, but it is not as easy to modify by the average user (admin, you).

As you can see in the codes, there are some sections in the scripts that builds the menus, that can only be changed by manual editing of the script.
This is unacceptable for the average user, that's why i have decide to let menu entries stay - but empty. It is the easiest way to configure user menus without the need of having a big bag of puppy knowledge.

These sections are also responsible to the impossibility to get the complete menu in other languages than English. The whole SHUTDOWN section can only set to other languages by using GETTEXT - which doesn't work in my puppy. and so in lucid and surely many other puppies as well.

Menu section of FBPANEL (/usr/sbin/pfbpanel)

Code: Select all

if [ "`echo $PFBPANEL | grep EXIT_OK`" != "" ]; then
 if [ "$1" != refresh ]; then
  echo \# Config file created and used by PFBPANEL, please do not edit by hand > $CONFIG
  echo "$PFBPANEL" | sed 's/\"//g' | grep -v EXIT | grep -v none | grep -v desktop | grep -v LAUNCHICON >> $CONFIG
  echo "$PFBPANEL" | sed 's/\"//g' | grep desktop | while read FILE
  do
   PARTONE=`echo "$FILE" | cut -f 1 -d '='`
   PARTTEMP="`echo \"$FILE\" | cut -f 2 -d '='`"
   PARTTWO="`basename \"$PARTTEMP\"`"
   echo "$PARTONE"="$PARTTWO" >> $CONFIG
  done
  echo "$PFBPANEL" | sed 's/\"//g' | grep LAUNCHICON | grep -v '=none' >> $CONFIG
 fi

 echo \# fbpanel configured by PFBPANEL > $DEFAULT
 echo Global \{ >> $DEFAULT
 echo edge = `cat $CONFIG | grep EDGE | grep true | cut -f 1 -d '=' | sed 's/EDGE//' | tr '[A-Z]' '[a-z]'` >> $DEFAULT
 echo allign = `cat $CONFIG | grep ALLIGN | grep true | cut -f 1 -d '=' | sed 's/ALLIGN//' | tr '[A-Z]' '[a-z]'` >> $DEFAULT
 MARGIN=`cat $CONFIG | grep MARGIN | cut -f 2 -d '=' | grep -o [0-9] | tr '\n' '=' | sed 's/=//g'`
 if [ "$MARGIN" = "" ]; then
  MARGIN=0
 fi
 echo margin = $MARGIN >> $DEFAULT
 echo widthtype = percent >> $DEFAULT
 PANELWIDTH=`cat $CONFIG | grep PANELWIDTH | cut -f 2 -d '=' | grep -o [0-9] | tr '\n' '=' | sed 's/=//g'`
 if [ "$PANELWIDTH" = "" ]; then
  PANELWIDTH=100
 fi
 echo width = "$PANELWIDTH" >> $DEFAULT
 echo heighttype = pixel >> $DEFAULT
 HEIGHT=`cat $CONFIG | grep HEIGHT | cut -f 2 -d '=' | grep -o [0-9] | tr '\n' '=' | sed 's/=//g'`
 if [ "$HEIGHT" = "" ]; then
  HEIGHT=26
 fi
 echo height = $HEIGHT >> $DEFAULT
 echo setdocktype = `cat $CONFIG | grep DOCKYES | cut -f 2 -d '='` >> $DEFAULT
 echo setpartialstrut = `cat $CONFIG | grep RESERVEYES | cut -f 2 -d '='` >> $DEFAULT
 echo autohide = `cat $CONFIG | grep AUTOHIDEYES | cut -f 2 -d '='` >> $DEFAULT
 echo transparent = `cat $CONFIG | grep TRANSPARENTYES | cut -f 2 -d '='` >> $DEFAULT
 echo    tintcolor = \#000000 >> $DEFAULT
 echo    alpha = 10 >> $DEFAULT
 
 echo     roundcorners = `cat $CONFIG | grep ROUNDCORNERSYES | cut -f 2 -d '='` >> $DEFAULT 
 
 echo                \} >> $DEFAULT
 
 echo Plugin \{ >> $DEFAULT
 echo    type = space >> $DEFAULT
 echo    config \{ >> $DEFAULT
 echo           size = 2 >> $DEFAULT
 echo              \} >> $DEFAULT
 echo              \} >> $DEFAULT
 if [ "`cat $CONFIG | grep MENUYES | cut -f 2 -d '='`" = true ]; then
  echo Plugin \{ >> $DEFAULT
  echo    type = menu >> $DEFAULT
  echo    config \{ >> $DEFAULT
  echo        image = /usr/share/fbpanel/images/start-button.png >> $DEFAULT
  fbpanel-xdgmenu /etc/xdg/menus/puppy-desktop.menu >> /tmp/fbpanel-menu
  fbpanel-xdgmenu /etc/xdg/menus/puppy-system.menu >> /tmp/fbpanel-menu
  fbpanel-xdgmenu /etc/xdg/menus/puppy-setup.menu >> /tmp/fbpanel-menu
  echo separator \{ >> /tmp/fbpanel-menu
  echo            \} >> /tmp/fbpanel-menu
  fbpanel-xdgmenu /etc/xdg/menus/puppy-mypuppy.menu >> /tmp/fbpanel-menu
  echo separator \{ >> /tmp/fbpanel-menu
  echo            \} >> /tmp/fbpanel-menu
  fbpanel-xdgmenu /etc/xdg/menus/puppy-guides.menu >> /tmp/fbpanel-menu
  fbpanel-xdgmenu /etc/xdg/menus/puppy-favorites.menu >> /tmp/fbpanel-menu
  echo separator \{ >> /tmp/fbpanel-menu
  echo            \} >> /tmp/fbpanel-menu
  fbpanel-xdgmenu /etc/xdg/menus/puppy-sfs.menu >> /tmp/fbpanel-menu
  echo separator \{ >> /tmp/fbpanel-menu
  echo            \} >> /tmp/fbpanel-menu
  fbpanel-xdgmenu /etc/xdg/menus/puppy-utility.menu >> /tmp/fbpanel-menu
  fbpanel-xdgmenu /etc/xdg/menus/puppy-filesystem.menu >> /tmp/fbpanel-menu
  fbpanel-xdgmenu /etc/xdg/menus/puppy-graphic.menu >> /tmp/fbpanel-menu
  fbpanel-xdgmenu /etc/xdg/menus/puppy-document.menu >> /tmp/fbpanel-menu
  fbpanel-xdgmenu /etc/xdg/menus/puppy-calculate.menu >> /tmp/fbpanel-menu
  fbpanel-xdgmenu /etc/xdg/menus/puppy-personal.menu >> /tmp/fbpanel-menu
  fbpanel-xdgmenu /etc/xdg/menus/puppy-network.menu >> /tmp/fbpanel-menu
  fbpanel-xdgmenu /etc/xdg/menus/puppy-internet.menu >> /tmp/fbpanel-menu
  fbpanel-xdgmenu /etc/xdg/menus/puppy-multimedia.menu >> /tmp/fbpanel-menu
  fbpanel-xdgmenu /etc/xdg/menus/puppy-fun.menu >> /tmp/fbpanel-menu
  echo separator \{ >> /tmp/fbpanel-menu
  echo            \} >> /tmp/fbpanel-menu
  fbpanel-xdgmenu /etc/xdg/menus/puppy-run-as.menu >> /tmp/fbpanel-menu
  
  #rarsa wrote fbpanel-xdgmenu i think. needs a bit of a hack to find
  #all icons. fbpanel-menu has /tmp/icons prepended to all icon entries...
  aPATTERN='s%/tmp/icons/%/var/local/icons/%'
  bPATTERN='s%/tmp/icons//%/%' #icon had a full path, get rid of prepend.
  sed -e "$bPATTERN" -e "$aPATTERN" /tmp/fbpanel-menu >> $DEFAULT
  rm -f /tmp/fbpanel-menu

  echo separator \{ >> $DEFAULT
  echo            \} >> $DEFAULT

#  echo menu  \{ >> $DEFAULT
#  echo name = Refresh menus >> $DEFAULT
#  echo image = /tmp/icons/mini-tick.xpm >> $DEFAULT
#  echo item \{ >> $DEFAULT
#  echo name = fixmenus >> $DEFAULT
#  echo action = fixmenus >> $DEFAULT
#  echo image = /tmp/icons/mini-tick.xpm >> $DEFAULT
#  echo            \} >> $DEFAULT
#  echo            \} >> $DEFAULT

  echo "menu  {
   name = Help
   image = ${X11PIXMAPS}/help24.png
   item {
    name = Lazy Puppy Help
    action = /usr/sbin/ceelab/lazy528-help-html-start
    image = ${X11PIXMAPS}/help24.png
   }
   item {
    name = Lucid Puppy Help
    action = defaulthtmlviewer file:///usr/share/doc/index.html
    image = ${X11PIXMAPS}/help24.png
   }
   item {
    name = Puppy Help 101
    action = notecase /usr/share/doc/PH101-001.ncd
    image = ${X11PIXMAPS}/help24.png
   }
  }" >> $DEFAULT
  
  echo "menu  {
   name = Shutdown
   image = ${X11PIXMAPS}/shutdown24.png
   item {
    name = Shutdown Computer
    action = wmpoweroff
    image = ${X11MINIICONS}/mini-stop.xpm
   }
  }" >> $DEFAULT
Menu section of OPENBOX (/usr/bin/obmenu-refresh)

Code: Select all

DIR=`pwd`

echo Generating $HOME/.config/openbox/menu.xml...

cd $HOME/.config/openbox
mv -f menu.xml menu.xml.bak
cat menu_top.xml > menu.xml
ob-xdgmenu /etc/xdg/menus/puppy-desktop.menu >> menu.xml
ob-xdgmenu /etc/xdg/menus/puppy-system.menu >> menu.xml
ob-xdgmenu /etc/xdg/menus/puppy-setup.menu >> menu.xml
echo "<separator/>" >> menu.xml
ob-xdgmenu /etc/xdg/menus/puppy-mypuppy.menu >> menu.xml
echo "<separator/>" >> menu.xml
ob-xdgmenu /etc/xdg/menus/puppy-guides.menu >> menu.xml
ob-xdgmenu /etc/xdg/menus/puppy-favorites.menu >> menu.xml
echo "<separator/>" >> menu.xml
ob-xdgmenu /etc/xdg/menus/puppy-sfs.menu >> menu.xml
echo "<separator/>" >> menu.xml
ob-xdgmenu /etc/xdg/menus/puppy-utility.menu >> menu.xml
ob-xdgmenu /etc/xdg/menus/puppy-filesystem.menu >> menu.xml
ob-xdgmenu /etc/xdg/menus/puppy-graphic.menu >> menu.xml
ob-xdgmenu /etc/xdg/menus/puppy-document.menu >> menu.xml
ob-xdgmenu /etc/xdg/menus/puppy-calculate.menu >> menu.xml
ob-xdgmenu /etc/xdg/menus/puppy-personal.menu >> menu.xml
ob-xdgmenu /etc/xdg/menus/puppy-network.menu >> menu.xml
ob-xdgmenu /etc/xdg/menus/puppy-internet.menu >> menu.xml
ob-xdgmenu /etc/xdg/menus/puppy-multimedia.menu >> menu.xml
ob-xdgmenu /etc/xdg/menus/puppy-fun.menu >> menu.xml
echo "<separator/>" >> menu.xml
ob-xdgmenu /etc/xdg/menus/puppy-run-as.menu >> menu.xml
echo "<separator/>" >> menu.xml
cat menu_bottom.xml >> menu.xml

if [ "`pidof openbox`" != "" ];then
openbox --reconfigure
fi

cd "$DIR"

Menu section of JWM (/etc/xdg/templates/)

Code: Select all

<JWM>

 <!-- IMPORTANT, ONLY EDIT /etc/xdg/templates/_root_.jwmrc -->
 <!-- jwm menu for puppy Linux -->
 <RootMenu label="Menu" labeled="false" height="24" onroot="3">
 
  PUPPYMENU jwm-xdgmenu /etc/xdg/menus/puppy-desktop.menu
  PUPPYMENU jwm-xdgmenu /etc/xdg/menus/puppy-system.menu
  PUPPYMENU jwm-xdgmenu /etc/xdg/menus/puppy-setup.menu

  <Separator/>

  PUPPYMENU jwm-xdgmenu /etc/xdg/menus/puppy-mypuppy.menu

  <Separator/>

  PUPPYMENU jwm-xdgmenu /etc/xdg/menus/puppy-guides.menu
  PUPPYMENU jwm-xdgmenu /etc/xdg/menus/puppy-favorites.menu

  <Separator/>

  PUPPYMENU jwm-xdgmenu /etc/xdg/menus/puppy-sfs.menu

  <Separator/>

  PUPPYMENU jwm-xdgmenu /etc/xdg/menus/puppy-utility.menu
  PUPPYMENU jwm-xdgmenu /etc/xdg/menus/puppy-filesystem.menu
  PUPPYMENU jwm-xdgmenu /etc/xdg/menus/puppy-graphic.menu
  PUPPYMENU jwm-xdgmenu /etc/xdg/menus/puppy-document.menu
  PUPPYMENU jwm-xdgmenu /etc/xdg/menus/puppy-calculate.menu
  PUPPYMENU jwm-xdgmenu /etc/xdg/menus/puppy-personal.menu
  PUPPYMENU jwm-xdgmenu /etc/xdg/menus/puppy-network.menu
  PUPPYMENU jwm-xdgmenu /etc/xdg/menus/puppy-internet.menu
  PUPPYMENU jwm-xdgmenu /etc/xdg/menus/puppy-multimedia.menu
  PUPPYMENU jwm-xdgmenu /etc/xdg/menus/puppy-fun.menu

  <Separator/>

  PUPPYMENU jwm-xdgmenu /etc/xdg/menus/puppy-run-as.menu
  
  <Separator/>
  
  <Menu label="Help" icon="help24.png">
    <Program label="LazY Puppy Hilfe" icon="help24.png">exec /usr/sbin/ceelab/lazy528-help-html-start</Program>
    <Separator/>
    <Program label="Lucid Puppy Help" icon="help24.png">exec defaulthtmlviewer file:///usr/share/doc/index.html</Program>
    <Program label="Puppy Help 101" icon="help24.png">exec notecase /usr/share/doc/PH101-001.ncd</Program>
  </Menu>
 
<Menu label="Shutdown" icon="shutdown24.png" height="16">
   <Program label="Shutdown Computer" icon="mini-stop.xpm">exec wmpoweroff</Program>
</Menu>

All codes are showing menu editions of LazY Puppy 5.2.8-4. It is always the SHUTDOWN and HELP section, that needs to be translated by GETTEXT - or, the other possibility - remove these sections and replace it with likely one of the lines using xxx.menu files.

Therefor some .directory and .desktop files must be created. I think, this is the way i would use, because it would be fine to get the complete menu in foreign languages!!!

The rest of the story is surely told by having a look at the attached images.

Check this out, post your suggestions - but do not make me confused - please.

Edit: Sorry, i meant CONFUSED not DISTURBED :oops:

RSH
Attachments
new-menu-with-user-mode.jpg
(55.65 KiB) Downloaded 949 times
edit-kids-list.jpg
(19.96 KiB) Downloaded 921 times
pwd-check-still-german.jpg
(5.08 KiB) Downloaded 914 times
pwd-wrong-no-advanced-user.jpg
(30.78 KiB) Downloaded 928 times
RPA-kids-mode-on.jpg
(51.2 KiB) Downloaded 907 times
mm.jpg
(39.99 KiB) Downloaded 919 times
grfx.jpg
(46.92 KiB) Downloaded 924 times
doc-empty.jpg
(30.82 KiB) Downloaded 920 times
util-empty.jpg
(30.39 KiB) Downloaded 933 times
[b][url=http://lazy-puppy.weebly.com]LazY Puppy[/url][/b]
[b][url=http://rshs-dna.weebly.com]RSH's DNA[/url][/b]
[url=http://murga-linux.com/puppy/viewtopic.php?t=91422][b]SARA B.[/b][/url]

User avatar
RSH
Posts: 2397
Joined: Mon 05 Sep 2011, 14:21
Location: Germany

Standard/Advanced Menus

#19 Post by RSH »

bpm wrote:So - there's something to be said, on simplicity grounds, for making the most of what is already there, rather than adding something new.
The intention of this all here is: making the most of what is already there.

And maybe just a little bit easier and/or more effective.

The everage user is surely not able to make a "cutdown" of the menu entries without a big risk of loosing some of these files.

I have found a way to switch the menu, the desktop and the wbar configuration between four (4) modes, just by ONE SINGLE MOUSE CLICK (after these configurations are set).

It is stable and it has the feature to get all menu entries in foreign languages - even the "help" and "shutdown" section of the menu. It works for fbpanel, openbox, fluxbox and jwm.

And best of all: it has actually a uncompressed size of 161 Kb, .pet size 119 Kb. This is surely not much for an option to "free" the desktop, "remove" wbar and let only one single program in the menu - just by one click.

Actually i am working on this feature to use it to "remove" even the drives from dektop.
[b][url=http://lazy-puppy.weebly.com]LazY Puppy[/url][/b]
[b][url=http://rshs-dna.weebly.com]RSH's DNA[/url][/b]
[url=http://murga-linux.com/puppy/viewtopic.php?t=91422][b]SARA B.[/b][/url]

User avatar
sc0ttman
Posts: 2812
Joined: Wed 16 Sep 2009, 05:44
Location: UK

#20 Post by sc0ttman »

There is a much easier way to achieve much the same thing:

1. Create the dirs:

~/.menu-profiles/beginner/
~/.menu-profiles/intermediate/
~/.menu-profiles/advanced/

2. Move all .desktop files you don't want in a 'minimal' menu to ~/.menu-profiles/*
Choose the appropriate folder for each .desktop file that you move

3. Create a script called 'menu_profiles', in /usr/bin/, containing something like:

Code: Select all

#!/bin/sh
if [ ! "$1" ];then
  echo "Usage: $(basename $0) -profile
Where profile is '-beginner', '-advanced' or '-intermediate'"
  exit 1
fi

if [ "$1" = "-beginner" ];then
  cp ~/.menu-profiles/beginner/ /usr/share/applications/
  for x in ~/.menu-profiles/intermediate/
  do
  rm /usr/share/applications/$(basename $x)
  done
  for x in ~/.menu-profiles/advanced/
  do
  rm /usr/share/applications/$(basename $x)
  done
elif [ "$1" = "-intermediate" ];then
  cp ~/.menu-profiles/beginner/ /usr/share/applications/
  cp ~/.menu-profiles/intermediate/ /usr/share/applications/
  for x in ~/.menu-profiles/advanced/
  do
  rm /usr/share/applications/$(basename $x)
  done
elif [ "$1" = "-advanced" ];then
  cp ~/.menu-profiles/beginner/ /usr/share/applications/
  cp ~/.menu-profiles/intermediate/ /usr/share/applications/
  cp ~/.menu-profiles/advanced/ /usr/share/applications/
fi

fixmenus
exit 0
4. Create some menu entries to achieve this:

/usr/share/applications/menu_profiles_beginner.desktop

With something like:

Code: Select all

[Desktop Entry]
Categories=X-SetupWizard
Comment=Menu profiles
Encoding=UTF-8
Exec=/usr/bin/menu_profiles -beginner
GenericName=Menu profiles
Icon=/usr/local/lib/X11/mini-icons/wizard16.xpm
Name=Menu profiles
Terminal=false
Type=Application
and so on...

Of course, you could expand the menu_profile script to run Xdialog etc let users choose a profile...
In fact, this looks easy enough that I might apply what I just wrote to my own install and test it!
[b][url=https://bit.ly/2KjtxoD]Pkg[/url], [url=https://bit.ly/2U6dzxV]mdsh[/url], [url=https://bit.ly/2G49OE8]Woofy[/url], [url=http://goo.gl/bzBU1]Akita[/url], [url=http://goo.gl/SO5ug]VLC-GTK[/url], [url=https://tiny.cc/c2hnfz]Search[/url][/b]

Post Reply