Skip to content

Blackstareye/toggleAudio-blackeyeprojects.de

Repository files navigation

ToggleAudio Extension

thumbnail

Settings

shows settings

set your headphone and speaker devices in preferences

then you can switch between those devices with a click of a button:

speaker headphone

(you can see the switch between the audio sources in the volume output device window above called Tonausgang here)

Note: the devices for headphone and speaker must be two separated devices, and not a shared one with different ports (like build in Speaker/Headphone devices).

In that case only one device can be seen in the preference selection window.

With the Show Indicator switch you can also control if you want to show a system icon tray or not. If true the icon is shown.

Hotkeys

You can also use hotkeys for:

  • toggle Speaker/ Headphone
    • default: ctrl+super+T
  • select Speaker
    • default: ctrl+super+S
  • select Headphone
    • default: ctrl+super+H

You can enable those in the settings:

settings show hotkey area

Note

if you want to change the hotkeys, you need to do those in gsettings using gsettings

the path is: /org/gnome/shell/extensions/toggle-audio/

Follow the instructions on the wiki

Icon Style

You can control whether you want to use colorful or symbolic monochrome icons.

styling

PS: You can even customize the used icons if you want

Tested on

with 2 audio devices:

  • Gnome 47:
    • EndeavourOS Linux
  • Gnome 46:
    • Ubuntu 24.04 (hardware)
  • Gnome 45:
    • Ubuntu 23.10 (VM)
    • Nobara 39

Next Version

Ideas:

  • Disable Toggle Button as long Connection is not possible instead just queuing

Now with multi-lang-support

Contribution of translations files are appreciated.

Please file an issue or PR for that.

Already implemented translations

  • German
  • English
  • Hungarian

Thanks and credit to

their code helped me to understand Gvc.MixerControl better.

Also thanks to #extensions:gnome.org (Matrix) and their people for helping me :)

Support

If you like my work and want to support me, then this is the way:

Many Thanks ♥

About

Gnome Extension for toggling audio

Resources

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published