ratpower.sh: a power menu for ratpoison

I’ve started to use ratpoison on my netbook. I’ve made a script that displays a menu of power-related actions and the current state of the battery. Here is a screenshot:

The script uses ratmenu to actually display the menu and uses dbus to send signals.

download ratpower.sh