This version of the extension works on desktops and laptops instead of just laptops. Many people had problems getting RaphaelKimmig's extension to work on desktops because gnome-shell on dekstops doesn't have a battery indicator, so I changed the switch to be under the userMenu under the power off option. Hope you enjoy. This extension is an edited version of the extension made by RaphaelKimmig.
Note: Binary files aren't shown on the web site. To see all files, please download the extension zipfile.
Sorry, you cannot use GSettings with locally installed extensions in 3.2. You need to change the supported version (and access GSettings through GSettingsSchemaSource) or replace its usage with something else (eg. GKeyFile, JSON).