Thursday, November 17, 2011

Disable desktop effects in KDE4

In KDE4 is a little annoying to have to manually disable desktop effects when we use any game or application that occupies our screens to 100%. In this article, we will see a trick that will allow us to automatically disable these effects without too many complications and whose level of difficulty is so basic that any beginner in Linux can do it.
 
 
Let's make a blank document called "check3d" That we will put the following;

———————————--
#!/bin/bash
if [[ "$(qdbus org.kde.kwin /KWin org.kde.KWin.compositingActive)" = "true" ]] ; then
qdbus org.kde.kwin /KWin org.kde.KWin.toggleCompositing
fi
$1
if [[ "$(qdbus org.kde.kwin /KWin org.kde.KWin.compositingActive)" = "false" ]] ; then
qdbus org.kde.kwin /KWin org.kde.KWin.toggleCompositing
fi
exit
———————————--
Now we keep it in /usr/local/bin/check3d and then we will give execute permissions using the following command:
chmod +x /usr/local/bin/check3d
Arch Linux users can download an installation package on the following link; https://aur.archlinux.org/packages.php?ID=53954%20 and Slackware, Ubuntu, Debian and other distros, one should follow the steps above.

Finally we just have to run the script by prefixing the command of the game. For example;
check3d name_game
And that's all. We can run any application using our resources without having to disable 3D desktop effects from the administration panel.
If this article was useful and you want to help us to grow Subscribing to our feed or Click "Like" in our Facebook page ,or follow us via Twitter or subscribing to our feed.

People who read this post also read :



0 comments:

Post a Comment

Twitter Delicious Facebook Digg Stumbleupon Favorites More