LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 07-05-2009, 04:07 AM   #1
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian sid + kde 3.5 & 4.4
Posts: 6,823

Rep: Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947
looking for: customizable pop-up menu solution


Short form:

I'm looking for a way to pop up a customizable menu at the pointer location with a hotkey or similar command.

Long form:

A long time ago when I was using Winblows, my Kensington trackball had an option to customize a "pop-up" menu that would appear at the cursor location and allow you to select from a user-configured list of commands. You could add things like cut/copy/paste, "type" custom text strings, or launch programs with it.

Now I'm trying to simulate that option on Linux. Configuring the various commands I want to use is fairly easy with basic scripting. But I first need something that will create the menu system the way I want it. So I'm asking if anyone here has any ideas.

I've looked at the various xdialog/qdialog/zenity options, but they don't seem to have the functionality I need. Unless I'm missing something, of course.

The closest I've found so far is 9menu. It basically does what I want, but it's very limited. It a) doesn't have nested menus, b) doesn't accept keyboard controls (even though the man page says it does), and c) is extremely ugly, being an old x-window program. It also pops up framed and appears in the toolbar, although I can get rid of those with kde's window customizing.

I'd really like to have something with a much better-looking qt or gtk2 style, and more options. I'm wondering if I'll have to create my own with something like wxpython or python/tk, but then I'd have to learn python first , so I'm asking here before I go in that direction.

So, any recommendations on how best to implement this?
 
Old 07-05-2009, 06:43 AM   #2
tredegar
Guru
 
Registered: May 2003
Location: London, UK
Distribution: Ubuntu 10.04, mostly
Posts: 6,007

Rep: Reputation: 367Reputation: 367Reputation: 367Reputation: 367
If you are running KDE, you should take a look at KDEs "Service Menus".
A good example of these is Charles Bouveyron 's kim (Kde Image Menu)
If you download and install that and take a look at how it works, I think you'll find the functionality you're looking for. Besides, kim is a most useful utility, and easily extended.

Last edited by tredegar; 07-05-2009 at 06:44 AM. Reason: Bad link
 
Old 07-05-2009, 07:18 AM   #3
gapan
Member
 
Registered: Feb 2007
Posts: 343

Rep: Reputation: 105Reputation: 105
You could use openbox I guess. Even inside KDE or gnome. You can customize the openbox menu in any way you like.
 
Old 07-05-2009, 07:55 AM   #4
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian sid + kde 3.5 & 4.4
Posts: 6,823

Original Poster
Rep: Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947
I'm having some trouble finding clear info on the service menus. From what I've found, it seems to be a way to add entries to existing kde context menus, particularly in konqueror. That's not really what I'm looking for. I want an independent app that will launch its own floating menu when I hit a hotkey, independent of any other program.

I hadn't thought of using something like openbox. Again, it's not something I'm really familiar with, but taking a look at the description, I can see how it could be used to call up a menu. But if I did that, would it integrate with kde and other programs? I mean, since it's a window manager, would it open up a standard kwin window, or its own managed windows? And what about things like cpp clipboard controls? Or is there some way to launch only the openbox menu, and leave the rest to the currently-running wm?
 
Old 07-06-2009, 01:33 AM   #5
gapan
Member
 
Registered: Feb 2007
Posts: 343

Rep: Reputation: 105Reputation: 105
KWin will be replaced by openbox if you use it. I don't think there's a way not to (although I don't know openbox that well).

I remembered there was another option for you, take a look at popdown: http://www.manatlan.com/page/popdown
 
Old 07-06-2009, 11:46 AM   #6
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian sid + kde 3.5 & 4.4
Posts: 6,823

Original Poster
Rep: Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947
Thank you gapan, I'll be checking that out. It looks like it might be just what I need.

Too bad it's not in the Debian repositories, but I'll be downloading it and putting it through its paces shortly.
 
Old 07-07-2009, 01:47 PM   #7
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian sid + kde 3.5 & 4.4
Posts: 6,823

Original Poster
Rep: Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947
Well, I've checked it out, and popdown looks pretty good, almost exactly what I wanted.

I'm not 100% satisfied with it though. It's a pain having to configure a separate .desktop file for every command I want to include. And the program seems very finicky about what goes into these files. I tested it out with the ones in my kde Desktop directory, and it wouldn't accept half of them, and can't find the icons for some of the rest. It also doesn't seem to like raw commands either (perhaps because it's python and not a shell interpreter?), so it looks like I'll have to wrap everything up in scripts.

Still, I believe I can work with it. It does what I want. Thanks.
 
  


Reply

Tags
customizing, dialog, menu, popup


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
pop up menu icon size bong.mau Suse/Novell 1 06-01-2007 07:59 AM
Customizing the Xfce pop-up menu Avelaval Slackware 2 03-20-2005 12:30 PM
How to disable the right-click pop up menu? jpan Linux - General 2 09-16-2004 02:27 PM
Looking for a POP/IMAP/Webmail solution gmartin Linux - Software 2 04-24-2004 12:08 AM
Pop Up Menu Wysiwyg Linux - General 13 06-10-2003 09:40 AM


All times are GMT -5. The time now is 11:03 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration