unfunctionalized the command and removed white-space as per contribution guidelines.

This commit is contained in:
Nick Strayer 2015-10-22 12:47:16 -05:00
parent 964c82af86
commit c2dc96a9c7

View File

@ -109,13 +109,11 @@ For OSX pre-Mavericks:
osascript -e 'tell application "Finder" to set desktop picture to POSIX file "/path/to/picture.jpg"' 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 ```bash
function newWallpaper() { sqlite3 ~/Library/Application\ Support/Dock/desktoppicture.db "update data set value = '/path/to/picture.jpg'" && killall Dock
sqlite3 ~/Library/Application\ Support/Dock/desktoppicture.db "update data set value = '$1'" && killall Dock
} }
newWallpaper(/path/to/picture.jpg)
``` ```