Monday·02·June·2008
How to get Network Manager working with ratpoison //at 00:59 //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
.ratpoisonrcmakes 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
1 comment // show without comments // write a comment //
Related stories
Friday·23·May·2008
Favourite Linux Desktop Applications //at 17:18 //by abe
foosel tagged me, whatever that means. Perhaps it’s the English word for “Stöckchen” (German for “small stick”) of which I always wondered how the English blogging part of the blogosphere is calling that kind of coercing blog posts… ;-)
So these are the rules:
- blog a list with your favorite desktop Linux software (as many or few you want)
- add links to the software project’s websites
- post these rules
- tag three other Linux using bloggers
Interestingly splitbrain, who started the thing just calls it “Meme”, but to me memes are the same thing just without duress. ;-)
So you want to know about what Linux desktop software I like and use, hmm? Desktop means GUI, doesn’t it? There are only a few GUI application I really use often since, as you probably know, X is primarily a terminal multiplexer and screen resolutions are compared by how many 80×25 xterms with fixed font you can get on one screen without overlapping. ;-)
But to be honest: Although I’m more the command line guy hacking cryptic lines into windows with small fonts, there are a few thing where I don’t want to miss X and the GUI applications: For all things web – that means web browser, feed reader, etc. But then there is also a bunch of GUI software I use occasionally or as alternative tool to some text mode or command line software.
Web
Liferea – My favuorite feed reader although it takes ages to start and since a few days also starts crashing, probably since I have configured it to cache up to 1000 items per feed and have subscribed to several hundred feeds.
I do not read them all though, but I use them togther with Liferea’s “search all feeds” feature as a Google News replacement. ;-) I though read a lot of feeds in it, since I use it for news, blogs, webcomics and to read missed tweets on Twitter. It organizes the feeds in a tree structure so I can easily group different types of content together.
Opera – I’m back using Opera as my primary web browser since they offer alpha versions for 64-bit Linux.
Initally I started using Opera with version 3.60 on Windows 95 somewhere about 10 years ago and I’ve always come back to it when no current free browser fits my needs.
Although it hasn’t an AddOn possibility as Firefox has, I still prefer it over the bloaty and leaky and quite unstable Firefox 2, since it offers nearly every functionality I need (mainly mouse gestures and a flexible tab management), is fast, needs less RAM and is quite stable for an alpha version. And Firefox only offers those features I need via Addons which are often the cause for leaking or crashing. Haven’t tested Firefox 3 yet, but it’s said to be be less bloaty…
Kazehakase – Formerly I used kazehakase as my primary web browser since I really like its user interface, but the version in Etch is quite slow and seems to have memory leaks. It’s currently the second browser I have always open. But since my browsers always have uptimes in terms of months I don’t need web browsers that are leaking, so I’m thinking about replacing it with something more stable.
Conkeror – A Gecko 1.9 (i.e. Firefox 3) based web browser completely controllable with the keyboard. And the key bindings are those from Emacs and partially also from the classic text-mode browser Lynx. Will be available in Debian Experimental soon.
Netsurf looks very promising as it’s a simple and fast browser with it’s own rendering engine and originating on RISC OS. But since I’m a heavy tab user (60 tabs in one window are not really seldom), a browser (yet) without tabs isn’t really that useful for me. But I hope it will get tabs soon.
Midori – The other upcoming new browser in the Linux world is using Apple’s WebKit (which itself is based on KDE’s KHTML) underneath. Only in Experimental yet (form a Debian point of view :-). Use it on my Debian Sid machine to play around with it.
Twitux – A simple GTK Twitter client which doesn’t clutter the screen with unnecessary icons or buttons. Just a small menu bar, status bar and the tweets.
Azureus – In the seldom case where I need to download files via Bittorrent I either use Opera’s builtin client or Azureus. The nice thing about Azureus is that you can get nice graphical as well as textual statistics about all aspects of your downloads.
X / Desktop Environment
FVWM – My favourite window manager for normal, big or multiple screens. I use it since more than 10 years (twm and tvtwm were its predecessors) and its configuration has evolved since then quite a bit to tinted transparent window frames and title bars, etc.
I tried other window managers in between (e.g. Sawfish and GNOME’s own Metacity, each for a month or so and both together GNOME, also played around with KDE on one machine) and I always came back to FVWM. No other window manager is so fast and configurable in regards of keybindings. Handles multiple screen very well and out of the box, too.
ratpoison – My favourite window manager for small screens (less than about 1024×768, e.g. on my EeePC, on the 8” touchscreen connected to my MicroClient Jr. or on my 1996 ThinkPad 760ED with 133 MHz Pentium 1) since it doesn’t waste screen space for window borders or title bars. It just maximizes all windows by default to screen resolution. You then can manage (split, resize, switch, close, kill) windows as you are used to manage shells and text-mode applications with screen(1). Doesn’t work that well with multiple xrandr managed screens though if they don’t have the same size.
FLWM – The Fast and Light Window Manager. My favourite low-end but still DAU compatible window manager. Use that on demo and guest accounts, especially on low end machines.
Synergy – connects displays of other computers (not only X but also even Mac or Windows) with your mouse and keyboard similar to a KVM switch. I use it at work to add my laptop as fourth monitor. ;-)
trayer – A desktop environmen independend system tray developed by the FVWM Crystal Project. Since I changed from manually editing /etc/network/interface on my laptop each time I came into a new wireless LAN to using GNOME’s Network Manager, I needed a system tray for the nm-applet. Trayer is quite easy to configure using command line options and can handle tinted transparency as I use with FVWM and ATerms. So it fits in perfectly.
- ratmenu and dmenu – For showing generated menus together with ratpoison, I use ratmenu (e.g. as replacement for ratpoison’s non-interactive window list) and dmenu (e.g. as application menu using my own wrapper which generates the menu from some config file). Probably will publish that code once it proved itself stable.
xtrlock – the simplest tool to lock you desktop: The mouse turns into a lock and it only goes away if you enter the right password. No screen saver included though and everyone can see what’s on your desk. I like it though. Use it on low-end machines.
xosview – my favourite system monitor since more than a decade.
XScreenSaver and Really Slick Screensavers (GLX Port) – Configurable and command controllable screen saver daemon. Favourite modes: GLMatrix and Substrate from XScreenSaver and Lattice Sky Rocket and Hufo’s Smoke from RSS GLX.
Terminals
xterm – there is no better X terminal emulator than the original xterm. I found no other terminal which is so fast, has no problems with text-mode applications (aterms break aptitude’s display), no problems with character set encodings, which can be embedded into other applications and which has a fully working classic Unix cut & paste.
aterm – When I need a fancy transparent terminal for showing a fancy desktop, I use the AfterStep Terminal Emulator aterm. In that case, the system tray, the window borders, the window’s title bar and the terminal on my desktop have the same fancy tinted transparency.
yeahconsole – A wrapper around xterm which works like the pulldown console in quake. Good for the short shell usage inbetween. ;-)
The other similar pull down consoles I know (KDEish yakuake and GNOMEish tilda) had some issues with focus and keybindings while yeahconsole works just out of the box and showed no problems until now.
Audio and Video
XMMS and Audacious – If I want to play a single list of files of the same file format or single stream, I usually use the command line tools mpg123 and ogg123. But if I need anything more fancy or more flexible, I prefer the WinAMP clones. Formerly XMMS, nowadays Audacious. Both with some old skin which I use since more than a decade and which I initially used with WinAMP 2 on Windows 95.
mplayer – no fancy GUI, easily controllable with the keyboard, plays most video file formats I can remember. ;-)
Editing and Developing
GNU Emacs – I’ve been raised with GNU Emacs and Lisp at university, so I’m quite sticked to that. I usually only start one Emacs instance and connect to it using emacsclient. I also like TRAMP for editing remote files. but I don’t need it that often.
On machines, where I don’t want a full blown Emacs installation or under root I prefer GNU Emacs’ little brother GNU Zile (Zile Is a Lossy Emacs), but that’s text-mode and no GUI software.
OpenOffice.org – I think it’s a really great software, but I use it quite seldom, usually only when I have to open some file in a Microsoft file format. For writing letters, articles, presentations and so I have LaTeX.
Gnumeric – My preferred spreadsheet application. Although for some purposes I use the OpenOffice.org spreadsheet, usually when Gnumeric has not all necessary features.
Graphics
xv – Yet another tool I use since more than a decade: No other image viewer is so fast and yet so easy to use with both keyboard and mouse. Open source, but unfortunately not (yet?) free software.
keyjnote – fancy PDF presenter with a lot of interactive features.
pdfcube – PDF presenter turning pages as a cube as compiz or Macs do with the desktop.
Chat
Pidgin – I usually use irssi inside a screen for IRC as well as Jabber and ICQ (via Bitlbee), but I also often have a local Jabber client running which then is Pidgin (formerly known as GAIM).
Other Tools
Unison – I use it to synchonise the cache and state of my feed reader between laptop and workstation. And I do indeed prefer the GUI version over the text-mode version. I use the text-mode only if I use it from some remote location.
XKeyCaps – The ideal tool to wreck you keyboard layout. ;-)
XGnokii – Used it to backup my former Nokia mobile phones, the 6130, the 6210i and the 6310i. Doesn’t work anymore with my new E51, though.
Sunbird / Iceowl – Not really using it yet, but I plan to use it as my primary calendar tool.
QEMU / KVM / KQEMU – My favourite desktop hardware emulator. (For servers, I prefer Xen for virtualization.)
Games
- ScummVM
- Planet Penguin Racer / Extreme Tux Racer (all forks of Tux Racer)
- Frozen Bubble
- Battle for Wesnoth
- cuyo, xpuyopuyo, flobopuyo
- Sauerbraten
- PrBoom / Freedoom
- Neverball / Neverputt
- Briquolo
- xfrisk
- Icebreaker
- XBomb
Non-Desktop Applications
In case someone wonders about my mail client, Jabber client, IRC client, ICQ client, file manager, notes taking application, shell and versioning system – they’re all command line or text-mode applications:
- E-Mail: mutt
- Chat, Instant Messaging: irssi + Bitlbee + GNU Screen
- File management: coreutils (and sometimes busybox ;-)
- Notes: hnb
- Shell: zsh
- Version control: Subversion (svn), Mercurial (hg)
Who’s next?
That’s difficult:
- maol would be interesting, but since a while he just blogs in Jeopardy style, so he would need pack all those programs into the subject of his blog post… No, not a good idea.
- Venty! No, has no active blog anymore.
- Dieter! No, no Linux user.
Hmmm, I think I have to look in a different corner of my circle of friends. Hmm. Ah, now I know:
- dyfa – not really a Linux user, but I guess FreeBSD is ok, too. :-)
- nion – this will be really interesting. He even uses more strange software than I do. ;-)
- alphascorpii – no idea what she prefers (except that it will be available as Debian package ;-)
And no, I don’t expect posts as comprehensive as mine. :-)
Tagged as: alphascorpii, aterm, Audacious, Azureus, Bitlbee, Conkeror, Debian Experimental, Desktop, dmenu, dyfa, Emacs, fancyness, Firefox, FLWM, foosel, FVWM, GAIM, gnokii, GNOME, GNOME Network Manager, Gnumeric, GUI, Iceowl, ICQ, IRC, irssi, Jabber, Jeopardy, Kazehakase, keyjnote, KQEMU, KVM, Liferea, Linux, maol, Meme, Metacity, Midori, more than a decade, mpg123, mplayer, Netsurf, nion, ogg123, Open Source, OpenOffice.org, Opera, Other Blogs, pdfcube, Pidgin, Planet Debian, Planet Dokuwiki, QEMU, ratmenu, ratpoison, RSS GLX, Sawfish, splitbrain, Stöckchen, Sunbird, Synergy, tilda, Trayer, tvtwm, Twitter, Twitux, twm, unison, Venty, web browser, WinAMP, window manager, Windows 95, X, XKeyCaps, XMMS, xosview, XScreenSaver, xterm, xtrlock, xv, yakuake, yeahconsole, zile
1 comment // show without comments // write a comment //
Related stories
Sunday·22·October·2006
The mouseless side of X //at 00:48 //by abe
Although I like the idea of a tiling and completely keyboard focused
window manager, I never fell in love with Ion because the default
keybindings weren’t really intuïtive (to me). A few months ago I
noticed, that ratpoison is also a tiling and completely keyboard focused window
manager, only with much more intuitive usage: If you know screen and
it’s keybindings, you also know ratpoison and it’s keybindings: Just
exchange Ctrl-A with Ctrl-T. This sounds
perfect for usage on my low performance laptops, where I have small
screens and usually also no virtual desktops in use.
There’s only one thing which annoys me in ratpoison: If I use a mostly mouse driven application like e.g. a webbrowser with ratpoison, I have no problems to click on links, even if the webbrowser is not in the so called “current frame”. But if e.g. click into an input field, I usually notice much too late that while the mouse works fine in the browser, keyboard focus is still in some other window. Currently they all use flwm, the Fast and Lite Window Manager.
So what I would need is a tiling and keyboard focused window manager but with “focus follows mouse” politics. And since the laptops on which I intend to use such a window manager, all have a touchpad or thumbstick, the mouse there counts as keyboard focused, too somehow, doesn’t it? :-) I wonder, if an ion3 could be configured to use the same keybindings as ratpoison. That would probably fulfil this desire.
On the other hand, there are browsers which are fine without mouse. lynx or links2 for example, so the focus problem I have with ratpoison wouldn’t occur. But what if I need or want a keyboard driven and full blown webbrowser? Ok, Firefox as well as Opera are not that bad in keyboard only use, but they still are focused on the mouse using user.
But Gecko wouldn’t be Gecko, if there wasn’t some Gecko based browser with this features: On the ratpoison website I found a link to a very interesting Firefox plugin which makes Firefox a complete new browser, a keyboard driven webbrowser named Conkeror. It has no toolbars at all, no (visible) tabs, no menus, no nothing — it shows only the website in fullscreen, a status line and a multipurpose command line — exactly like the mini-buffer of GNU Emacs.
But not only the layout, even the keybindings are very emacsish:
C-x C-f opens an URL in a new buffer -eh- tab, C-x
5 C-f opens an URL in a new frame (window), C-x
C-v opens a new URL in the current tab (buffer) with the
current URL as editable default value, C-x b switches to
another tab, C-x k kills -eh- closes a tab, C-x
C-b lists all open tabs, l goes back (remember the Emacs info
reader, eh?), C-g quits accidently requested dialogs or
stops loading a web page, Ctrl-s and Ctrl-r give you forward and
backward i-search, C-n, C-p,
C-f and C-b scroll, etc. Even
M-x works, e.g. will M-x revert-buffer
reload the web page. (Unfortunately Esc-x doesn’t
work. Yet.) And for vi freaks, there is even M-x
use-vi-keys. There’s even one lynxish keybinding:
\ lets you view the source.
And although it’s one of the strangest webbrowsers I saw yet, I somehow like it and also would like to see it in Debian as package, since it is the perfect companion for ion or ratpoison. Looking through apt’s package cache as well as the wnpp bugs, I haven’t found any hint on somebody already packaging it, so I’ll have a look on it and on how to to package a Firefox extension for Debian.
BTW: While looking through the wnpp bugs, I found bug #335459, which is the ITP flock, an also Gecko based browser with a lot of cool features for blogger who like social network tools.
Another nice thing I found today in Debian was the xfonts-artwiz package whose small fonts are very suitable for small resolution screens, especially if a tiling window manager is used with a e.g. 800×600 resolution. Unfortunately they aren’t available in a charset with German umlauts.
Apropos tiling window managers: Anyone tried pconsole with an automatically tiling and resizing window
manager? I wonder if it’s usable. At least on MacOS X with its
cascading window positioning algorithm, pconsole is a pain. — But even without cascading
windows, MacOS X is a pain for keyboard users. Just think of its
default behaviour when using the tab key inside a form mask: It will
skip all buttons, all checkboxes, all radio buttons and all select
boxes. Argh!
Tagged as: Conkeror, Debian, Emacs, Firefox, Flock, flwm, ion, lynx, MacOS X, Open Source, Opera, pony, Rant, ratpoison, Sarge, screen, Sid, Thumbstick, Touchpad, Window Manager, WTF, X
5 comments // show without comments // write a comment //


