Thread: [sshmenu] multiple sshmenu applets?
Brought to you by:
grantm
From: Jeff E. <je...@ac...> - 2007-12-18 20:44:57
|
Hello, Is it possible to configure multiple applets in the panel with different .sshmenu configuration files? Now I have one applet, and two standalone sshmenu windows invoked with the command line --config-file. If I cant easily put three sshmenu applets in my panel, I wanted to arrange these (like the rest of my desktop) with devilspie. However, both of my standalone sshmenu windows have the same application names and window names. Is there any way I can pass a --title (or app name|class) to differentiate my standalone sshmenu windows? -- Jeff Ewing Aconex The easy way to save time and money on your project 696 Bourke Street, Melbourne, VIC 3000, Australia Tel: +61 3 9240 0200 Fax: +61 3 9240 0299 Email: je...@ac... www.aconex.com |
From: Grant M. <gr...@mc...> - 2007-12-19 04:32:40
|
On Wed, 2007-12-19 at 07:44 +1100, Jeff Ewing wrote: > Hello, > > Is it possible to configure multiple applets in the panel with different > .sshmenu configuration files? I'm not aware of a mechanism for passing arguments to applets, or any other mechanism which could be used to tell each SSHMenu instance which config file to use. One quick-and-dirty way to get multiple copies of SSHMenu in the panel is to use the GNOME Swallower Meta Applet (the gnome-swallow-applet package on Debian/Ubuntu). This allows you to 'swallow' any standalone menu into the panel so you could use it to invoke the sshmenu-gnome program with whatever command-line arguments you need. > Now I have one applet, and two standalone sshmenu windows invoked with > the command line --config-file. If I cant easily put three sshmenu > applets in my panel, I wanted to arrange these (like the rest of > my desktop) with devilspie. However, both of my standalone > sshmenu windows have the same application names and window names. > > Is there any way I can pass a --title (or app name|class) to differentiate > my standalone sshmenu windows? It's possible that you'll have the same issue with the swallower applet, however you could use a custom wrapper script to change the window title. The default wrapper script looks like this: #!/usr/bin/ruby -W2 require 'gnome-sshmenu' app = GnomeSSHMenu::Factory.make_app() app.run You could make your one (or more) of your own along these lines: #!/usr/bin/ruby -W2 require 'gnome-sshmenu' win = Gtk::Window.new( Gtk::Window::TOPLEVEL ) win.title = 'xyzzy' app = GnomeSSHMenu::Factory.make_app(:window => win) app.run You could also try something like: win.role = 'sshmenu1' to give devilspie something else to match on. Cheers Grant |
From: Jeff E. <je...@ac...> - 2007-12-20 22:14:29
|
> > One quick-and-dirty way to get multiple copies of SSHMenu in the panel > is to use the GNOME Swallower Meta Applet (the gnome-swallow-applet > package on Debian/Ubuntu). This allows you to 'swallow' any standalone > menu into the panel so you could use it to invoke the sshmenu-gnome > program with whatever command-line arguments you need. > > The GNOME Swallower Meta Applet (from Debian) has provided the solution I was after. Thank you Jeff Ewing |