dotfiles/.config/i3pystatus/microphone-status.sh

10 lines
246 B
Bash
Executable file

#!/bin/bash
OUT="$(pactl get-source-mute alsa_input.pci-0000_07_00.6.HiFi__hw_acp__source | cut -d' ' -f2)"
if [ "$OUT" = "yes" ]
then
echo '<span color="#00FF00">M</span>'
else
echo '<span color="#FF0000">Microphone unmuted</span>'
fi