Giter Site home page Giter Site logo

powerplan's Introduction

powerplan

power management for windows. Autocheck launched apps. Manage via the system tray icon.

Overview:

Overview

This tool allow manually switch existing power plans and AUTO switch power plans by autochecking launched applications.

Main Usage:

MainUsage

Requirements:

Python 3

pip install pystray, psutil, winsound

Install:

A. List existing power schemas by call:powercfg -list in cmd shell or Windows PowerShell. Check schema names.

B. Edit powerplan.cfg file. Fill [Plans] section by power schema names: short_name_for_find = long_name_for_display_in_menu. Fill [Applications] section by: application.exe = power_level_index. Level index is ordered in [Plans].

C. Open cmd shell or Windows PowerShell. Test execution of script:

>python.exe "_path_to_powerplan_dir_\powerplan.py"

Be sure u have no errors, just information output. Find new icon on system tray, choose exit.

D. Main call through pythonw:

>pythonw.exe "_path_to_powerplan_dir_\powerplan.py" -hide

Test autoswitch of schemas by launching and stopping application, specified on [Applications] section.

E. Open windows scheduler, create new task with trigger: logon, and action: start program from previous step.

F. A lot of info in powerplan.cfg file

Config example:

powercfg -list:

  • GUID схемы питания: 381b4222-f694-41f0-9685-ff5bb260df2e (Сбалансированная) *
  • GUID схемы питания: 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c (Высокая производительность)
  • GUID схемы питания: a1841308-3541-4fab-bc81-f71556f20b4a (Экономия энергии)

Translated to [Plans] section:

  • Экон = Экономный
  • Сбал = Сбалансированный
  • Высок = Высок.производительность

(Экон = Economy, Сбал = Balanced, Высок = Performance) in russian

Issues:

Config file location is set up in line 18: config.read(sys.path[0] + '\powerplan.cfg') #

Font set up in file 'powerplan_image.py', line 51

powerplan's People

Contributors

elijivp avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

upsideumop

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.