- python3
- gcc
- pulsectl library (install via pip for root:
sudo -H pip install pulsectl
) - systemd (optional)
- Make sure
BRIGHTNESS_FILE_PATH
in set_micmute_led.c corresponds to the LED file path on your system. - Make sure
mic_name
in micmute_listener_pa.py corresponds to your mic device name. This name can be found within the sources printed out when the client is started. (This will be made more user-friendly with upcoming releases) - Run
./install.sh
If you want to enable the script as soon as you log in, run systemctl --user enable micmute_listener_pa.service
.
To start the service immediately, run systemctl --user start micmute_listener_pa.service
.
Simply run ~/.local/bin/micmute_listener_pa.py &
after installation. For starting the client at boot, look up your distro's individual way to achieve this.
I'm very intrested in your opinions in terms of the architecture of this service. If you have suggestions on how to avoid SETUID or make the whole thing cleaner or more secure, please start a discussion!