Hi,
[email protected] wrote:
Bart Samwel wrote (17 Feb 2009 19:33:49 GMT) :
It's a nice suggestion, but this one I can't accept. The problem is
that acpi-support isn't supposed to do this kind of thing. It simply
translates the hardware key press into a virtual button, and the
user's desktop environment (which can basically be *anything* in
Debian) is supposed to handle the key and respond. So the proper way
to do this, is to convince somebody in the desktop environments game
to add a handler for this hotkey, just like there are handlers for
video brightness buttons, sound and even for things like suspending.
Oh. Since acpi-support already handled locking screen with
xscreensaver, KDE and al, I thought this was the right place to
implement such a behaviour. Anyway, I guess you're the one who
knows better.
It's not so strange that you assumed that. The acpi-support package has
two major components which are going to be split into separate packages
eventually:
1. Hotkey translation
2. Suspend
The xscreensaver etc. stuff is part of (2), which does a lot of work.
Your script is part of (1), which should really be as simple as
possible. Of course you can change it to do what you want, all the
scripts are config files. But the design of the package is simply that
it translates hardware specific hotkeys into generic ones -- nothing
more, nothing less. :-)
Cheers,
Bart
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]