I would like the computer to shut down directly after I press the power button. At the moment, Lubuntu opens a shutdown method dialog box when I press the shutdown button.
I suspect I can simply modify the Lubuntu-rc.xml file in the .config/openbox/ folder. I used that file to easily change other shortcut keys. If this is the case, I believe I have found the proper line of code where the shutdown command should be. But when I enter the command "sudo shutdown - now" in the appropriate place, it doesn't work. Is there another command I should enter for the physical power button to shutdown the computer immediately?
`<!-- Launch logout when push on the shutdown button --> <keybind key="XF86PowerOff"> <action name="Execute"> <command>lxsession-default quit</command> </action> </keybind>`