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.

Note

NEW: now you can enable a second device e.g. a remote headphone and toggle between headphone and remote headphone too If you don't like this feature don't enable it and it should behave like before! :>

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
  • toggle Headphone / Remote Headphone (or second Headphone)
    • this is only visible when the feature is activated

      default: ctrl+super+R

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 49:
    • CachyOS
  • Gnome 48:
    • Fedora 42
    • CachyOS
  • Gnome 47:
    • EndeavourOS Linux
    • Nobara
  • 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

  • English
  • German
  • Hungarian
  • Italian

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

Topics

Resources

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published

Contributors 3

  •  
  •  
  •