Skip to content

Commit 7046114

Browse files
committed
feat: changes
1 parent 98c56fd commit 7046114

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

nix/_packages.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ with pkgs; [
3535
shfmt
3636
sl
3737
tmux
38+
terminal-notifier
3839
tree
3940
unrar
4041
uv

scripts/mac/disable_airpods_microphone

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,10 @@ current_mic_is_airpods=$(SwitchAudioSource -c -t input | grep -i "AirPods")
2020
if [ -n "$current_mic_is_airpods" ]; then
2121
for mic in "${allowed_mics[@]}"; do
2222
if echo "$all_mics" | grep -i "$mic" > /dev/null; then
23-
osascript -e "display notification \"Enabling $mic\" with title \"AirPods mic disabled\""
23+
terminal-notifier -message "Enabling $mic" -title "AirPods mic disabled" -group "im.rafa.mic"
2424
SwitchAudioSource -t input -s "$mic" > /dev/null
25-
25+
sleep 3
26+
terminal-notifier -remove "im.rafa.mic"
2627
exit 0
2728
fi
2829
done

0 commit comments

Comments
 (0)