View Single Post
qole's Avatar
Moderator | Posts: 7,109 | Thanked: 8,820 times | Joined on Oct 2007 @ Vancouver, BC, Canada
#46
Thank-you Austin, I got it working for my purposes. Here is my powerlaunch.conf file:

Code:
[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"
This makes the power-fullscreen key combo toggle any app to fullscreen (using Debian wmctrl), and the power-menu key combo toggle the matchbox-keyboard (using the mbk script that kills the keyboard if it is running or starts it if it isn't running).

I use the "wait..." banner just in case it takes a minute to fire up the chroot environment (it never has taken long on my system), and I use the post-execution banner to announce that something has (or should have) happened.

Just a question: You have the following example line in your config:
Code:
key_left = call common.powerlaunch.reload; banner "Powerlaunch reloaded"
This announces that powerlaunch has reloaded, but changes in my config file do not take effect.
__________________
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-29 at 03:25.