Commit 594abf18 authored by Jan Hensel's avatar Jan Hensel 🐧
Browse files

scripts::micmute: Use pactl instead (for pipewire compat)

parent 6e7d5c88
#!/bin/bash
pulseaudio-ctl mute-input
muted="$(pulseaudio-ctl full-status | cut -f3 -d' ')"
pactl set-source-mute @DEFAULT_SOURCE@ toggle
muted="$(pactl get-source-mute @DEFAULT_SOURCE@ | sed 's/Mute:\s*\(\S*\)$/\1/')"
message="$(echo "${muted}" | sed 's/yes/mic muted/' | sed 's/no/mic hot/')"
if [ "${muted}" == "no" ]; then
mpv /usr/share/sounds/freedesktop/stereo/device-added.oga &
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment