Giter Club home page Giter Club logo

powerapplet_tray's Introduction

powerapplet_tray

This is a modified version of powerapplet_tray 2.6 that includes /sys/class/power_supply as a source for battery stats in addition to /proc/acpi, and /proc/apm.

This is just a make-it-work-dammit, so don't expect this to be 100% stable.

I would base this on powerapplet_tray 2.7.2, but I can't find the source for the life of me! :P

This was designed for my MacBook (13", Mid-2009) on Slacko64-6.3.2, which didn't properly report ACPI stats. As a result, there was no battery icon in the tray.

I have also rearranged some code, added a few error checks, and added comments, including one of the most complicated Bash one-liners in history.

Compiling and building

If you are compiling this on Puppy, you need the devx libs.

Compiling

cd /path/to/powerapplet_tray
./compile
cp *.svg /usr/share/pixmaps/puppy/

Testing

./powerapplet_tray

Installing

cp powerapplet_tray /usr/bin/

License

Copyright (C) 2010 Barry Kauler, bkhome.org

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

powerapplet_tray's People

Contributors

easyaspi314 avatar

Watchers

 avatar  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.