Polybar Mic button and cleaning up code

This commit is contained in:
Michał Gdula 2022-04-26 23:20:46 +01:00
parent 3b2fca577a
commit 54b578567c
7 changed files with 44 additions and 9 deletions

9
polybar/scripts/mic.sh Executable file
View file

@ -0,0 +1,9 @@
#!/bin/sh
value=$(amixer get Capture | grep '\[off\]')
if [ "$value" == "" ]; then
echo " ";
else
echo "%{F#666} ";
fi