You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Made the listener more robust to pulseaudio restarts
Sometimes when I boot up my laptop, pulseaudio can't detect the devices
properly. I run `pulseaudio -k` to restart it, but this changes the
device ids and crashes the listener. Now this should work without any
action from the user.
Copy file name to clipboardExpand all lines: README.md
+7-2Lines changed: 7 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,12 +9,17 @@
9
9
10
10
## Installation
11
11
1. Make sure `BRIGHTNESS_FILE_PATH` in set_micmute_led.c corresponds to the LED file path on your system.
12
-
2. Run `./install.sh`
12
+
2. 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)
13
+
3. Run `./install.sh`
13
14
14
15
## Running
15
-
If you have systemd and want to enable the script as soon as you log in, run `systemctl --user enable micmute_listener_pa.service`.
16
16
17
+
### With systemd
18
+
If you want to enable the script as soon as you log in, run `systemctl --user enable micmute_listener_pa.service`.
17
19
To start the service immediately, run `systemctl --user start micmute_listener_pa.service`.
18
20
21
+
### Without systemd
22
+
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.
23
+
19
24
## Contributions
20
25
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!
0 commit comments