Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

obmenu replacement ? Solved

Off-Topic discussions about science, technology, and non Debian specific topics.
Message
Author
Bulkley
Posts: 6383
Joined: 2006-02-11 18:35
Has thanked: 2 times
Been thanked: 39 times

obmenu replacement ? Solved

#1 Post by Bulkley »

Do any of you Openbox users have a replacement for obmenu? It has been removed from upstream Debian. Yes, I can edit my menu with CLI but obmenu is so handy. :) I've played with Menulibre but it's too complicated (CLI is quicker) and doesn't produce a menu that looks like the one I have.
Last edited by Bulkley on 2021-10-11 00:34, edited 1 time in total.

MALsPa
Posts: 678
Joined: 2007-12-07 19:20
Location: albuquerque
Been thanked: 2 times

Re: obmenu replacement ?

#2 Post by MALsPa »

I really like obmenu. I don't have a replacement. Could be a bad idea to do this, but a few months back I enabled the Buster repos, installed obmenu in Bullseye, and then disabled the Buster repos. So far so good. I'm hoping somebody will put obmenu in Backports.

User avatar
4D696B65
Site admin
Site admin
Posts: 2696
Joined: 2009-06-28 06:09
Been thanked: 85 times

Re: obmenu replacement ?

#3 Post by 4D696B65 »

Bug #885508: obmenu: Depends on unmaintained python-glade2
https://tracker.debian.org/news/1073901 ... m-testing/

User avatar
wizard10000
Global Moderator
Global Moderator
Posts: 557
Joined: 2019-04-16 23:15
Location: southeastern us
Has thanked: 75 times
Been thanked: 85 times

Re: obmenu replacement ?

#4 Post by wizard10000 »

OT but I quit using openbox menus. When I learned BunsenLabs switched over to jgmenu I had to give it a try and have been hooked ever since.

Clickable screenshot of jgmenu here -

Image

jgmenu works with .desktop files - what I did was copy all of /usr/share/applications to ~/.local/share/applications and then spent some time getting each icon set and the text for each .desktop file exactly the way I wanted it, with all lowercase names.

jgmenu also has prepend and append files so you can add applications to the top and bottom of the menu - you can see my top 9 applications at the top of the menu and three shutdown options at the bottom - restart openbox, reboot and poweroff.

When setting up .desktop files I used a red icon with an X for any application that I didn't want displayed in the menu (these .desktop files have NoDisplay=false set). Clickable screenshot of .desktop files here -

Image

Oh - how to make it go: You run jgmenu & in openbox autostart and bind jgmenu_run to mouse button and/or hotkeys in rc.xml like this.

Mousebind:

Code: Select all

      <mousebind button="Right" action="Press">
        <action name="Execute">
          <command>jgmenu_run</command>
        </action>
      </mousebind>  


Keybind:

Code: Select all

     <keybind key="C-Escape">
      <action name="Execute">
        <command>jgmenu_run</command>
      </action>
     </keybind>
Takes a little work to get it set up but am extremely happy with the result :)
we see things not as they are, but as we are.
-- anais nin

Bulkley
Posts: 6383
Joined: 2006-02-11 18:35
Has thanked: 2 times
Been thanked: 39 times

Re: obmenu replacement ?

#5 Post by Bulkley »

re: jgmenu. Fascinating. I never noticed it although I have played around with Bunsen Labs. So, jgmenu from Sid?

User avatar
wizard10000
Global Moderator
Global Moderator
Posts: 557
Joined: 2019-04-16 23:15
Location: southeastern us
Has thanked: 75 times
Been thanked: 85 times

Re: obmenu replacement ?

#6 Post by wizard10000 »

Bulkley wrote: 2021-08-09 16:07...So, jgmenu from Sid?
I'm running Sid, looks like slow documentation as Sid and Bullseye should be just about identical - I'd be very surprised if it wasn't in Bullseye.

I started out with the BunsenLabs .deb package and it worked just fine, didn't dawn on me for a couple weeks that Sid might have it :mrgreen:

If you install jgmenu you may end up spending days or weeks in ~/.local/share/applications setting the icons you want and making sure menu entries show up the way you want. What I did was put all of the Papirus icon theme in ~/.local/share/icons/hicolor so I've got thousands of icons to choose from.

