Here's a perl script I wrote to disable Beryl temporarly when I run SL. It should go in the secondlife directory with the secondlife shellscript. It kills the beryl process and starts metacity, then when secondlife exits, replaces metacity with beryl if beryl was running before starting SL.
CODE
#!/usr/bin/perl
use strict;
use File::Basename;
my $beryl_was_running = 0;
my $beryl_pid = `ps --no-heading -o pid -C beryl`;
if ($beryl_pid =~ m/^\s*(\d+).*/) {
$beryl_pid = $1;
system "kill $beryl_pid";
# Modify the following line to use a different window manager.
system 'metacity --replace &';
$beryl_was_running = 1;
}
sleep(1);
my ($name, $directory) = fileparse($0);
if (!defined($directory)) { $directory = './'; }
system $directory.'secondlife';
sleep(1);
if ($beryl_was_running) {
system 'beryl --replace &';
}