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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
07-05-2009, 04:07 AM
|
#1
|
|
Bash Guru
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian sid + kde 3.5 & 4.4
Posts: 6,577
|
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?
|
|
|
|
07-05-2009, 06:43 AM
|
#2
|
|
Guru
Registered: May 2003
Location: London, UK
Distribution: Ubuntu 10.04, mostly
Posts: 6,002
|
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
|
|
|
|
07-05-2009, 07:18 AM
|
#3
|
|
Member
Registered: Feb 2007
Posts: 336
Rep: 
|
You could use openbox I guess. Even inside KDE or gnome. You can customize the openbox menu in any way you like.
|
|
|
|
07-05-2009, 07:55 AM
|
#4
|
|
Bash Guru
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian sid + kde 3.5 & 4.4
Posts: 6,577
Original Poster
|
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?
|
|
|
|
07-06-2009, 01:33 AM
|
#5
|
|
Member
Registered: Feb 2007
Posts: 336
Rep: 
|
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
|
|
|
|
07-06-2009, 11:46 AM
|
#6
|
|
Bash Guru
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian sid + kde 3.5 & 4.4
Posts: 6,577
Original Poster
|
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.
|
|
|
|
07-07-2009, 01:47 PM
|
#7
|
|
Bash Guru
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian sid + kde 3.5 & 4.4
Posts: 6,577
Original Poster
|
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.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 12:21 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|