Suspend/hibernal editing GUI

Miscellaneous tools
Post Reply
Message
Author
kros54
Posts: 96
Joined: Sun 17 May 2009, 08:43
Location: member of Hungarian Puppy Linux Community
Contact:

Suspend/hibernal editing GUI

#1 Post by kros54 »

In modern computers, laptop, very easy to use tool for uspend/hibernate.
Many puplet you can do this is that it is not necessary to install the package acpitool.
(http://murga-linux.com/puppy/viewtopic.php?t=77560)

For convenience, I modified a small GUI: (bookmanshutdown.sh)

Code: Select all

#!/bin/sh
#edited by Kros54 (hibernal/suspend)
export BOOKMAN_SHUTDOWN="
<window title=\"Shutdown\" icon-name=\"gtk-preferences\" window-position=\"1\">
 <vbox>
  <hbox>
   <text>
    <label>Prompt</label>
   </text>
   <button>
    <label>Prompt</label>
    <action>exec wmexit</action>
   </button>
  </hbox>
  <hbox>
   <text>
    <label>Shutdown, save</label>
   </text>
   <button>
    <label>Poweroff</label>
    <action>exec wmpoweroff</action>
   </button>
  </hbox>
  <hbox>
   <text>
    <label>Reboot</label>
   </text>
   <button>
    <label>Reboot</label>
    <action>exec wmreboot</action>
   </button>
  </hbox>
  <hbox>
   <text>
    <label>X restart</label>
   </text>
   <button>
    <label>X restart</label>
    <action>exec restartwm</action>
   </button>
  </hbox>
  <hbox>
   <text>
    <label>Hibernal</label>
   </text>
   <button>
    <label>Hibernal</label>
    <action>exec /usr/local/bin/acpitool -s</action>
   </button>
  </hbox>
   <hbox>
   <button cancel></button>
  </hbox>

 </vbox>

</window>
"

gtkdialog3 --program=BOOKMAN_SHUTDOWN
unset BOOKMAN_SHUTDOWN
You must be copied to / usr / local / bin / folder.
Because of the path replace the desktop-file is the file shutdown.desktop.

Code: Select all

[Desktop Entry]
Encoding=UTF-8
Name=Shutdown
Name[hu]=Leállítás
Icon=/usr/local/PupShutdown/icons/shutdown48.png
Comment=Shutdown GUI
Exec=/usr/local/bin/bookmanshutdown.sh
Terminal=false
Type=Application
Categories=Utility
GenericName=Shutdown GUI
I think this is the easiest way.
Attachments
hibernal.png
(42.95 KiB) Downloaded 1503 times
Last edited by kros54 on Fri 25 Oct 2013, 13:28, edited 1 time in total.

kros54
Posts: 96
Joined: Sun 17 May 2009, 08:43
Location: member of Hungarian Puppy Linux Community
Contact:

Re: Suspend/hibernal editing GUI

#2 Post by kros54 »

false post

Post Reply