13 lines
239 B
Bash
13 lines
239 B
Bash
|
#!/usr/bin/env sh
|
||
|
|
||
|
# index=$(pacmd list-sources | grep -oP '\* index: \d+' | awk '{ print $3 }')
|
||
|
|
||
|
# TODO default source not hardcoded
|
||
|
# pactl set-source-mute $index toggle
|
||
|
|
||
|
|
||
|
# Use the alsa approach
|
||
|
|
||
|
amixer -q -D pulse set Capture toggle
|
||
|
|