scripts - scripts - some useful shell scripts

git clone git://git.bcharge.de/scripts.git

About | Log | Files | Refs

mic_status.sh (234B)


#!/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