GNOME Shell extension to automatically switch between power profiles based on power supply status.
When enabled, the extension will automatically switch to:
- the selected defaults profiles based on the which power supply the device is running on.
- to power saving profile if running on battery and the percentage drops below the selected level.
This extension depends on powerprofilesctl
,
which is a part of GNOME desktop in such distros as Fedora, Ubuntu.
In case you are using another distro this dependency should be installed manually.
This extension can be found in the store.
Clone the repo, pack and install the extension.
# Clone repository
git clone https://github.com/dmy3k/auto-power-profile
cd auto-power-profile
# Build
glib-compile-schemas schemas/
gnome-extensions pack --podir=po --extra-source=ui
# Install and activate
gnome-extensions install --force [email protected]
gnome-extensions enable [email protected]
Extension will appear in the list of extensions and will be activated after you logout and log back in.
- re-generate
pot
file if you add new strings during development
xgettext \
--from-code=UTF-8 \
--package-name="Auto Power Profile" \
--output="po/auto-power-profile.pot" \
*.js \
ui/*.ui
- create (e.g
cp po/auto-power-profile.pot po/es.po
) or edit correspondingpo
files, e.g with Gtranslator - create pull request
This extensions is developed and tested on Fedora. Currrent plan is to support latest stable GNOME version with new features and bugfixes.
Contribution to this project are welcome
This project was originally forked from eliapasquali/power-profile-switcher with goal to provide better support and stability.
The extension addresses feature request #715 from GNOME Settings project.