roberth-k / gnome-shell-extension-battery_status Goto Github PK
View Code? Open in Web Editor NEWLicense: GNU General Public License v2.0
License: GNU General Public License v2.0
Great extension. It replaces an older one that I haven't been able to use since it is no longer compatible. As the title suggests, I would appreciate an option to show icon, percentage and time all at once. Thanks for the consideration.
Hi, on my laptop I have issues with acpi, battery never get state FULL, it is only "charging" on AC and when it hit 100%, state changes to "discharging" and that`s it. As a result, option to hide time or % on FULL state never trigger and when on AC with 100% battery, I see weird time like 19 hours left.
So as workaround, maybe you could check % for fullness, and not state. I change extension.js, idk if it is right or not, but it works for me at least (I check for 95% though, it is more convenient for me):
case UPower.DeviceState.PENDING_DISCHARGE:
case UPower.DeviceState.DISCHARGING:
if (per_c > 95) {
update_visible(cfg.whenFull);
if (label_visible) {
text = format_percent(per_c);
}
} else {
update_visible('all');
if (label_visible) {
text = format_label(per_c, tte_s);
}
}
break;
This extension does not work with Gnome 3.20, which has been released for a few weeks. Please update it for 3.20!
A couple of quirky display requests. on line 170 in extension.js, to format the 'canonical' time, you have it calling "%d%s%02d%s".format(hrs, hr_chr, hr_mins, min_chr);
could that first %d be changed to %02d so we get the full HH effect? so "%02d%s%02d%s".format(hrs, hr_chr, hr_mins, min_chr);
?
Also, when the line is actually set (line 300, could we add a space?) I have my Icon set to show percentage, and without the space, everything shows as too close together.
Hey @milliburn,
Really wonderful extension!
Wondering if you can support changing the brightness (as a direct influence on battery life) by mouse scrolling over the battery icon?
Deem it useful?
Thanks!
The time-to-empty displayed by this extension is simply adding up two battery's time-to-empty,
but this value is higher than what it should be.
Most dual-battery laptops will use a battery first, until it's empty, then another.
When a battery is not on use, it's time-to-empty will become very big, because of a lower denominator.
The correct way to do this should be adding up the capacity of the batteries, then divide by the current power wattage.
Hi!
When the notebook is plugged in and fully charged "??" appears to the right of the power icon, like you'll see here: http://i.imgur.com/sGfNOnE.png
Observed on Ubuntu Gnome 14.04 with Gnome 3 (3.10) stable PPA.
Best wishes!
Please update this for gnome shell 3.22. I am really missing this.
thanks
Hi, thanks for your work for this extension.
Can you add an option for both time and percentage in display mode?
Thank you very much.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.