Category Archives: How-to

Setting the button order

Ubuntu Lucid Lynx was released last week. It modifies the order of the titlebar buttons so that they all appear on the left-hand side. Some people would like the buttons in another order. This post explains how to change the order of the buttons. Firstly, decide which buttons you want: Here are your choices. Only […]

You can switch in a direction!

When I posted yesterday’s squib, I really didn’t expect six people to say they’d use it. Someone plaintively left a message on the bug saying “Please make it possible for devilspie to add this feature!” Well, it is possible for devilspie or any other addon to add this feature, and for that reason it’s not […]

Theme speed

The speed Metacity renders decorations depends on the theme in use. If you want to time all the themes installed and view them, use: for G in $(locate metacity-theme-1|grep /usr/share/themes|cut -d/ -f5); do metacity-theme-viewer $G; done Mean client-side times on my system to draw each frame, in ascending order of speed: Prelude (the theme given […]

A simple theme: Prelude

This is in answer to Stuart Langridge’s question about how the XFCE theme Prelude can be ported to Metacity.  Here is a quick attempt at porting it; I’ll be referring to that in what follows.  In order to install this theme for yourself, do: mkdir -p ~/.themes/Prelude/metacity-1 wget -O ~/.themes/Prelude/metacity-1/metacity-theme-1.xml http://www.gnome.org/~tthurman/pics/metacity/Prelude.xml I’m not talking about […]

The easiest way to turn on compositing

Listen to this. For everyone complaining about having to use gconf-editor to turn compositing on: Hit alt-f2 Type metacity -c Hit return THAT IS ALL.

How to apply a patch (under Ubuntu)

Listen to this. Someone wants to know how to apply Bugzilla patch 124290 under Ubuntu. sudo apt-get build-dep metacity apt-get source metacity cd metacity-2.24.0 wget -O – http://bugzilla.gnome.org/attachment.cgi?id=124290 | patch -p1 ./configure make sudo make install (I would include the output but it’d be in Welsh.)

How to get backtraces from a window manager

This may sound obvious, but I only just thought of it. Suppose you make a change to Metacity which causes it to segfault on startup. What you’d ordinarily do is to load it into gdb and have a look at what’s going on in the backtrace with the bt command. But you can’t do that, […]

Justifying window titles

It was said that Metacity doesn’t let you decide whether titles of windows are left-justified (as in modern versions of MS Windows) or centre-justified (as on the Mac). But actually, it’s a theme issue to decide how a title is drawn. Here’s how to change your theme from centre-justified to left-justified. First, find out what […]