Added OS X wallpaper detection

This commit is contained in:
Dylan 2016-01-18 08:37:37 +11:00
parent 895698fe40
commit 6b9d7ac78b
2 changed files with 10 additions and 5 deletions

4
fetch
View file

@ -738,6 +738,10 @@ getwallpaper () {
img="$(awk -F\' '/feh/ {printf $2}' $HOME/.fehbg)"
;;
"Mac OS X")
img="$(osascript -e 'tell app \"finder\" to get posix path of (get desktop picture as text)')"
;;
"Windows")
case "$distro" in
"Windows XP")