Wednesday·18·June·2008
How to get Network Manager working with ratpoison //at 23:53 //by abe
Using GNOME Network Manager is a neat way to connect to wireless or virtual private networks from a laptop running Debian Lenny, Sid, Etch with Backports or any of the *buntu distributions. You can control everything from the system tray. But not all window managers have a system tray. And with some window managers it’s not obvious how to make them work with one of those lean third party trays and panels.
Especially my favourite window manager for small displays as on the EeePC – ratpoison – insolently puts any panel or tray in the middle of the screen by default. It took me a moment to find out how to make ratpoison work with my favourite third party system tray trayer (which can handle transparency and is only a system tray, no taskbar).
First we need to make ratpoison ignore the trayer on the one hand and and reserve space for it on the screen. Fiddling around with preconfigured frames didn’t work well and the following way is also more straight forward:
- trayer always has “panel” as window title, so adding the
following line to your
.ratpoisonrc
makes ratpoison ignore trayer:unmanage panel
- Now all windows overlap the trayer, so we need to configure the
space for it. Trayer in the default configuration shows up at the
bottom and has a height of 26 pixels, so we tell ratpoison to add a
padding of 26 pixels at the bottom of the screen by adding the
following line to the
.ratpoisonrc
:set padding 0 0 0 26
Now we are confronted with the problem that these settings only apply
to new windows, not ones which were already running when ratpoison
starts. I usually start my X session using an .xinitrc
or an .Xsession
which calls the window manager using
exec
at the end.
We can start the trayer later though by spawning a subshell in the
background with a sleep
at the beginning. Also the
Network Manager applet (nm-applet) can be started that way. In my case
the end of the .Xsession
looks like
this:
( sleep 1; \ trayer --align right --edge bottom --distance 0 \ --expand true \ --transparent true --alpha 128 --tint 0 \ --SetDockType true --SetPartialStrut true & nm-applet & ) & exec ratpoison
The result could look like this:
The other programs in the system tray are from right to left: nm-applet (GNOME Network Manager), Twitux (GTK Twitter Client), Audacious, Opera, Pidgin (formerly known as GAIM), Icedove (unbranded Mozilla Thunderbird). The clock on the bottom left is from the package osdclock.
Oh, and although I’m fine with trayer: if anybody knows a possibility to control the GNOME Network Manager without the need for a system tray, I would be very happy if you could tell me. :-)
Update 18-June-2008 23:45:
Matto Fransen used my
howto to get ratpoison and
nm-applet working together on Ubuntu. He also explains in his blog
post, what may be necessary to get nm-applet working as intended in
the first place — things I already had forgotten when I wrote
this posting initally. :-)
Tagged as: .xinitrc, .Xsession, Debian, EeePC, Etch, GNOME, GNOME Network Manager, Lenny, nemo, ratpoison, Sid, system tray, trayer, Ubuntu
13 comments // write a comment // comments off
Related stories
Comments
Re: How to get Network Manager working with ratpoison
Posted by: Janne Website: Time: Sat, 06 Jun 2009 10:07 "Oh, and although Im fine with trayer: if anybody knows a possibility to control the GNOME Network Manager without the need for a system tray, I would be very happy if you could tell me. :-)" http://vidner.net/martin/software/cnetworkmanager/
There is also Wicd, if you would cinsider dumping nm completely :)
Re: How to get Network Manager working with ratpoison
Posted by: Axel Website: http://noone.org/blog Time: Sat, 06 Jun 2009 11:35 I know wicd which has half of a commandline, but cnetwork manager is what I looked for (and surely will try). Thanks for that hint!
Free web pages google web page
Posted by: andy bell Website: mailto:andybell5119@yahoo.co.uk Time: Mon, 04 Oct 2010 19:24 Check r us info. out for free web pages.
http://www.r-us.info/
Free web pages google web page
Posted by: andy bell Website: mailto:andybell5119@yahoo.co.uk Time: Mon, 04 Oct 2010 19:26 Check r us info. out for free web pages.
http://www.r-us.info/
Re: How to get Network Manager working with ratpoison
Posted by: andy bell Website: http://www.r-us.info/ Time: Mon, 04 Oct 2010 19:27 Sorry forgot the link.
Re: How to get Network Manager working with ratpoison
Posted by: idiotwizard Website: http://www.c-car-parts-used.com/index.html Time: Mon, 04 Oct 2010 19:28 This one is gret work from home jobs in my area site.
Re: How to get Network Manager working with ratpoison
Posted by: idiotwizard Website: http://www.c-car-parts-used.com/index.html Time: Mon, 04 Oct 2010 19:29 This one is gret work from home jobs in my area site.
Re: How to get Network Manager working with ratpoison
Posted by: OpenCart Templates Website: http://www.algozone.com/opencart-templates.php Time: Thu, 21 Oct 2010 01:23 Sounds great. Anyway, Large selection of premium OpenCart templates and designs with variety of themes, layouts and features to comply with latest technologies and standards in Ecommerce industry. Add professional touch to your ecommerce store front. please visit http://www.algozone.com
Re: How to get Network Manager working with ratpoison
Posted by: car Website: http://www.ca-like.com Time: Sat, 12 Feb 2011 02:16 nice one
Re: How to get Network Manager working with ratpoison
Posted by: car Website: http://www.ca-like.com Time: Sat, 12 Feb 2011 02:16 nice one
Re: How to get Network Manager working with ratpoison
Posted by: Mary Website: http://www.1st-levitra-pharmacy.com Time: Fri, 20 Jan 2012 07:52 This is a great article, and a great topic to explore. Thanks for sharing.
Re: How to get Network Manager working with ratpoison
Posted by: Shah Website: http://www.bugtreat.com/index.php/templates/e-commerce-templates/open-cart-templates.html Time: Fri, 14 Sep 2012 15:55 Interesting Stuff!
Your Comment
Spam Protection: To post a comment, you'll have to answer the following question: What is 42 minus 19?
Re: How to get Network Manager working with ratpoison
I managed to get trayer working in ratpoison with the OSDclock, but now it's not possible to go into fullscreen mode, say to watch a DVD in fullscreen. Did you also encounter this? For me windows go into fullscreen but trayer is always on top. I can get no further functionality (Ubuntu Hardy) from trayer aside from a place to dock pidgin and moblock, which is quite something for ratpoison generally speaking.
Reply