You are not logged in.

#1 2016-02-17 22:37:45

jjr
Member
From: hautes alpes france
Registered: 2016-01-27
Posts: 37

openbox menu (solved)

Hello,
I am changing some items to adapt the menu at different users (3 machines ; language french ; various HW like scanner HP and Canon ; various SW like "koverartist" for example).

first point  : Sw simple-scan for scanner HP . I have modified files : .config/openbox/pipemenus.rc to add simple-scan and .config/openbox/menu.xml to modifie label

# Graphics pipemenu (bl-graphics-pipemenu)
GRAPHICS_APPS=('simple-scan' 'viewnior' 'gimp' 'shotwell' 'darktable' 'gthumb' 'mirage' 'F-Spot' 'inkscape' 'blender' 'mandelbulber' )
</menu>
		<menu execute="bl-graphics-pipemenu" id="bl-graphics-pipemenu" label="Graphisme et Photos"/>

Installation :OK. But I would like to have different designation in the menu in order to help the user:

"Scanner Hewlett Packard" in place of "Simple Scan" (item label)

jjr@bunsen:~$ bl-graphics-pipemenu
    <openbox_pipe_menu>
        <item label="Simple Scan">
            <action name="Execute">
                <command>
                    simple-scan
                </command>
            </action>
        </item>

It's possible?

Second point : paquets "iscan" or "scangearmp" (no available with sources.list but I have it). After installation I would like have in "Graphismes et Photos" the following label :"Scanner Canon MG3150"

Third point : paquet Koverartist in Multimedia

In fact , it's the same pb I suppose

Thanks for your help

Last edited by jjr (2016-02-19 22:53:45)


Toshiba Tecra R950 openbox BL dualboot W7

Offline

#2 2016-02-17 22:49:13

hhh
Gaucho
From: High in the Custerdome
Registered: 2015-09-17
Posts: 16,140
Website

Re: openbox menu (solved)

Replace "Simple Scan" or any label with whatever text you want, then run "reconfigure" from the Openbox menu (Preferences>Openbox>Reconfigure).


I don't care what you do at home. Would you care to explain?

Offline

#3 2016-02-17 22:57:33

damo
....moderator....
Registered: 2015-08-20
Posts: 6,734

Re: openbox menu (solved)

If you add `simple-scan` to pipemenus.rc, it will automatically appear in the "Install" submenu in the Graphics menu item. Once it is installed, it will appear in the Graphics menu, so there is no need to edit the menu O:)

qx6hEQXD.jpg

However, if an application requires command arguments, or you want a different label for that application, you will need to edit the pipemenu. It may be easier for you to just add it directly to menu.xml in that case.

If you have 3 different users, then have a different pipemenus.rc for each $USER.

EDIT: In your case, edit `bl-graphics-pipemenu`, just after "menuStart", so that it reads

    for curApp in "${GRAPHICS_APPS[@]}"; do
        if [[ ${AppStatus[$curApp]} = installed ]]; then
            if [[ "$curApp" = "simple-scan" ]];then        # modified 
                menuItem "Scanner Canon MG3150" "simple-scan"
            else
                menuItem "${AppName[$curApp]}" "$curApp"
            fi
        fi
    done

I recommend you copy the pipemenu file to ~/bin before editing. That location will be the script that runs, and it doesn't matter if you mess it up smile

Scrot, or it didn't happen wink
XYYT2eGo.jpg

Unless you edit menu.xml directly, there is no need to Reconfigure after editing pipemenus.rc or a pipemenu smile

Last edited by damo (2016-02-17 23:11:14)


Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

#4 2016-02-18 06:16:18

ohnonot
...again
Registered: 2015-09-29
Posts: 5,592

Re: openbox menu (solved)

i adore the way bunsenlabs approaches these things, but maybe jjr would be happier with an updating standard application menu?
i have been using obmenu-generator for years and i'm extremely happy with it.

Offline

#5 2016-02-18 17:28:16

nobody0
Disabled account
Registered: 2015-09-29
Posts: 664

Re: openbox menu (solved)

^ When you use Obmenu-generator, all installed apps would automatically appear in categories, so the need for manual tinkering of the menu falls off. The only problem being some apps showing in more than one category.

Offline

#6 2016-02-18 17:42:16

damo
....moderator....
Registered: 2015-08-20
Posts: 6,734

Re: openbox menu (solved)

ohnonot wrote:

i adore the way bunsenlabs approaches these things, but maybe jjr would be happier with an updating standard application menu?
i have been using obmenu-generator for years and i'm extremely happy with it.

In this case there will be 3 different $USERS with different requirements for how the menu items appear, so there would still have to be manual configuration of files ( .desktop files I assume, for a menu generator)


Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

#7 2016-02-18 19:39:22

ohnonot
...again
Registered: 2015-09-29
Posts: 5,592

Re: openbox menu (solved)

damo, 3 users can have 3 different obmenu-generator configs?
and obmenu-generator allows for both - automatically updated menu, and manual configuration.

