Suspend/hibernal editing GUI
Posted: Fri 25 Oct 2013, 06:59
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)
You must be copied to / usr / local / bin / folder.
Because of the path replace the desktop-file is the file shutdown.desktop.
I think this is the easiest way.
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
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