Skip to content

Gnome extension to automatically switch between power profiles based on power supply.

License

Notifications You must be signed in to change notification settings

dmy3k/auto-power-profile

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Auto Power Profile

GNOME Shell extension to automatically switch between power profiles based on power supply status.

Tests

Settings

Settings window

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.

Installation

Dependencies

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.

From Gnome Extensions store

This extension can be found in the store.

Get it on GNOME Extensions

Installation from source

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.

Translations

  • 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 corresponding po files, e.g with Gtranslator
  • create pull request

GNOME Version Support

This extensions is developed and tested on Fedora. Currrent plan is to support latest stable GNOME version with new features and bugfixes.

Contribution

Contribution to this project are welcome

Credits

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.

About

Gnome extension to automatically switch between power profiles based on power supply.

Resources

License

Stars

Watchers

Forks

Packages

No packages published