10

I recently installed Ubuntu 20.04 LTS on my laptop and I noticed that I no longer have the Power Off button but rather a menu that I need to click on and then I need to click on Power Off... and then Power Off. Is there a way to get the button back?

pomsky
  • 68,507
F. Gil
  • 158

3 Answers3

10

You may use this extension which brings out the submenu and rearrange the order.

Bring Out Sub Menu Extension

enter image description here

If you need installation Instructions..

  1. Download the Extension from the above link like this.
    enter image description here

  2. Go to the downloaded location/Directory/path.

  3. Right-click in the empty place and click "Open in Terminal"

  4. run the command

    gnome-extensions install BringOutSubmenuOfPowerOffLogoutButtonpratap.fastmail.fm.v5.shell-extension.zip
    

    (Note that tab completion is available, you dont need to type entire file name, Just type "BringOut" and hit tab)

  5. Refresh the gnome-shell with "Alt+F2 r" Enter method.

  6. run the command

    gnome-extensions enable BringOutSubmenuOfPowerOffLogoutButton@pratap.fastmail.fm
    
  7. Refresh the gnome-shell with "Alt+F2 r" Enter method.

Now you will see the submenu out of it and merged with system menu.

PRATAP
  • 22,460
2

If the problem is the numerous clicks to get to the Power-off button, you may create a keyboard shortcut linked to gnome-session-quit --power-off. It's even quicker than using the menu.

  1. Open Settings/Keyboard Shortcuts
  2. Go to the end of the list and press the "+" sign
  3. Under Name I entered Power off, but more importantly enter the above mentioned command as the one to run.
  4. Choose a shortcut of your choice. I chose Super + Alt + Down Arrow
To Do
  • 15,502
0

You can install Bring Out Submenu Of Power Off/Logout Button by pratap@fastmail.fm via extension-manager. Just find the extension and install it within app

sudo apt update
sudo apt install gnome-shell-extension-manager
sergol
  • 141
  • 3