Toggle-Compositing

Plasma 4 Widgets

Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net

8
Score 67.1%
Description:

Toggle-Compositing is a little button that you can conveniently
put anywhere in your plasma panel or desktop and it allows
you to switch with ease, beetween KWin's compositing and
traditional mode.

Since 0.2.2, it needs KDE 4.2+
Last changelog:

10 years ago

[version 0.2.3]
* Fixed small-size-in-panel-after-restarting-plasma bug.

[version 0.2.2]
* 0.2.2 has no changes, other than those required for compilation under KDE 4.1.96 (4.2RC1).
It will probably not compile under older KDE versions (use 0.2.1 for these).

[version 0.2.1]

* Fixed a sizing-related bug that could
turn the app into a CPU hog

[verion 0.2]

* Ported to KDE 4.1

mrpeabody

11 years ago

Kubuntu Hardy i386:

CMake Error at /usr/share/cmake-2.6/Modules/FindKDE4.cmake:72 (MESSAGE):
ERROR: cmake/modules/FindKDE4Internal.cmake not found in
/home/mrpeabody/.kde4/share/apps;/usr/lib/kde4/share/kde4/apps
Call Stack (most recent call first):
CMakeLists.txt:3 (find_package)


CMake Warning (dev) in CMakeLists.txt:
No cmake_minimum_required command is present. A line of code such as

cmake_minimum_required(VERSION 2.6)

should be added at the top of the file. The version specified may be lower
if you wish to support older CMake versions for this project. For more
information run "cmake --help-policy CMP0000".
This warning is for project developers. Use -Wno-dev to suppress it.

-- Configuring done

Report

smihael

11 years ago

You need to install kdebase*-dev packages, I think...

Report

bigjohn60

11 years ago

now that I finally got toggle-compositing installed
it makes it easy to view full screen video. Either
my meager video card (geforce mx4000) or kde 4.1
desktop effects make full screen video very unreliable.

bob

Report

smihael

11 years ago

now finnaly works.

You are great, continue great work...

Thanks again!

Report

smihael

11 years ago

I've made Debian package (amd64 only, sorry):

http://smihael.bplaced.net/downloads/toggle-compositing_0.2.1-1_amd64.deb

Report

naegling23

11 years ago

Just curious, but what are the console commands that you are using to toggle compositing?

I wanted to add these to launch scripts for my games, but I cant find what they are. I know when I was using compiz, it was just kwin --replace, and compiz --replace. Can you let us know your details ;-)

Report

bory2201

11 years ago

That is a fabulous idea of a toggle switch on a desktop. Have you thought of making the behavior more customizable? E.g. make the user be able to choose what action to trigger - enable/disable wlan, turn compiz on/off, execute/kill custom app or just specify your own commands. Would be a great deal of opportunities!

Report

warezmen

11 years ago

I add yor plasmoid to my debian repo

deb http://amarok2deb.co.cc/debian unstable main

http://www.amarok2deb.co.cc/debian/dists/unstable/main/binary-i386/plasmoid-togglecompositing_0.3_i386.deb

Report

jesperS

11 years ago

I made some changes so it works with KDE4.1 but it's very ugly programming (don't know C++). http://rapidshare.com/files/133163273/toggle-compositing-kde4.1.tar.gz.html. This fixes the compile problems as in the above posts.

Report

C

iovar

11 years ago

You can also try
svn checkout http://ivplasma.googlecode.com/svn/toggle-compositing/ toggle-compositing-read-only

I have made the changes for 4.1 for some time now, but I haven't had the time to refine it and go for a release.

Report

jesperS

11 years ago

Thanks! Still, the button is very wide when I place it in my bar, is there something that I can do about it?

Report

google01103

11 years ago

how about a 3-way switch?

Report

smihael

11 years ago

