diff options
Diffstat (limited to '.config/scripts/mute_mac_chime.sh')
-rw-r--r-- | .config/scripts/mute_mac_chime.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/.config/scripts/mute_mac_chime.sh b/.config/scripts/mute_mac_chime.sh new file mode 100644 index 00000000..a00c8e3e --- /dev/null +++ b/.config/scripts/mute_mac_chime.sh @@ -0,0 +1,12 @@ +#!/bin/sh +# this needs to be ran as proper root (> su) + +# remove immutable flag +chattr -i /sys/firmware/efi/efivars/SystemAudioVolume-7c436110-ab2a-4bbb-a880-fe41995c9f82 + +# macos terminal uses BELL code (0x07) to audibly play system messages/warnings (such as the startup chime +# that simply confirms POST was successful and lets everyone else in the room know as well) so set it to null +printf "\x07\x00\x00\x00\x00" > /sys/firmware/efi/efivars/SystemAudioVolume-7c436110-ab2a-4bbb-a880-fe41995c9f82 + +# replace immutable flag +chattr +i /sys/firmware/efi/efivars/SystemAudioVolume-7c436110-ab2a-4bbb-a880-fe41995c9f82 |