PDA

View Full Version : [ubuntu] More permanent version of metacity --replace



xonpathos
February 17th, 2009, 03:58 AM
Ok, so I don't like Compiz. It's pretty and all, but it causes way more problems than I'm willing to put up with.

I do like Metacity. One "metacity --replace" fixes all the annoying problems I have with Compiz. The only problem is I have to do it every time I restart.

I've seen a zillion things to make this happen:

go to System -> Preferences -> Appearance -> Visual Effects and choose none;

gconf-config and make the desktop -> applications -> window_manager and set the default to /usr/bin/metacity;

set the WINDOW_MANAGER environment variable to /usr/bin/metacity;

add "metacity --replace" to .gnomerc

I've tried all of these things, one at a time and all together. None of them work. Most of them don't seem to do anything, and the last one makes it so that Gnome never comes up.

So, my question: How can I give Compiz the boot and get Metacity to stick around permanently?

abn91c
February 17th, 2009, 04:03 AM
you can always do
sudo apt-get remove compiz
sudo apt-get remove compiz-core

UbuntuNerd
February 17th, 2009, 04:12 AM
you can go to synaptic package manager and search for "fusion icon" installed it, and you should be able to switch between compiz and metacity with one click.
if you really want to uninstall compiz just look for it in synaptic and mark it for removal you also have to uninstall "compiz settings manager, compiz core".

xonpathos
February 19th, 2009, 12:33 AM
you can always do
sudo apt-get remove compiz
sudo apt-get remove compiz-core

I've been afraid to do that... I've heard horror stories of it going very badly.


you can go to synaptic package manager and search for "fusion icon" installed it, and you should be able to switch between compiz and metacity with one click.

I downloaded this and am using it. It's strange that it doesn't load the icon automatically when I start the computer, but since I've installed this Metacity starts up by default instead of Compiz. Not sure that was the intended behavior of the app, but it got me what I wanted, so I'll take it. :)

UbuntuNerd
February 19th, 2009, 02:04 AM
to add it to the start up just hit "alt + F2" and type this


ln -s /usr/bin/fusion-icon /home/YOUR_USERNAME_HERE/.config/autostart/fusion-icon/fusion-icon
replace "your user name" with your own, you can also launch "fusion Icon" from Applications > System tools > Fusion Icon
then you should see the icon on the top right corner of your screen.

xonpathos
February 21st, 2009, 02:47 AM
Is it just me, or is it particularly difficult to tell when one window manager is running vs the other? It's really annoying.

It seems the icon was saying that Metacity was running, but it was mistaken. If I tell it to run Metacity, the screen flickers and then Metacity is (presumably) actually running.

I'd still be curious to know how to have Metacity and Compiz on the same machine but use Metacity as the default.

Armor Nick
February 21st, 2009, 07:13 AM
Maybe adding metacity --replace to your autostart menu (under preferences->sessions) will help.

adult swim
February 21st, 2009, 07:31 AM
have you tried pressing alt+f2 entering in
gconf-editor and then browsing to desktop>gnome>applications>window_manager and changing the default from /usr/bin/compiz to /usr/bin/metacity
EDIT: somehow i missed where you explicitly stated you have tried this in your OP, sorry about that!

theozzlives
February 21st, 2009, 07:59 AM
do they have a metacity settings manager?

mcduck
February 21st, 2009, 09:05 AM
do they have a metacity settings manager?

Nope, most of it's settings are handled in another parts of Gnome (for example number of desktops is set in the Workspace Switcher-applet although it's actually Metacity's setting, keyboard shortcuts are set in System/Preferences/Keyboard Shortcuts and so on).

For the few extra settings that are not available in menus you'll just have to use gconf-editor.

theozzlives
February 21st, 2009, 01:46 PM
Nope, most of it's settings are handled in another parts of Gnome (for example number of desktops is set in the Workspace Switcher-applet although it's actually Metacity's setting, keyboard shortcuts are set in System/Preferences/Keyboard Shortcuts and so on).

For the few extra settings that are not available in menus you'll just have to use gconf-editor.

so no fancy effects, bummer.

islandis
February 26th, 2010, 02:12 PM
I realize this message comes almost a year later to the day, BUT. I was just having a similar problem on Arch Linux, where I replaced metacity with compiz and then ended up in a World of Pain upon deciding to go back.

What worked for me was something I found in an Arch guide to getting Compiz to autoload on login. The answer is in GConf, but NOT in changing the "/desktop/gnome/applications/window_manager/" settings back to metacity. Apparently those fields ("current" and "default") have been deprecated in Gnome since 2.12 (that is--late 2005 or so).

The value you want to change in GConf is this one:


/desktop/gnome/session/required_components/windowmanager compiz

Just change the "compiz" to "metacity" and you should be good to go!

drreed
April 20th, 2010, 06:50 PM
I've been afraid to do that... I've heard horror stories of it going very badly.



I downloaded this and am using it. It's strange that it doesn't load the icon automatically when I start the computer, but since I've installed this Metacity starts up by default instead of Compiz. Not sure that was the intended behavior of the app, but it got me what I wanted, so I'll take it. :)


The command you use to run your compiz after changes "compiz --replace" is the same command you have to run to get your Xfwm4 back (in Xubuntu) after you remove compiz, "xfwm4 --replace", otherwise, your windows won't be drawn completly. I added to some of those horror stories recently until I figured that out. Notice you see "metacity --replace" too. Whatever you used before you used compiz, you have to tell it to --replace to get it back after you remove the other (compiz) you'd been using.

I suspect I can now install/uninstall compiz with little concern, and can try it again with guidance from more experienced users. Just trying to get the cube thing going your first dance (like every other dweeb that installs it) may not be the best approach to evaluating compiz "smartly". :)

Now I'm more receptive to trying alternate window managers and decorators. I wonder if you have to use Emerald, or whether you can use something else as a decorator? Being able to fix it when you break it is important for manglers like me.:guitar:

Hammerwell
April 27th, 2010, 04:57 PM
I realize this message comes almost a year later to the day, BUT. I was just having a similar problem on Arch Linux, where I replaced metacity with compiz and then ended up in a World of Pain upon deciding to go back.

What worked for me was something I found in an Arch guide to getting Compiz to autoload on login. The answer is in GConf, but NOT in changing the "/desktop/gnome/applications/window_manager/" settings back to metacity. Apparently those fields ("current" and "default") have been deprecated in Gnome since 2.12 (that is--late 2005 or so).

The value you want to change in GConf is this one:



Just change the "compiz" to "metacity" and you should be good to go!

Yea, this did the trick. Nearly everything is fine now. Now running: metacity. =D>