Stoppt die Vorratsdatenspeicherung! Jetzt klicken &handeln! Willst du auch an der Aktion teilnehmen? Hier findest du alle relevanten Infos und Materialien:
Jump to menu and information about this site.

Wednesday·18·June·2008

How to get Network Manager working with ratpoison //at 23:53 //by abe

from the Hacking-the-desktop dept.

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 EeePCratpoison – 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:

  1. trayer always has “panel” as window title, so adding the following line to your .ratpoisonrc makes ratpoison ignore trayer:
    unmanage panel
  2. 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:

My EeePC desktop with ratpoison, trayer and two aterms

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. :-)

Comments

Re: How to get Network Manager working with ratpoison

Posted by: jan snyder
Website: mailto:schlachthausfunf@gmail.com
Time: Mon, 15 Sep 2008 16:12

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

Re: How to get Network Manager working with ratpoison

Posted by: Janne
Website: 
Time: Sat, 06 Jun 2009 10:07

"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. :-)" http://vidner.net/martin/software/cnetworkmanager/

There is also Wicd, if you would cinsider dumping nm completely :)

Reply

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!

Reply

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/

Reply

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/

Reply

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.

Reply

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.

Reply

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.

Reply

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

Reply

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

Reply

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

Reply

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.

Reply

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!

Reply

Your Comment

Spam Protection: To post a comment, you'll have to answer the following question: What is 42 minus 19?

Name:
URL or E-Mail: [http://... or mailto:you@example.com] (optional)
Title: (optional)
Spam Protection Answer:
Comment:

Tag Cloud

2CV, aha, Apache, APT, aptitude, ASUS, Automobiles, autossh, Berlin, bijou, Blogging, Blosxom, Blosxom Plugin, Browser, BSD, CDU, Chemnitz, Citroën, CLI, CLT, Conkeror, CX, deb, Debian, Doofe Parteien, E-Mail, eBay, EeePC, Emacs, Epiphany, Etch, ETH Zürich, Events, Experimental, Firefox, Fläsch, FreeBSD, Freitagstexter, FVWM, Galeon, Gecko, git, GitHub, GNOME, GNU, GNU Coreutils, GNU Screen, Google, GPL, grep, grml, gzip, Hackerfunk, Hacks, Hardware, Heise, HTML, identi.ca, IRC, irssi, Jabber, JavaShit, Kazehakase, Lenny, Liferea, Linux, LinuxTag, LUGS, Lynx, maol, Meme, Microsoft, Mozilla, Music, mutt, Myon, München, nemo, Nokia, nuggets, Open Source, Opera, packaging, Pentium I, Perl, Planet Debian, Planet Symlink, Quiz, Rant, ratpoison, Religion, RIP, Sarcasm, Sarge, Schweiz, screen, Shell, Sid, Spam, Squeeze, SSH, Stoeckchen, Stöckchen, SuSE, Symlink, Symlink-Artikel, Tagging, Talk, taz, Text Mode, ThinkPad, Ubuntu, USA, USB, UUUCO, UUUT, VCFe, Ventilator, Vintage, Wahlen, Wheezy, Wikipedia, Windows, WML, Woody, WTF, X, Xen, zsh, Zürich, ÖPNV

Calendar

 2008 
Months
Jun
 June 
Mo Tu We Th Fr Sa Su
           
18
           

Tattletale Statistics

Blog postings by posting time
Blog posting times this month



Search


Advanced Search


Categories


Recent Postings

0 most recent of 0 postings total shown.


Recent Comments

Hackergotchi of Axel Beckert

About...

This is the blog or weblog of Axel Stefan Beckert (aka abe or XTaran) who thought, he would never start blogging... (He also once thought, that there is no reason to switch to this new ugly Netscape thing because Mosaïc works fine. That was about 1996.) Well, times change...

He was born 1975 at Villingen-Schwenningen, made his Abitur at Schwäbisch Hall, studied Computer Science with minor Biology at University of Saarland at Saarbrücken (Germany) and now lives in Zürich (Switzerland), working at the Network Security Group (NSG) of the Central IT Services (Informatikdienste) at ETH Zurich.

Links to internal pages are orange, links to related pages are blue, links to external resources are green and links to Wikipedia articles, Internet Movie Database (IMDb) entries or similar resources are bordeaux. Times are CET respective CEST (which means GMT +0100 respective +0200).


RSS Feeds


Identity Archipelago


Picture Gallery


Button Futility

Valid XHTML Valid CSS
Valid RSS Any Browser
This content is licensed under a Creative Commons License (SA 3.0 DE). Some rights reserved. Hacker Emblem
Get Mozilla Firefox! Powered by Linux!
Typed with GNU Emacs Listed at Tux Mobil
XFN Friendly Button Maker

Blogroll

People I know personally


Other blogs I like or read


Independent News


Interesting Planets


Web comics I like and read

Stalled Web comics I liked


Blogging Software

Blosxom Plugins I use

Bedside Reading

Just read

  • Bastian Sick: Der Dativ ist dem Genitiv sein Tod (Teile 1-3)
  • Neil Gaiman and Terry Pratchett: Good Omens (borrowed from Ermel)

Currently Reading

  • Douglas R. Hofstadter: Gödel, Escher, Bach
  • Neil Gaiman: Keine Panik (borrowed from Ermel)

Yet to read

  • Neil Stephenson: Cryptonomicon (borrowed from Ermel)

Always a good snack

  • Wolfgang Stoffels: Lokomotivbau und Dampftechnik (borrowed from Ermel)
  • Beverly Cole: Trains — The Early Years (getty images)

Postponed