Windows Tips and Tricks Admin Blog

Wednesday, May 13, 2009

Enable Genie Effect using Magic Lamp in Compiz-Fusion 0.8 +!!

Hello guys, I recently switched to ubuntu from windows and this is my first ever article on Linux. I will try my best to be as precise as possible.

I read earlier articles but they didn't seem to work with the new version of Compiz Fusion. Therefore I hacked it out myself and finally figured out just how to do it!

Here's a step-by-step procedure for you.

  • Press Alt + F2 to get the run application window and type metacity --replace and hit RUN.
  • Download ghex which is a hex editor software for Linux. Go to Synaptic Package Manager and get it from there.
  • Now comes the actual hacking part! :) So here we go!
  1. Type in terminal: sudo gedit /usr/share/gconf/schemas/compiz-animation.schemas and hit ENTER.
  2. Press Ctrl + F and in the FIND window, search for magic_lamp_max_waves and once you locate it, you will see <default>4</default> under it. Make that <default>0</default>. Further look under it and locate the entry which says The maximum number of waves for Magic Lamp. (3 - 20). Change the red portion of this phrase to (0 - 20). Save the file now.
  3. Type in terminal: sudo ghex2 /usr/lib/compiz/libanimation.a and hit ENTER.
  4. Press Ctrl + F and in the FIND DATA window on the RIGHT pane, click on the top left corner and type magic_lamp_max_waves and click hit ENTER. Now in the RIGHT pane of the actual ghex window you will see highlighted phrase magic_lamp_max_waves and immediately after it there will be <min>3</min>. Make that <min>0</min>. Make sure that the insert key is inactive by default so whatever u will type will replace the selected text. So just select 3 with mouse pointer and type 0 to replace. Now save the file.
  5. Type in terminal: sudo ghex2 /usr/lib/compiz/libanimation.so and hit ENTER.
  6. Repeat the same procedure as above and save the file.
  7. Type in terminal: sudo gedit /usr/share/compiz/animation.xml and hit ENTER.
  8. Press Ctrl + F and the in the FIND window, search for magic_lamp_max_waves and once you locate it, scroll down through all the lang entries till you see <default>4</default>. Make that <default>0</default>. Immediately underneath it you will see <min>3</min>. Make that <min>0</min>. Now save the file.
You're now ready to reboot. After reboot, go to CompizConfig Settings Manager from System->Preferences and modify the magic lamp settings from Effects->Animations->Effect Settings->Magic Lamp and pull the Magic Lamp Max Waves bar down to 0.

Success!!!

Labels: ,

2 Comments:

Post a Comment

Subscribe to Post Comments [Atom]



<< Home