anyhow, i just had the feeling op is more interested in adding freshly installed apps to the menu, than to create a unique experience for each user.

but i might be wrong; just wanted to throw in my 2 bytes.

Offline

#8 2016-02-18 19:44:40

damo
....moderator....
Registered: 2015-08-20
Posts: 6,734

Re: openbox menu (solved)

ohnonot wrote:

damo, 3 users can have 3 different obmenu-generator configs?
and obmenu-generator allows for both - automatically updated menu, and manual configuration.

Sure, but I was pointing out that whichever way you go there would have to be manual configuration. I understood the OP wants individualised menu entries for simple-scan, depending on the hardware each user has.


Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

#9 2016-02-18 19:54:57

nobody0
Disabled account
Registered: 2015-09-29
Posts: 664

Re: openbox menu (solved)

^ When you install simple scan, it'd simply appear in the menu (obmenu-generator), you connect whatever scanner, either simple scan would see it or not, depending on the scanner (drivers).

Last edited by nobody0 (2016-02-18 19:55:22)

Offline

#10 2016-02-18 21:06:22

jjr
Member
From: hautes alpes france
Registered: 2016-01-27
Posts: 37

Re: openbox menu (solved)

Thank you for answers
I have edited `bl-graphics-pipemenu' in /usr/bin following indications posted by damo.
And I am happy !!! It's OK to have the right label. First point is solved.
I will try to continue to adapt openbox menu in my family.
Many thanks.
I don't noted solved for the moment if you agree


Toshiba Tecra R950 openbox BL dualboot W7

Offline

#11 2016-02-18 21:38:01

damo
....moderator....
Registered: 2015-08-20
Posts: 6,734

Re: openbox menu (solved)

jjr wrote:

...
I have edited `bl-graphics-pipemenu' in /usr/bin following indications posted by damo.
And I am happy !!! It's OK to have the right label. First point is solved.
...

For different users it would be better to copy `/usr/bin/bl-graphics-pipemenu` to `$HOME/bin`, then you can edit that file for each user's needs.


Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

#12 2016-02-19 06:21:19

ohnonot
...again
Registered: 2015-09-29
Posts: 5,592

Re: openbox menu (solved)

jjr wrote:

I don't noted solved for the moment if you agree

justedit the title of  your first post and add [Solved] manually.

Offline

#13 2016-02-19 12:30:54

jjr
Member
From: hautes alpes france
Registered: 2016-01-27
Posts: 37

Re: openbox menu (solved)

Ok I understand :
for Ohnonot:
I will add solved in few days because I would like test differents applications:
- adapt the menu for 2 scanners (HP with simple-scan and Canon with scangearmp) user 1
- change the label item for all SW (all users) :
for exemple :
--> gimp : Editeur d'images
--> darktable : Retouche Photos
--> Inkscape : Editeur de titres et de texte
--> etc
for damo :
Ok ; I Edit only the file in home/bin for each user

Many thanks


Toshiba Tecra R950 openbox BL dualboot W7

Offline

#14 2016-02-19 22:11:18

jjr
Member
From: hautes alpes france
Registered: 2016-01-27
Posts: 37

Re: openbox menu (solved)

The result :

In "bl-graphics-pipemenu"

else # pipemenu
    menuStart

    for curApp in "${GRAPHICS_APPS[@]}"; do
        if [[ ${AppStatus[$curApp]} = installed ]]; then
        if [[ "$curApp" = "simple-scan" ]];then        # modified 
            menuItem "Scanner Hewlett Packard" "simple-scan"
            menuItem "Scanner Canon MG3150" "scangearmp" 
            menuItem "Editeur Images Gimp" "gimp"
            menuItem "Gestionnaire de photos Gthumb" "gthumb"
            menuItem "Gestionnaire de photos Shotwell" "shotwell"
            menuItem "Retouches photos Darktable" "darktale"
            menuItem "Visionneur d'images Viewnior" "viewnior"
            menuItem "Visionneur d'images Mirage" "mirage"
            menuItem "Editeur de Titres Inkscape" "inkscape"
         else
            menuItem "${AppName[$curApp]}" "$curApp"   
        fi
        fi  
done

In "pipemus.rc"

# Graphics pipemenu (bl-graphics-pipemenu)
GRAPHICS_APPS=('simple-scan' 'blender' 'mandelbulber' )
GRAPHICS_SCROTS=('xfce4-screenshooter' 'scrot' )

aAF0s3eQ.jpg
Perhaps it's not correct , but it's work

Your opinion?

-------------------
Mod Edit: use thumbnail code

Last edited by damo (2016-02-19 22:19:25)


Toshiba Tecra R950 openbox BL dualboot W7

Offline

#15 2016-02-19 22:17:41

damo
....moderator....
Registered: 2015-08-20
Posts: 6,734

Re: openbox menu (solved)

Well, it works for you smile

Please use the thumbnail BB-Code for the image from the panel on the right of the imgbox gallery edit page wink


Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

Board footer

Powered by FluxBB