You are not logged in.

#1 2015-05-29 17:20:28

Huugin
Member
Registered: 2013-03-09
Posts: 9

[SOLVED]Gnome power: suspend, sleep, shutdown buttons

I just installed gnome, and I'm at a loss at how to sleep my computer.  When I press the desktop power button, it only gives me three options: "cancel", "restart", "power off".  What if I just want to sleep the computer, and what if I would like to do this through the desktop environment (as opposed to terminal)?

Thanks smile

Last edited by Huugin (2015-05-31 09:52:37)

Offline

#2 2015-05-29 22:01:39

bnb2235
Member
Registered: 2011-02-13
Posts: 119

Re: [SOLVED]Gnome power: suspend, sleep, shutdown buttons

Press the power button, and then press the ALT key. This will give you suspend. You are welcome to the little gnome-exit script I hacked from the internet... I have a ctrl-alt-del keybinding to the script

#!/bin/sh

# File Name: gnome-exit
# Purpose: exit script for gnome-shell
# depends on faenza-icon-theme for icons
# depends on gtkdialog
# Latest Change: 10-21-2014
######################################################################################################

#!/bin/sh

export Logout='


<window window_position="1" title="Log Out" icon-name="exit" resizable="false">
<vbox>
  <frame>
  <hbox>
	<vbox>
	  <hbox>
		<button>
		<height>48</height>
		<width>48</width>
		<label>"Lock Screen  "</label>
		<input file>"/usr/share/icons/Faenza-Darker/actions/48/gnome-lockscreen.png"</input>
		<action>gnome-screensaver-command -l</action>
        <action>EXIT:close</action>
		</button>
      </hbox>
	  <hbox>
		<button>
		<height>48</height>
		<width>48</width>
		<label>"Suspend        "</label>
		<input file>"/usr/share/icons/Faenza-Dark/apps/48/system-suspend.png"</input>
		<action>systemctl suspend -i</action>
        <action>EXIT:close</action>
		</button>
	  </hbox>
	  <hbox>
		<button>
		<height>48</height>
		<width>48</width>
		<label>"Log Out         "</label>
		<input file>"/usr/share/icons/Faenza-Dark/apps/48/gnome-session-logout.png"</input>
		<action>gnome-session-quit</action>
		</button>
         </hbox>
	  <hbox>
		<button>
		<height>48</height>
		<width>48</width>
		<label>"Shutdown     "</label>
		<input file>"/usr/share/icons/Faenza-Dark/actions/48/system-shutdown.png"</input>
		<action>gnome-session-quit --power-off</action>
		</button>
	  </hbox>
	  <hbox>
		<button>
		<height>48</height>
		<width>48</width>
		<label>"Task Manager"</label>
		<input file>"/usr/share/icons/Faenza/apps/48/gnome-system-monitor.png"</input>
		<action>gnome-system-monitor & </action>
        <action>EXIT:close</action>
                </button>
	  </hbox>
	  <hbox>
		<button>
		<height>48</height>
		<width>48</width>
		<label>"Cancel           "</label>
		<input file>"/usr/share/icons/Faenza-Darker/actions/48/application-exit.png"</input>
		<action>EXIT:close</action>
                </button>
	  </hbox>
	</vbox>
  </hbox>
  </frame>
  </vbox>
</window>
'

gtkdialog --program=Logout
unset Logout

Offline

#3 2015-05-31 09:52:21

Huugin
Member
Registered: 2013-03-09
Posts: 9

Re: [SOLVED]Gnome power: suspend, sleep, shutdown buttons

Thank you smile

Offline

Board footer

Powered by FluxBB