I would like to specify that when I press the power button in my laptop, a 'shutdown -h now' command is sent, instead of bringing up the graphical shutdown menu. How can I do that on Ubuntu 11.10?
That's simple enough. When you press the power button a ACPI event triggers the script at
You can edit that to just run