Git Product home page Git Product logo

gnome-shell-batime's People

Contributors

eeems avatar mershl avatar mzur avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

gnome-shell-batime's Issues

Duplicate Battery Status Icons after restart

Screenshot from 2023-07-13 11-41-32

I have weird issue where if I restart my laptop, the original battery icon no longer gets replaced and the extension starts adding duplicate battery icons to the status bar.

OS: Ubuntu 22.04.2 LTS
Device: Dell XPS 9300
GNOME version: 42.9
Extension version: 11

Will not load on Gnome 3.32

It seems that Gnome 3.32 broke this extension - it will not load and simply produces the following error message:

Extension "[email protected]" had error: TypeError: this._construct is not a function

Shows "Estimating..." when fully charged

The label shows "Estimating..." although the battery is fully charged. The dropdown menu says "Fully Charged" so it should be possible to detect this state. Make the label disappear in this case.

Gnome 43 Support

Hi @mzur,

This time around it does not seem sufficient to just add 43 to the supported set of versions.

Latest gnome-shell-batime errors out on startup on Gnome 43:

gnome-shell[1742]: JS ERROR: Extension [email protected]: TypeError: this.aggregateMenu is undefined
                                               BaTimeExtension@/var/home/mershl/.local/share/gnome-shell/extensions/[email protected]/extension.js:8:7
                                               enable@/var/home/mershl/.local/share/gnome-shell/extensions/[email protected]/extension.js:26:13
                                               _callExtensionEnable@resource:///org/gnome/shell/ui/extensionSystem.js:184:32
                                               loadExtension@resource:///org/gnome/shell/ui/extensionSystem.js:385:26
                                               _loadExtensions/<@resource:///org/gnome/shell/ui/extensionSystem.js:633:18
                                               collectFromDatadirs@resource:///org/gnome/shell/misc/fileUtils.js:28:28
                                               _loadExtensions@resource:///org/gnome/shell/ui/extensionSystem.js:612:19
                                               _enableAllExtensions@resource:///org/gnome/shell/ui/extensionSystem.js:639:18
                                               _sessionUpdated@resource:///org/gnome/shell/ui/extensionSystem.js:659:14
                                               init@resource:///org/gnome/shell/ui/extensionSystem.js:57:14
                                               _initializeUI@resource:///org/gnome/shell/ui/main.js:309:22
                                               start@resource:///org/gnome/shell/ui/main.js:186:5
                                               @resource:///org/gnome/shell/ui/init.js:6:17

Request: both battery time and percentage

Great extension, thank you! It would be great to have both percentage and time remaining (to fully charge or discharge, depending on whether we're on AC power) available. Like so:

  • When discharging, both time remaining and percentage
  • When charging, both time remaining to full charge and percentage
  • When at 100% and on AC, only percentage

Support gnome 3.38

Thanks for making this extension! I am running GNOME Shell 3.38.3 on PopOS (Ubuntu clone) and the extension is not working for me. It installs without errors, but only adds a small space in the top bar (noticeable because the battery icons switches position slightly when the extension is enabled). In the dropdown menu on the gnome shell extensions home page I noticed that there is no version for 3.38, is this why it is not working for me or should the older/newer versions work on 3.38 as well?

Small font on F31 (Gnome 3.34)

Hello,

If this is intentional, this can be closed or seen as a feature request.
The used font of battery time is smaller than the rest of the panel which looks kind of odd, see screenshot below.

Seen behaviour: Battery time seems to be using the default percentage font/font size which is smaller than the rest of the panel.
Expected behaviour: Battery time uses the same font/font size as the rest of the panel or allows the configuration to do so.

Tested on: Fedora 31 (Gnome 3.34)

image

gnome 45 update?

Can you update this wonderful extension for gnome 45 please ?

Gnome 3.36 support

Error when loading on Gnome 3.36

Mar 09 12:56:57 travis-x1-carbon gnome-shell[1608]: JS ERROR: Extension [email protected]: Error: Tried to construct an object without a GType; are you using GObject.registerClass() when inheriting from a GObject type?
                                                    Indicator@/home/travis/.local/share/gnome-shell/extensions/[email protected]/power.js:5:49
                                                    BaTimeExtension@/home/travis/.local/share/gnome-shell/extensions/[email protected]/extension.js:9:30
                                                    enable@/home/travis/.local/share/gnome-shell/extensions/[email protected]/extension.js:26:13
                                                    _callExtensionEnable@resource:///org/gnome/shell/ui/extensionSystem.js:160:32
                                                    loadExtension@resource:///org/gnome/shell/ui/extensionSystem.js:311:26
                                                    _loadExtensions/<@resource:///org/gnome/shell/ui/extensionSystem.js:536:18
                                                    collectFromDatadirs@resource:///org/gnome/shell/misc/fileUtils.js:27:17
                                                    _loadExtensions@resource:///org/gnome/shell/ui/extensionSystem.js:515:19
                                                    _enableAllExtensions@resource:///org/gnome/shell/ui/extensionSystem.js:545:18
                                                    _sessionUpdated@resource:///org/gnome/shell/ui/extensionSystem.js:576:18
                                                    init@resource:///org/gnome/shell/ui/extensionSystem.js:54:14
                                                    _initializeUI@resource:///org/gnome/shell/ui/main.js:244:22
                                                    start@resource:///org/gnome/shell/ui/main.js:138:5
                                                    @<main>:1:47

Option to show both time remaining and percentage in the top bar

This extension is really helpful. For it to be perfect I think it's missing the ability to display both percentage and time remaining in the top bar. For example: "35 % (2:44)" or "2:44 (35%)".

Would that be something you could consider adding? Thanks for your work anyways!

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.