GithubHelp home page GithubHelp logo

chrislauinger77 / gnome-shell-extension-headsetcontrol Goto Github PK

View Code? Open in Web Editor NEW
19.0 1.0 7.0 1.03 MB

Gnome Shell Extension to visualize headset status from HeadsetControl command line tool

License: GNU General Public License v3.0

JavaScript 97.68% Shell 2.32%
gnome-shell gnome-shell-extension headset headsetcontrol gjs

gnome-shell-extension-headsetcontrol's Introduction

gnome-shell-extension-HeadsetControl

Gnome Shell Extension to visualize headset status from HeadsetControl (https://github.com/Sapd/HeadsetControl) command line tool

GNOME43+

Screenshot

GNOME 42

Screenshot

Inspired by https://github.com/centic9/headset-charge-indicator/

Building HeadsetControl

Follow the instructions at https://github.com/Sapd/HeadsetControl/ for building the binary and note down the path to it.

You can test the helper application manually via headsetcontrol -b, this should print the current battery level to the console if your headset is supported.

Make sure you have gnome-icon-theme package installed.

1 click install from E.G.O:

Download latest release

  1. Download the zip file from the release page
  2. The md5 and sig files can be used to verify the integrity of the zip file
  3. Unzip and run install.sh from the zip

Install from source

Use the main branch.

git clone https://github.com/ChrisLauinger77/gnome-shell-extension-HeadsetControl.git
cd gnome-shell-extension-HeadsetControl.git
./install.sh

Now restart gnome-shell.

Development

Pull requests are welcome.

To update the translation files run ./update-translation-po-files.sh in the extensions directory after your code changes are finished. This will update the files in po folder. Then poedit (https://poedit.net/download) can be used to translate the strings. poedit can also be used to create new localization files.

Debugging

Logging can be enabled in settings. Afterwards open a console and type:

journalctl -f -o cat

You will see now the output in the console when you try to show the quicksettings.

Fedora has a package for "headsetcontrol" which seems to be outdated. (see #14)

Using the github version until Fedora updates the package is recommended.

✨️ Contributors

Contributors

gnome-shell-extension-headsetcontrol's People

Contributors

albanobattistella avatar amereyeu avatar chrislauinger77 avatar infiniteloopgamedev avatar matthiaskuehne avatar vistaus avatar

Stargazers

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

Watchers

 avatar

gnome-shell-extension-headsetcontrol's Issues

Weird behaviour of menu button

I saw something like this:
image
And when I click on that button then it moves:
image

It's repairing itself when I close menu and open it again, but this is kinda annoying.

Charge Indication not working

Hi,

I am facing the problem, that the charging level is not showing :/

My system: Fedora Workstation 38 (Gnome 44)

headsetcontroll is installed:
image

The command is working fine:
image

And I have set the correct command in the extension settings:
image

And I added the udev rules as far as I know

Does anyone have an idea why it is not working?

Include supported brands in the description

It took me some searching on the web but I'm glad I found this awesome extension. The first thing I did, if there was an extension for my headset, was a search for "steelseries" on Gnome Extensions. I got no results. If you include supported device brands in the description, more people can find this easier IMO.

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.