dmenu-fix-sheet (765B)
1 #!/bin/sh 2 # Some cheatsheet for some fast fixes wouldn't be bad. 3 CHOICE="$(printf '%s\n' "background noise in pulse" \ 4 | dmenu -p "Get Help For Some Quick Fix:" -l 20)" 5 case "$CHOICE" in 6 "background noise in pulse") 7 printf '# My fix for background noise in pulse.\n' 8 printf '#\n' 9 printf '# 1. Run privilaged:\n' 10 printf '# doas ./fix.mic.sh\n' 11 printf '# 2. Restart Audio Server:\n' 12 printf '# pulseaudio -k\n' 13 printf '#\n' 14 printf 'doas cp /etc/pulse/default.pa /etc/pulse/default.pa.bak\n' 15 printf 'doas cat << EOT >> /etc/pulse/default.pa\n' 16 printf 'load-module module-echo-cancel source_name=noechosource sink_name=noechosink\n' 17 printf 'set-default-source noechosource\n' 18 printf 'set-default-sink noechosink\n' 19 printf 'EOT\n' 20 ;; 21 esac