Coder Social home page Coder Social logo

iam-arnab / batterybeep Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 6 KB

BatteryBeep is a C++ project that helps you avoid overcharging your laptop battery.

License: MIT License

CMake 7.76% C++ 92.24%
battery-management battery-notifier battery-notifica

batterybeep's Introduction

BatteryBeep

BatteryBeep is a C++ project that helps you avoid overcharging your laptop battery. It notifies you when your battery is above or equal to 85% every two minutes and only stops after you unplug the charger.

Dependencies

BatteryBeep depends on the following libraries and tools:

  • upower
  • notify-send
  • paplay

How to Use

To use BatteryBeep, follow these steps:

  1. Clone the repository: git clone https://github.com/iam-arnab/BatteryBeep.git
  2. Install the dependencies listed above.
  3. Build the project using cmake: cd BatteryBeep && mkdir build && cd build && cmake -DCMAKE_BUILD_TYPE=Release .. && make
  4. Run the executable: ./BatteryBeep

BatteryBeep will start monitoring your battery level and will notify you every two minutes if your battery is above or equal to 85%. The notifications will stop only after you unplug the charger. There are many ways of running it in background but the most preferrable will be using a desktop file and putting it in ~/.config/autostart.

[Desktop Entry]
Type=Application
Name=BatteryBeep
Comment=Plays a sound every 2 minutes if the battery level is 85% or higher
Exec=<path to executable>
Terminal=false

License

BatteryBeep is released under the MIT License. See LICENSE for more information.

batterybeep's People

Contributors

zytact avatar

Watchers

 avatar

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.