<commit_before>PulseAudio system tray
======================
[![Build Status](https://travis-ci.org/christophgysin/pasystray.png?branch=master)](https://travis-ci.org/christophgysin/pasystray)

A replacement for the deprecated padevchooser

Pasystray allows setting the default PulseAudio source/sink and moving
streams on the fly between sources/sinks without restarting the client
applications.

Features
--------

* switch default sink/source
* move playback/record stream to different sink/source on the fly
* detect pulseaudio instances on the network with avahi
* set X property PULSE_SERVER (like padevchooser's "set default server")
* adjust volume/toggle mute of sinks/sources and playback/record streams
* rename devices

Renaming devices needs module-device-manager to be loaded in pulseaudio.

To detect remote sinks/sources you need to enable module-zeroconf-discover on
the local PulseAudio instance and module-zeroconf-publish on the remote side.

To control a different server than the local instance, run pasystray as:
  $ PULSE_SERVER=remote_host pasystray

Mouse bindings
--------------

over status icon:
* middle-click / alt + left-click: toggle mute default sink
* ctrl + middle-click / ctrl + alt + left-click: toggle mute default source
* scroll up/down: adjust the default sink volume
* ctrl + scroll: adjust the default source volume

over source/sink:
* scroll up/down: adjust the volume of respective stream
* left-click: set as default sink/source
* middle-click / alt + left-click: toggle mute
* right-click: open menu to rename source/sink

over playback/record stream:
* scroll up/down: adjust the volume of respective stream
* middle-click: toggle mute

Troubleshooting
---------------

If pasystray icon is not displayed in your Unity system tray, you will have
to whitelist it. Read this for instructions:<commit_msg>use proper markdown code block<commit_after>PulseAudio system tray
======================
[![Build Status](https://travis-ci.org/christophgysin/pasystray.png?branch=master)](https://travis-ci.org/christophgysin/pasystray)

A replacement for the deprecated padevchooser

Pasystray allows setting the default PulseAudio source/sink and moving
streams on the fly between sources/sinks without restarting the client
applications.

Features
--------

* switch default sink/source
* move playback/record stream to different sink/source on the fly
* detect pulseaudio instances on the network with avahi
* set X property PULSE_SERVER (like padevchooser's "set default server")
* adjust volume/toggle mute of sinks/sources and playback/record streams
* rename devices

Renaming devices needs module-device-manager to be loaded in pulseaudio.

To detect remote sinks/sources you need to enable module-zeroconf-discover on
the local PulseAudio instance and module-zeroconf-publish on the remote side.

To control a different server than the local instance, run pasystray as:
```bash
$ PULSE_SERVER=remote_host pasystray
```

Mouse bindings
--------------

over status icon:
* middle-click / alt + left-click: toggle mute default sink
* ctrl + middle-click / ctrl + alt + left-click: toggle mute default source
* scroll up/down: adjust the default sink volume
* ctrl + scroll: adjust the default source volume

over source/sink:
* scroll up/down: adjust the volume of respective stream
* left-click: set as default sink/source
* middle-click / alt + left-click: toggle mute
* right-click: open menu to rename source/sink

over playback/record stream:
* scroll up/down: adjust the volume of respective stream
* middle-click: toggle mute

Troubleshooting
---------------

If pasystray icon is not displayed in your Unity system tray, you will have
to whitelist it. Read this for instructions:
{'fraction_non_alphanumeric': 0.09380863039399624, 'fraction_numerical': 0.0, 'mean_word_length': 4.400868306801737, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '34500', 'n_tokens_mistral': 1045, 'n_tokens_neox': 1005, 'n_words': 426}