This forum has been archived. All content is frozen. Please use KDE Discuss instead.

[SOLVED] Controlling desktop effects by other programs

Tags: kwin, dbus kwin, dbus kwin, dbus
(comma "," separated)
revelation
Registered Member
Posts
6
Karma
0
OS
Hi all!

I want to control my computer using a remote control. It would be handy to use kwin's zoom effect to see what's happening on the desktop when I lie on my bed. ;-)
Unfortunately, I was not able to find a command or dbus-interface to enable/disable the effect or to control it.

Does anyone know how to do that?

Thank you very much!

Johannes

Last edited by revelation on Thu Oct 16, 2008 3:01 pm, edited 1 time in total.


revelation, proud to be a member of KDE forums since 2008-Oct.
User avatar
JontheEchinda
KDE Developer
Posts
309
Karma
4
OS
There is a plasmoid that will do that. It's called the Toggle Compositing plasmoid. I know Kubuntu 8.10 has packages and I think Open SuSE does too.
...but even this plasmoid edits kwinrc and reloads the config to enable compositing:

Code: Select all
    QDBusMessage message = QDBusMessage::createSignal("/KWin",
                                                      "org.kde.KWin",
                                                      "reloadConfig");
    QDBusConnection::sessionBus().send(message);


JontheEchinda, proud to be a member of the Kubuntu team since July 2008.
Image
Image
revelation
Registered Member
Posts
6
Karma
0
OS
Thank you for your answer, but that does not solve my problem...
I want zoom in/out by pressing buttons of my remote control.

My last idea was to set up global shortcuts like CTRL-ALT-+ and simulate these on pressed remote buttons. I've tried to use irxevent, but KWin seems to ignore the generated events...

The relevant part of my lircrc looks like the following:

Code: Select all
begin
    prog = irxevent
    button = snapshot
    config = Key ctrl-alt-KP_Add RootWindow
end


Has anyone solved this?


revelation, proud to be a member of KDE forums since 2008-Oct.
Seli
Registered Member
Posts
7
Karma
0
revelation wrote:Thank you for your answer, but that does not solve my problem...
I want zoom in/out by pressing buttons of my remote control.

My last idea was to set up global shortcuts like CTRL-ALT-+ and simulate these on pressed remote buttons. I've tried to use irxevent, but KWin seems to ignore the generated events...

The relevant part of my lircrc looks like the following:

Code: Select all
begin
    prog = irxevent
    button = snapshot
    config = Key ctrl-alt-KP_Add RootWindow
end


Has anyone solved this?


You can use xsendkeys from the lineakd package to send fake keyboard events that should work even with global shortcuts.
revelation
Registered Member
Posts
6
Karma
0
OS
Thank you very, very much, Seli! That works perfectly! :-)

You made my day! ;-)


revelation, proud to be a member of KDE forums since 2008-Oct.


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Google [Bot], Yahoo [Bot]