#!/bin/bash #Translation export TEXTDOMAINDIR="/usr/share/locale" export TEXTDOMAIN=biglinux-remove-noise-mic # Don't group windows xprop -id "$(xprop -root '\t$0' _NET_ACTIVE_WINDOW | cut -f 2)" -f WM_CLASS 8s -set WM_CLASS "$$" FOLDER_CONFIG="$HOME/.config/biglinux-noise-reduction" mkdir -p ~/.config/biglinux-noise-reduction MIC_LIST="$(pactl list sources short | grep input | awk '{ print $2 }')" MIC="$(cat ${FOLDER_CONFIG}/mic.txt)" RATE="$(cat ${FOLDER_CONFIG}/rate.txt)" CHANNEL="$(cat ${FOLDER_CONFIG}/channel.txt)" LEVEL="$(cat ${FOLDER_CONFIG}/level.txt)" DEVICE_LIST_LOADED="$(pactl list short modules | grep -e "latency_msec=1 sink=mic_raw_in" -e "mic_denoised_out" | cut -f1)" ############# # First Run ############# if [ -z "$MIC" ] then MIC="$(echo "$MIC_LIST" | head -n1)" echo "$MIC" > "${FOLDER_CONFIG}/mic.txt" fi if [ -z "$RATE" ] then RATE="44100" echo "$RATE" > "${FOLDER_CONFIG}/rate.txt" fi if [ -z "$CHANNEL" ] then CHANNEL="1" echo "$CHANNEL" > "${FOLDER_CONFIG}/channel.txt" fi if [ -z "$LEVEL" ] then LEVEL="50" echo "$LEVEL" > "${FOLDER_CONFIG}/level.txt" fi # Import BigControlCenter base modules / Importa os módulos básicos do BigControlCenter # That's include jquery and materialize / Isso inclui o jquery e o materialize # http://materializecss.com/ . /usr/share/bigbashview/bcc/shell/base.sh echo '
' echo '