When I hit the power button on my laptop (Ubuntu 14.04.1 without any modifications), I receive a pop window saying
Goodbye, what would you like to do?
Lock Suspend Restart Shutdown
How can I get this screen through command-line or a script?
Addition: The linked question mentions gnome-session-quit but this does not produce the overlay specified above: the accepted answer performs the desired behavior.