3
# Author: Weitian Leung <weitianleung@gmail.com>
6
# Description: set a picture as xfce4 wallpaper
11
mime_type=`file --mime-type -b "$wallpaper"`
12
if [[ ! "$mime_type" == image/* ]]; then
17
# set to every monitor that contains image-path/last-image
18
properties=$(xfconf-query -c xfce4-desktop -p /backdrop -l | grep -e "screen.*/monitor.*image-path$" -e "screen.*/monitor.*/last-image$")
20
for property in $properties; do
21
xfconf-query -c xfce4-desktop -p $property -s "$wallpaper"