I copied everything in /usr/share/applications to ~/.local/share/applications and edited the .desktop files there. I've been cleaning them up and have a minimum config for .desktop files that works just great for me. Here's one, they pretty much all look like this now.

Code: Select all

[Desktop Entry]
Type=Application
Name=conky
Exec=conky --daemonize --pause=1
Icon=cpu
StartupNotify=false
Terminal=false

Categories=System;Monitor;
Keywords=conky,system monitor;monitor;

NoDisplay=false
I set NoDisplay=false by default and if I don't want the icon on menus I flip NoDisplay to true and change the icon to one with a circled X so I know from a file manager view which .desktop files are disabled.

I use the Name= field to determine what displays on the menu. Other window managers may use Comment= or Description= but I don't need those so I took them out.

edit: the developer hangs out (or used to) in jgmenu threads over on BunsenLabs forums. I've got a fair bit of experience with jgmenu and can help with fairly simple stuff, if you need help start a thread and we'll play with it here in offtopic or something :)

cheers -
we see things not as they are, but as we are.
-- anais nin

Bulkley
Posts: 6383
Joined: 2006-02-11 18:35
Has thanked: 2 times
Been thanked: 39 times

Re: obmenu replacement ?

#7 Post by Bulkley »

My menu started out as a combination Openbox with an Lxde pipemenu, now called.
wizard10000 wrote: 2021-08-09 16:38I'd be very surprised if it wasn't in Bullseye.
It isn't.

I just put Lithium up in a VM. The menu looks good. It never occurred to me that it wasn't an Openbox or Lxde menu. I need to take a deeper look.

Thanks.

User avatar
wizard10000
Global Moderator
Global Moderator
Posts: 557
Joined: 2019-04-16 23:15
Location: southeastern us
Has thanked: 75 times
Been thanked: 85 times

Re: obmenu replacement ?

#8 Post by wizard10000 »

Bulkley wrote: 2021-08-09 17:56...It isn't.
That sucks. As mentioned the BunsenLabs .deb works just fine and you can map that repo and do a little apt-pinning if you want :)
we see things not as they are, but as we are.
-- anais nin

User avatar
oswaldkelso
df -h | grep > 20TiB
df -h | grep > 20TiB
Posts: 1490
Joined: 2005-07-26 23:20
Location: UK
Has thanked: 1 time
Been thanked: 58 times

Re: obmenu replacement ?

#9 Post by oswaldkelso »

very light but interesting menus

https://github.com/phillbush/pmenu
https://github.com/phillbush/xmenu

pic:
https://derryth.com/s/qH2jFmL8rCSaEGj



runner
http://www.boomerangsworld.de/cms/tools/runner.html

Great for when you can't recall the name of an application as well as when you want your launch history


fittstool
Have it with or without a menu I just used xmessage. At one time I had it speaking the commands... "xterm" "gimp" etc. Fantastic piece of kit my go to launcher because like xbindtools once you've set it up and learnt it it stays the same no matter what environment you're using.

https://yewtu.be/watch?v=-oYH9gsNqFc

I find I don't use a menu much nowadays but just use the file manager bookmarks and a run dialog for lesser used applications
Free Software Matters
Ash init durbatulûk, ash init gimbatul,
Ash init thrakatulûk agh burzum-ishi krimpatul.
My oldest used PC: 1999 imac 333Mhz 256MB PPC abandoned by Debian

Bulkley
Posts: 6383
Joined: 2006-02-11 18:35
Has thanked: 2 times
Been thanked: 39 times

Re: obmenu replacement ?

#10 Post by Bulkley »

wizard10000 wrote: 2021-08-09 19:04 As mentioned the BunsenLabs .deb works just fine . . .
For the record, I upgraded BL-Lithium and the menu works as it should.

@ oswaldkelso, thanks for the links.

User avatar
Scorpion
Posts: 389
Joined: 2018-10-17 11:38
Has thanked: 5 times

Re: obmenu replacement ?

#11 Post by Scorpion »

I' ve found https://github.com/shaggyz/obmenu-qt and https://github.com/0x10/obmenu2.

Does jgmenu need configuration before use it?
Can menu, menulibre, and menu-xdg help Openbox menu?

