Score:0

Is there a way to change the Gnome power off prompt so it has more option

cn flag

When you click on "power off", you only get three options: cancel, power off and restart.

I was wondering if you can change it so there are more options like "suspend" or "log out" Like seen here

like seen here

br flag
Your version of Ubuntu??
guiverc avatar
cn flag
GNOME by design will change the options when for example you hold down <ALT> or keys... I'm no fan of if, but it was seen as *clean* (many options; keeping it *clean & simple* is in). Note: I'm going from memory; I'm not a GNOME user by choice.
Kyle kim avatar
cn flag
I'm using 20.04
Score:0
us flag

Yes, You can !

There is an extension available for Gnome

https://extensions.gnome.org/extension/3070/simpler-off-menu/

This enables, once installed, the suspend and hibernate options.

As @guiverc also pointed out in the comments, You can also change the function of some buttons while holding "ALT" in Gnome.

Score:0
de flag

I presume you are using Gnome. You may install the Gnome extension - Bring Out Submenu Of Power Off/Logout Button for getting more options.

Score:0
cn flag

You already see some workarounds in other answers. I just wanted to answer the actual question, whether you can change the dialog. No, not easily without editing source code.

The exit dialog is actually provided by the tool gnome-session-quit. Called without arguments, it will display the "Log Out" dialog. It can also be called with the options --power-off or --reboot. In Ubuntu It is not designed to present multiple options.

In Ubuntu 18.04, the --power-off option indeed also presents a "Restart" button. In later versions, also --power-off only does what it is designed to do: offer a "Power Off" prompt.

So no, there is no easy way to change the dialog. You would need to replace the gnome-session-quit binary with your own custom version, or change Gnome Shell (e.g. through a Gnome Shell extension) to call a custom dialog.

In the mean time, the options are available for mouse users in the user menu. Power users may find it faster to hit super then type "Shut", or "Rebo" or "Logo" then hit Enter to activate the respective option.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.