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.
gnome-session-quit
, just with different options. While the OP may well decide the options in that other question are better, they don't address his specific need to see the shut down confirm screen. – thomasrutter Sep 09 '14 at 00:21