Hi I found this very usefull, but i get following error while compiling (cmake ../ works normally).
Quote:$ make
Generating confirmation_dialog.moc
Generating toggle_compositing.moc
Generating ktimerdialog.moc
Scanning dependencies of target plasma_applet_toggle_compositing
[ 25%] Building CXX object CMakeFiles/plasma_applet_toggle_compositing.dir/plasma_applet_toggle_compositing_automoc.o
[ 50%] Building CXX object CMakeFiles/plasma_applet_toggle_compositing.dir/toggle_compositing.o
/home/mihas/compoziting/toggle_compositing.cpp: In constructor ‘ToggleCompositing::ToggleCompositing(QObject*, const QVariantList&)’:
/home/mihas/compoziting/toggle_compositing.cpp:49: error: ‘setContentSize’ was not declared in this scope
/home/mihas/compoziting/toggle_compositing.cpp:51: error: no matching function for call to ‘Plasma::Svg::Svg(const char [21])’
/usr/include/plasma/svg.h:72: note: candidates are: Plasma::Svg::Svg(QObject*)
/usr/include/plasma/svg.h:48: note: Plasma::Svg::Svg(const Plasma::Svg&)
/home/mihas/compoziting/toggle_compositing.cpp: In member function ‘QSizeF ToggleCompositing::contentSizeHint() const’:
/home/mihas/compoziting/toggle_compositing.cpp:83: error: ‘contentSize’ was not declared in this scope
/home/mihas/compoziting/toggle_compositing.cpp: In member function ‘virtual void ToggleCompositing::mousePressEvent(QGraphicsSceneMouseEvent*)’:
/home/mihas/compoziting/toggle_compositing.cpp:169: error: ‘contentRect’ was not declared in this scope
/home/mihas/compoziting/toggle_compositing.cpp: In member function ‘virtual void ToggleCompositing::paintInterface(QPainter*, const QStyleOptionGraphicsItem*, const QRect&)’:
/home/mihas/compoziting/toggle_compositing.cpp:186: error: ‘contentSize’ was not declared in this scope
make[2]: *** [CMakeFiles/plasma_applet_toggle_compositing.dir/toggle_compositing.o] Error 1
make[1]: *** [CMakeFiles/plasma_applet_toggle_compositing.dir/all] Error 2
make: *** [all] Error 2

Report

smihael

11 years ago

I am using KDE 4.00.74

Quote:$ kde4-config --version
Qt: 4.4.0
KDE: 4.00.74 (KDE 4.0.73 >= 20080515
kde4-config: 1.0

Report

Shirakawasuna

11 years ago

I receive this same error with kde 4.1 + qt 4.4.1

Report

smihael

11 years ago

I am using KDE 4.00.74

Quote:$ kde4-config --version
Qt: 4.4.0
KDE: 4.00.74 (KDE 4.0.73 >= 20080515
kde4-config: 1.0

Report

jmthomas

11 years ago

I packaged this and uploaded it to my PPA. Add this to your repository list:

deb http://ppa.launchpad.net/echidnaman/ubuntu hardy main

Then "sudo apt-get install toggle-compositing"

Report

jmthomas

11 years ago

..oh yeah, you have to apt-get update before apt-get installing, but if you're just using adept it'll take care of that stuff for you.

Report

thesupermadman

11 years ago

This is an excelent tool. Very useful for when I'm running 3D applications.

Report

jmthomas

11 years ago

Extremely useful!
Some Wine programs crap out with compositing open, and I always need the extra performance while playing games.

Report

codertux

11 years ago

nice one! turning off the desktop effects while playing was always a pain for me :)
thanks!

Report

buschmann23

11 years ago

I have build packages for openSUSE 10.2 and newer, which can be found here:
http://software.opensuse.org/search?baseproject=ALL&p=1&q=kde4-plasmoid-toggle_compositing

Report

C

iovar

11 years ago

Thanks, I've added the link on the download section
(for am3rok and netgraph, too :)

Report

enzobelmont

11 years ago

no ofence, Useless, but very nice job.

maybe you should try a plasma theme changer button??? or some more usefull.

thanks for your effort, it will make kde4 full of options.

Report

PhinnFort

11 years ago

you replying here is even more useless, and I hope I won't have to mention the recursive uselesness of my post =)

Report

10 years ago

[version 0.2.3]
* Fixed small-size-in-panel-after-restarting-plasma bug.

[version 0.2.2]
* 0.2.2 has no changes, other than those required for compilation under KDE 4.1.96 (4.2RC1).
It will probably not compile under older KDE versions (use 0.2.1 for these).

[version 0.2.1]

* Fixed a sizing-related bug that could
turn the app into a CPU hog

[verion 0.2]

* Ported to KDE 4.1

12345678910
3
product-maker axanon Mar 17 2012 9 excellent
product-maker Okanda Jun 29 2011 9 excellent
product-maker agaya Mar 29 2011 9 excellent
product-maker Base: 4 x 5.0 Ratings
aidamos
Sep 08 2010
vejha
Dec 12 2009
Gerardo
Apr 29 2009
universe777
Apr 18 2009
panzi
Apr 08 2009
Montblanc
Mar 27 2009
s1300045
Mar 08 2009
cesorensen
Feb 26 2009
File (click to download) Version Description Downloads Date Filesize DL OCS-Install MD5SUM
*Needs ocs-url or ocs-store to install things
Pling
0 Affiliates
Details
license
version
0.2.3
updated Jan 29 2009
added Apr 03 2008
downloads 24h
0
pageviews 24h 4