From 964c82af86d79ac1eadeddbdd7aaeb3dbdef5441 Mon Sep 17 00:00:00 2001 From: Nick Strayer Date: Thu, 22 Oct 2015 12:44:33 -0500 Subject: [PATCH 1/3] Added section for changing wallpaper on post Mavericks machines. --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index 82e09e5..96c2f4b 100644 --- a/README.md +++ b/README.md @@ -102,10 +102,22 @@ defaults write com.apple.universalaccess reduceTransparency -bool false ### Wallpaper #### Set Wallpaper + +For OSX pre-Mavericks: + ```bash osascript -e 'tell application "Finder" to set desktop picture to POSIX file "/path/to/picture.jpg"' ``` +For OSX pos-Mavericks: + +```bash +function newWallpaper() { +sqlite3 ~/Library/Application\ Support/Dock/desktoppicture.db "update data set value = '$1'" && killall Dock +} +newWallpaper(/path/to/picture.jpg) +``` + ## Applications From c2dc96a9c79625e764430c04315d5ae1788854e3 Mon Sep 17 00:00:00 2001 From: Nick Strayer Date: Thu, 22 Oct 2015 12:47:16 -0500 Subject: [PATCH 2/3] unfunctionalized the command and removed white-space as per contribution guidelines. --- README.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 96c2f4b..64f44aa 100644 --- a/README.md +++ b/README.md @@ -109,13 +109,11 @@ For OSX pre-Mavericks: osascript -e 'tell application "Finder" to set desktop picture to POSIX file "/path/to/picture.jpg"' ``` -For OSX pos-Mavericks: +For OSX pos-Mavericks: ```bash -function newWallpaper() { -sqlite3 ~/Library/Application\ Support/Dock/desktoppicture.db "update data set value = '$1'" && killall Dock +sqlite3 ~/Library/Application\ Support/Dock/desktoppicture.db "update data set value = '/path/to/picture.jpg'" && killall Dock } -newWallpaper(/path/to/picture.jpg) ``` From f0bccaf483c38513bcb43e62b36ac43bb114be04 Mon Sep 17 00:00:00 2001 From: Nick Strayer Date: Sat, 24 Oct 2015 21:11:46 -0500 Subject: [PATCH 3/3] Added suggested changes in wording --- README.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 64f44aa..58765e6 100644 --- a/README.md +++ b/README.md @@ -103,17 +103,16 @@ defaults write com.apple.universalaccess reduceTransparency -bool false #### Set Wallpaper -For OSX pre-Mavericks: +For up to Mountain Lion: ```bash osascript -e 'tell application "Finder" to set desktop picture to POSIX file "/path/to/picture.jpg"' ``` -For OSX pos-Mavericks: +Since Mavericks: ```bash sqlite3 ~/Library/Application\ Support/Dock/desktoppicture.db "update data set value = '/path/to/picture.jpg'" && killall Dock -} ```