- If you use a hibernate icon on your window manager's panel/desktop etc. it is nice to get a confirmation dialog that lets you choose if you actually want to supend/hibernate. The following script asks for confirmation with a small window and executes hibernate only if the user chooses "Yes":
#!/bin/sh xmessage "Really hibernate?" -buttons Yes:2,No:3 -default No -nearmouse if [ $? = "2" ]; then hibernate fi
Save this script to a file (/usr/local/bin/hiberconfirm.sh for example) and then make the icon/launcher etc. start this file.
Don't forget to chmod +x /usr/local/bin/hiberconfirm.sh first!




