Category Archives: How-to

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 [...]

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 in the [...]

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 SVG here, because [...]

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 [...]

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 [...]

Bad Behavior has blocked 177 access attempts in the last 7 days.

Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported.