git clone git://git.bcharge.de/scripts.git
About | Log | Files | Refs
mic_status.sh (234B)
1 2 3 4 5 6 7 8 9 10 11
#!/bin/bash micstatus=$(amixer sget Capture | awk '{if(/\[on\]/) {print "ON"; exit}}') if [ "$micstatus" = ON ]; then echo "🗣️🎙" #echo -e "\033[32m🎙\033[0m" else #echo -e "\033[31;9;5m🎙\033[0m" echo "⛔🎙" fi