Add scripts & configs

This commit is contained in:
Smirnov Olexandr 2020-10-16 22:55:26 +03:00
parent f8ffdbda2e
commit 734af357dd
33 changed files with 1432 additions and 957 deletions

View file

@ -0,0 +1,21 @@
#!/bin/bash
MICSYMBOL=$1
MICMUTEDSYMBOL=$2
case "$1" in
--click)
amixer -D pulse sset Capture toggle
;;
*)
;;
esac
STATUS=$(amixer -D pulse get Capture | grep -E "\[on\]|\[off\]" | cut -s -d ' ' -f 8 | uniq)
if [[ $STATUS = "[on]" ]]; then
echo $MICSYMBOL
elif [[ $STATUS = "[off]" ]]; then
echo $MICMUTEDSYMBOL
else
echo "Not working, check script."
fi