Here's a slightly more convenient solution, which should work in the file in question remains properly formatted (but this may change in subsequent KDE releases). I've tested it with KDE 4.1.
Note: if you are in "black / white / messed up screen mode" remember you need to press CTRL+ALT+F1 to get a terminal and login with your normal user account (not as root).
- Type the following inside a terminal / konsole to disable Desktop Effects:
Code:
cp -i ~/.kde4/share/config/kwinrc ~/.kde4/share/config/kwinrc_backup
sed -i '/[Compositing]/{n; s/true/false/;}' ~/.kde4/share/config/kwinrc
[Explanation]
First this make a copy (kwinrc_backup) of the configuration file we are about to mess with (kwinrc) using [b]cp[/B. Verify this backup was made using "less ~/.kde4/share/config/kwinrc_backup".
Next using the unix/linux tool sed we find the line that matches the string "[Compositing]", then replace the string "true" with the string "false" on the next line. If "true" is not found (Desktop Effects was already disabled, nothing happens). The "-i" options makes that we replace the string in the same file, rather than spit out the output to the command line, so this is a search and replace command.
Note: if you don't have the "sed" program then run the following as root to install it:
If something goes wrong you can restore the backup by executing the following line from the terminal, but make sure you're not in super user (root) mode:
Code:
mv -i ~/.kde4/share/config/kwinrc_backup ~/.kde4/share/config/kwinrc
What might be also useful if you experiment with Desktop Effects a lot is the following:
- Create a new text file called "Disable_DesktopEffects" in the folder "bin" in your home directory, i.e. ~/bin/. And put the following lines of code in it:
Code:
#!/bin/sh
echo ---------------------------------------------------------
echo Making backup of configuration file: ~/.kde4/share/config/kwinrc
echo if backup file already exists you will be promted to overwrite \(y/n\).
echo ---------------------------------------------------------
cp -i ~/.kde4/share/config/kwinrc ~/.kde4/share/config/kwinrc_backup
sed -i '/[Compositing]/{n; s/true/false/;}' ~/.kde4/share/config/kwinrc
echo Desktop Effects disabled, now restart the X-server using CTRL+ALT+ESCAPE
echo alternatively you can also login as root, type
echo \"init 3\" which tops the kde desktop manager and then type
echo \"init 5\" to restart it and bring you back to the login screen.
- Now make sure to make it executable by typing:
Code:
chmod +x ~/bin/Disable_DesktopEffects
Have fun!
Bookmarks