Giter VIP home page Giter VIP logo

gnome-46-shell-ext-show-battery's Introduction

 ____        _     _                   _   ____  _                            
| __ )  __ _| |_  | |    _____   _____| | / ___|| |__   _____      _____ _ __ 
|  _ \ / _` | __| | |   / _ \ \ / / _ \ | \___ \| '_ \ / _ \ \ /\ / / _ \ '__|
| |_) | (_| | |_  | |__|  __/\ V /  __/ |  ___) | | | | (_) \ V  V /  __/ |   
|____/ \__,_|\__| |_____\___| \_/ \___|_| |____/|_| |_|\___/ \_/\_/ \___|_|   
                                                                              
screenhot

This project solves to problem to see the battery level of a MacOS laptop from inside a VM which runs with Gnome 46.

The project contains of two parts.

  • A Go-based user agent to provide the battery level
  • A Gnome extension for displaying

As of 2024-05 showing the hosts's battery level is not yet supported with UTM/qemu. For the communication a simple file is used which needs to be accessible from both the MacOS host and the Gnome 46 shell.

Per default the file is expected to be at the following location: /home/jni/arch_share/virt_machine/jni_ext/battery_level_percent.txt

Shell Extension

The Gnome 46 shell extension is to show the content of a file which is meant to hold the current level of the laptop's battery. For more details see the README.md in the corresponding directory. For the Shell Extension there is an install in the root directory and the option to set the file path from the extension's settings.

User Agent / Go Program

The Go based user agent propagates the battery level every minute with a MacOS user agent to the file (on the host). Use the correspinding installer.

For changing the path you might want to change the installer script and the source code file main.go.

gnome-46-shell-ext-show-battery's People

Contributors

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