Add Custom Weather Widget For All Users From Terminal – Mac OS X.

If you’re like me and love automating everything you can when setting up MacBooks for new users, you will love this two tips Ill give you.

First let me tell you, the Macs are genius for gaming, not like a lot of Microsoft users might say. Not even from a technical point of view, this is just nonsense, even gaming consoles likes Xbox One and PlayStation 4 use very similar components. This has improved sinceĀ  recent years thy started to use same Intel processors as Windows Pcs, making a lot of users change of scenery with this new devices, with more storage for more games and capacity with turbo booster to run them faster and precise. If you are one of this people you might want to check elitist-gaming.com for great gaming advise and awesome games.

Second tip you are going to love this next little code snippet. This code adds the weather widget with the city of your choosing to the dashboard for all user profiles on a mac.

In the example below I chose the city Lewisville, TX. You can easily modify it to show the weather of any city you like.

# Sets weather widget to Lewisville
 
defaults write /System/Library/User\ Template/English.lproj/Library/Preferences/widget-com.apple.widget.weather.plist 0000000000000004-celcius -bool false
defaults write /System/Library/User\ Template/English.lproj/Library/Preferences/widget-com.apple.widget.weather.plist 0000000000000004-collapsed -bool false
defaults write /System/Library/User\ Template/English.lproj/Library/Preferences/widget-com.apple.widget.weather.plist 0000000000000004-show-lows -bool true
defaults write /System/Library/User\ Template/English.lproj/Library/Preferences/widget-com.apple.widget.weather.plist 0000000000000004-yahooBacksideCityString -string "Lewisville, TX"
defaults write /System/Library/User\ Template/English.lproj/Library/Preferences/widget-com.apple.widget.weather.plist 0000000000000004-yahooFrontsideCityString -string Lewisville
defaults write /System/Library/User\ Template/English.lproj/Library/Preferences/widget-com.apple.widget.weather.plist 0000000000000004-yahooPostal -string "USTX0761|2438795"

2 Replies to “Add Custom Weather Widget For All Users From Terminal – Mac OS X.”

Leave a Reply

Your email address will not be published. Required fields are marked *

*