diff --git a/plugins/macos/macos.plugin.zsh b/plugins/macos/macos.plugin.zsh index df2e0cde7..e0bfd045a 100644 --- a/plugins/macos/macos.plugin.zsh +++ b/plugins/macos/macos.plugin.zsh @@ -19,17 +19,9 @@ alias hidefiles="defaults write com.apple.finder AppleShowAllFiles -bool false & # Bluetooth restart function btrestart() { - # Kill audio and bluetooth processes - pgrep audio | xargs sudo kill 2>/dev/null || true - pgrep bluetooth | xargs sudo kill 2>/dev/null || true - - # Restart bluetooth services using launchctl - sudo launchctl list | grep -i blue | awk '{ print $3 }' | xargs sudo launchctl stop 2>/dev/null || true - sudo launchctl list | grep -i blue | awk '{ print $3 }' | xargs sudo launchctl start 2>/dev/null || true - - # Restart audio services using launchctl - sudo launchctl list | grep -i audio | awk '{ print $3 }' | xargs sudo launchctl stop 2>/dev/null || true - sudo launchctl list | grep -i audio | awk '{ print $3 }' | xargs sudo launchctl start 2>/dev/null || true + echo "Restarting Bluetooth daemon..." + sudo pkill bluetoothd + echo "Bluetooth daemon restarted." } function _omz_macos_get_frontmost_app() {