Files
dotfiles/bin/initial-mic-state.sh

11 lines
191 B
Bash
Executable File

#! /bin/bash
pactl list sources | grep -qi "Mute: yes"
state="$?"
if [[ "$state" == "0" ]]; then
brightnessctl -d "platform::micmute" s 1
else
brightnessctl -d "platform::micmute" s 0
fi