Git Product home page Git Product logo

wingpanel-indicator-airpods's Introduction

Wingpanel AirPods icon

Wingpanel AirPods

About

Wingpanel AirPods is a status indicator that displays Apple's AirPods status information in elementary OS Wingpanel.

Being this one of my first Vala applications I'm sure that the code can be improved, so:

  • If you find any problems while running the application please report it through an issue.
  • Pull requests and translations are welcome.
  • Feedback and suggestions are always welcome as well.

Features:

  • Displays AirPods connection status
  • Displays AirPods battery charge percentage in the indicator
  • Displays battery charge status per AirPod and also for the charging case in the popover
  • Notifys the user when the AirPods battery or case is running low
  • Supports media player playback control using AirPods in-ear detection:
    • Stop the audio: remove both AirPods from your ears, or if you’re wearing just one, remove it. If you return one to your ear within 15 seconds, play resumes automatically.
    • Pause the audio: while listening with both AirPods, remove one. When you return it to your ear, playback resumes automatically.
  • Supports battery saver mode to preserve battery life while the system is running on battery (e.g. laptops) *

* In order to preserve system battery life some indicator features (e.g. media player playback control using AirPods in-ear detection) will be disabled and AirPods battery level report may be less accurate

Requirements

  • elementary OS 5.1.7 Hera
  • elementary OS 6.0 Odin
  • Bluetooth 4.0 adapter with BLE support

Screenshots

Indicator

Screenshot Screenshot

Indicator (inc. battery charge percentage):

Screenshot

Popover:

Screenshot Screenshot Screenshot

Popover (inc. battery charge percentage):

Screenshot

Settings:

Screenshot

Building and installation from source

You'll need the following dependencies:

libglib2.0-dev
libnotify-dev
libgranite-dev
libgtk-3-dev
libwingpanel-2.0-dev (Hera)
libwingpanel-dev (Odin)
libhandy-1-dev (Odin)
meson
valac

You can install them in elementary OS Hera running:

sudo apt install libnotify-dev libgranite-dev libgtk-3-dev libwingpanel-2.0-dev meson valac

Or in elementary OS Odin running:

sudo apt install libnotify-dev libgranite-dev libgtk-3-dev libwingpanel-dev libhandy-1-dev meson valac

Run meson to configure the build environment and then ninja to build

meson build --prefix=/usr
cd build
ninja

To install, use ninja install

sudo ninja install
com.github.casasfernando.wingpanel-indicator-airpods

Installation using the deb package

You can also find a deb package available with every release in the releases page. To install it you just need to download the package for your elementary OS release and run:

sudo dpkg -i wingpanel-indicator-airpods_<release>_<hera|odin>_amd64.deb

Special thanks and credits

  • Federico Dossena for developing OpenPods and the beacon data decoding algorithm on which the beacon decoding code of this project is based on.

wingpanel-indicator-airpods's People

Contributors

casasfernando avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

wingpanel-indicator-airpods's Issues

Implement Overlay icons.

Hey!, I really like your project and as a elementary os developer I am developing new section of power settings.
I think you can use overlay to show the battery over each airpod and case.
Screenshot from 2021-08-17 10-35-47

Code example

var badge_icon = new Gtk.Image.from_icon_name ("battery-icon", Gtk.IconSize.BUTTON) {
    halign = Gtk.Align.END,
    valign = Gtk.Align.END
};
var overlay = new Gtk.Overlay ();
overlay.add (airpod-icon);
overlay.add_overlay (badge_icon);

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.