![]() |
2008-07-28
, 12:27
|
Posts: 34 |
Thanked: 21 times |
Joined on Feb 2008
|
#42
|
This is what I want to do. I want to execute non-dbus apps and shell scripts with hardware keys. However, I can't figure out from your example config files how you actually do this. Can you expand upon the "key_up = exec osso-xterm" example you gave above?
Let's say I want to execute a script, "/usr/bin/script1" by hitting the middle button on the d-pad ("key_press_select"?), and I want to execute another script, "/sbin/script2 -g param1 -k param2 param3" when I hit the fullscreen button ("key_press_fullscreen"?). How would I do this? Which config file would I modify? Is there a way to put these commands into a separate .conf file?
[main] on_init = call common.init.main; inherit systemui.ui; call systemui.ui.layout; call mce.init.main key_select = exec "/usr/bin/script1" key_fullscreen = exec "/sbin/script2 -g param1 -k param2 param3"
The Following User Says Thank You to austin For This Useful Post: | ||
![]() |
2008-07-28
, 19:19
|
|
Moderator |
Posts: 7,109 |
Thanked: 8,820 times |
Joined on Oct 2007
@ Vancouver, BC, Canada
|
#43
|
![]() |
2008-07-28
, 19:33
|
Posts: 34 |
Thanked: 21 times |
Joined on Feb 2008
|
#44
|
The Following User Says Thank You to austin For This Useful Post: | ||
![]() |
2008-07-28
, 19:46
|
|
Moderator |
Posts: 7,109 |
Thanked: 8,820 times |
Joined on Oct 2007
@ Vancouver, BC, Canada
|
#45
|
![]() |
2008-07-29
, 03:23
|
|
Moderator |
Posts: 7,109 |
Thanked: 8,820 times |
Joined on Oct 2007
@ Vancouver, BC, Canada
|
#46
|
[main] on_init = call common.init.main; inherit systemui.ui; call systemui.ui.layout; call mce.init.main key_menu = hide; banner "wait..."; exec "/usr/bin/mbk"; banner "keyboard toggle" key_fullscreen = hide; banner "wait..."; exec "sudo /sbin/debian wmctrl -r :ACTIVE: -b toggle,fullscreen"; banner "fullscreen toggle"
key_left = call common.powerlaunch.reload; banner "Powerlaunch reloaded"
![]() |
2008-09-27
, 20:05
|
|
Moderator |
Posts: 7,109 |
Thanked: 8,820 times |
Joined on Oct 2007
@ Vancouver, BC, Canada
|
#47
|
![]() |
2008-09-29
, 03:30
|
Posts: 34 |
Thanked: 21 times |
Joined on Feb 2008
|
#48
|
The Following 4 Users Say Thank You to austin For This Useful Post: | ||
![]() |
2008-11-13
, 21:15
|
Posts: 34 |
Thanked: 21 times |
Joined on Feb 2008
|
#49
|
![]() |
2008-11-13
, 22:29
|
|
Moderator |
Posts: 7,109 |
Thanked: 8,820 times |
Joined on Oct 2007
@ Vancouver, BC, Canada
|
#50
|
Let's say I want to execute a script, "/usr/bin/script1" by hitting the middle button on the d-pad ("key_press_select"?), and I want to execute another script, "/sbin/script2 -g param1 -k param2 param3" when I hit the fullscreen button ("key_press_fullscreen"?). How would I do this? Which config file would I modify? Is there a way to put these commands into a separate .conf file?
Thanks in advance...
qole.org --- twitter --- Easy Debian wiki page
Please don't send me a private message, post to the appropriate thread.
Thank you all for your donations!
Last edited by qole; 2008-07-27 at 23:18.