[Arch] fix network, delete bar_scripts
[dotfiles_afify.git] / .scripts / mic_status
blob87fe123fee8e7eb4563df352e72ca94ca3f8b219
1 #!/usr/bin/env bash
3 #==============================================================================
4 # Name : mic_status
5 # GitHub : Afify
6 # Copyright : MIT
7 # Version : 0.1
8 # Description :
9 # get all input devices
10 # get mute status
11 # if not mute echo the logo
12 #==============================================================================
14 pactl list | grep -A8 'Source #'| grep 'Mute: '| cut -d" " -f2|\
15 while read -r line; do
17 if [ "$line" == "no" ]; then
18 echo "\x04\x01"
20 done