diff options
| author | Anton Bobov <anton@bobov.name> | 2024-09-20 00:29:28 +0500 |
|---|---|---|
| committer | Anton Bobov <anton@bobov.name> | 2024-09-20 00:33:27 +0500 |
| commit | 8b1f9edca3aac2d61b357eca7b29b8dc2adf0998 (patch) | |
| tree | 2fee1dc4c2ba461c68a0f5a2c4a065ad1e3bb34f | |
| parent | e5420b92d44abb0907973412882351cc2057bdff (diff) | |
Add script to fix chrome audio after pulseaudio/pipewire restart
| -rwxr-xr-x | fix-chrome-audio | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/fix-chrome-audio b/fix-chrome-audio new file mode 100755 index 0000000..895ab1f --- /dev/null +++ b/fix-chrome-audio @@ -0,0 +1,11 @@ +#!/usr/bin/env bash +# PulseAudio: Server restart permanently breaks microphone access +# https://issues.chromium.org/issues/40693791#comment4 + +set -euo pipefail + +main() { + pkill -f '/usr/bin/chromium --type=utility --utility-sub-type=audio' +} + +main "$@" |
