This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Check if ImageMagick is installed | |
if ! command -v magick &> /dev/null; then | |
echo "ImageMagick is not installed. Please install it with:" | |
echo "brew install imagemagick" | |
exit 1 | |
fi | |
# Check if we have at least two arguments (output file and at least one input file) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Script to toggle audio output between MacBook Pro speakers and JCHEN AirPods Pro | |
# Requires SwitchAudioSource: brew install switchaudio-osx | |
# Get current audio output device | |
CURRENT_DEVICE=$(SwitchAudioSource -c) | |
# Define device names based on your system | |
MACBOOK_SPEAKERS="MacBook Pro Speakers" |