File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ with pkgs; [
3535 shfmt
3636 sl
3737 tmux
38+ terminal-notifier
3839 tree
3940 unrar
4041 uv
Original file line number Diff line number Diff line change @@ -20,9 +20,10 @@ current_mic_is_airpods=$(SwitchAudioSource -c -t input | grep -i "AirPods")
2020if [ -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
You can’t perform that action at this time.
0 commit comments