Bulkley
Posts: 6383
Joined: 2006-02-11 18:35
Has thanked: 2 times
Been thanked: 39 times

Re: obmenu replacement ?

#12 Post by Bulkley »

Thanks, Scorpion. I'll play with those; see what happens. The Obmenu2 looks like what I want.
Does jgmenu need configuration before use it?
I'm not familiar with it.
Can menu, menulibre, and menu-xdg help Openbox menu?
They do.

User avatar
Scorpion
Posts: 389
Joined: 2018-10-17 11:38
Has thanked: 5 times

Re: obmenu replacement ?

#13 Post by Scorpion »

I tried obmenu2, I made a .desktop so it shows up in the app menu and I copied the script in /usr/bin.

Does obmenu-qt allow you to set icon without using the full path?

Bulkley
Posts: 6383
Joined: 2006-02-11 18:35
Has thanked: 2 times
Been thanked: 39 times

Re: obmenu replacement ?

#14 Post by Bulkley »

I tried both obmenu2 and obmenu-qt and couldn't get either to work. I find git-hub postings like highway signs; those who put them up already know where they are and do a terrible job of directing tourists.

User avatar
Scorpion
Posts: 389
Joined: 2018-10-17 11:38
Has thanked: 5 times

Re: obmenu replacement ?

#15 Post by Scorpion »

For obmenu2 I just ran the obmenu2 file:

Code: Select all

./obmenu2
This is my .desktop (that I copied in /usr/share/applications), and I copied obmenu2 to /usr/bin:

Code: Select all

[Desktop Entry]
Version=1.0
Type=Application
Name=Openbox Menu Manager
Keywords=openbox;menu;
Comment=Tweak Openbox Menu
Icon=obmenu2
Exec=obmenu2 %f
Categories=Settings;DesktopSettings;GTK;
StartupNotify=true
Terminal=false
I also made an icon that I put somewhere near the icons installed by apt.
# Dependencies
* Python 3 (tested with python 3.7)
* GTK3 (gobject-introspection)
# Dependencies
* Python 3 (tested with python 3.7)
* GTK3 (gobject-introspection)
Not sure what packages are required.

Bulkley
Posts: 6383
Joined: 2006-02-11 18:35
Has thanked: 2 times
Been thanked: 39 times

Re: obmenu replacement ?

#16 Post by Bulkley »

Scorpion wrote: 2021-10-08 14:39 For obmenu2 I just ran the obmenu2 file:

Code: Select all

./obmenu2
So did I.

Code: Select all

$ ./obmenu2
bash: ./obmenu2: /usr/bin/python3.7: bad interpreter: No such file or directory
It looks to me that python3.7 is in Buster but not Bullseye.

arzgi
Posts: 1185
Joined: 2008-02-21 17:03
Location: Finland
Been thanked: 31 times

Re: obmenu replacement ?

#17 Post by arzgi »

Bulkley wrote: 2021-10-08 15:56
So did I.

Code: Select all

$ ./obmenu2
bash: ./obmenu2: /usr/bin/python3.7: bad interpreter: No such file or directory
It looks to me that python3.7 is in Buster but not Bullseye.
You could make a symbolic link. Stupid programming if needs exact version of python.

Bulkley
Posts: 6383
Joined: 2006-02-11 18:35
Has thanked: 2 times
Been thanked: 39 times

Re: obmenu replacement ?

#18 Post by Bulkley »

arzgi wrote: 2021-10-08 16:12 Stupid programming if needs exact version of python.
Agreed. I suspect it is out dated, maybe deprecated. I only wind up in sites like github or sourceforge when a program I want is unavailable in my current Debian repository. Consequently, I find a lot of abandoned software.

User avatar
Scorpion
Posts: 389
Joined: 2018-10-17 11:38
Has thanked: 5 times

Re: obmenu replacement ?

#19 Post by Scorpion »

I am on Bullseye:

Code: Select all

apt install python3
[...]
python3 is already the newest version (3.9.2-3).

Bulkley
Posts: 6383
Joined: 2006-02-11 18:35
Has thanked: 2 times
Been thanked: 39 times

Re: obmenu replacement ?

#20 Post by Bulkley »

I have python 3.9.2-3.

Post Reply