#!/bin/bash
if pactl list short|grep module-loopback 1> /dev/null
then
echo Desactivando el bucle de audio
pactl unload-module `pactl list short |perl -ne 'print $1 and exit if /^(\d+)\s+module-loopback/;'`
else
echo Activando el bucle de audio para el dispositivo de entrada preferido
pactl load-module module-loopback
fi
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.