change multiple desktop backgrounds

applehelpwriter Jun 8th, 2013 97 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #! /bin/bash
  2. #script to change all desktop backgrounds
  3. # 2013
  4. # don't forget to make the script executable with
  5. # sudo chmod a+x
  7. echo -n “Drag and drop an image file here then press ‘return’ or
  8. press ‘control-c’ to cancel…”
  9. read -e WLPR;
  11. function change_wallpaper
  12. {
  13. defaults write Background “{default = {ImageFilePath=’$WLPR’; };}”; killall Dock
  14. }
  15. change_wallpaper
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand