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;
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.
0 Comments