This file contains 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 | |
cd /Library/Preferences | |
BACKUP_NAME=com.apple.windowserver.displays_$(date +%F-%H_%M).plist | |
echo "Backing up plist to $BACKUP_NAME" | |
cp com.apple.windowserver.displays.plist $BACKUP_NAME | |
open_xml () { | |
echo "Converting plist to XML..." | |
plutil -convert xml1 com.apple.windowserver.displays.plist |