Thread
:
[Announce] Queen BeeCon Widget: Super powerful and customizable Widget Generation Engine - Official Thread
View Single Post
Psioneer
2010-12-25 , 12:33
Posts: 5 | Thanked: 2 times | Joined on Dec 2010
#
1023
I would like to execute a widget by pressing the power button. But my tests didn't succeed.
I'm able to trigger the power button with dbuscron or dbus-scripts.
dbuscron example:
(bus, message_type, source, interface, object_path, member, destination, arguments, command)
S signal * org.freedesktop.Hal.Device /org/freedesktop/Hal/devices/computer_logicaldev_input Condition * ButtonPressed;power /execute/some/script.sh
dbus-scripts example taken from powerlock:
/execute/some/script.sh * /org/freedesktop/Hal/devices/computer_logicaldev_input null org.freedesktop.Hal.Device Condition ButtonPressed power
For my (obviously wrong) understanding the match rule in QBW should look something like:
type='signal',interface='org.freedesktop.HAL.Devic e',member='Condition',path='/org/freedesktop/HAL/devices/computer_logicaldev_input',arg0='ButtonPressed',ar g1='power'
Unfortunately all my tests failed. I tested with different variations (entering/leaving wildcards, playing around with member and arguments, etc.), but didn't succeed.
I need a hint, how to adjust the match rule...
Quote & Reply
|
Psioneer
View Public Profile
Send a private message to Psioneer
Find all posts by Psioneer