awsetbg: add solid xsetroot fallback if no real wpsetters
Signed-off-by: koniu <gkusnierz@gmail.com>
This commit is contained in:
parent
f5bf5aa43d
commit
46b3a14a8f
|
@ -53,7 +53,7 @@ else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# The wallpapersetter is selected in this order
|
# The wallpapersetter is selected in this order
|
||||||
wpsetters="${wpsetters:=Esetroot habak wmsetbg feh hsetroot chbg display qiv xv xsri xli xsetbg}" # broken icewmbg'
|
wpsetters="${wpsetters:=Esetroot habak wmsetbg feh hsetroot chbg display qiv xv xsri xli xsetbg xsetroot}" # broken icewmbg'
|
||||||
lastwallpaper="${CONFIG_DIR}/lastwallpaper"
|
lastwallpaper="${CONFIG_DIR}/lastwallpaper"
|
||||||
|
|
||||||
|
|
||||||
|
@ -435,6 +435,15 @@ case $WPSETTER in
|
||||||
debugstory="icewmbg does support transparency, but only tiling. And I noticed odd
|
debugstory="icewmbg does support transparency, but only tiling. And I noticed odd
|
||||||
errormessages with aterm. Don't use it unless you have to."
|
errormessages with aterm. Don't use it unless you have to."
|
||||||
;;
|
;;
|
||||||
|
xsetroot)
|
||||||
|
tile='-solid'
|
||||||
|
full=$tile
|
||||||
|
center=$tile
|
||||||
|
aspect=$tile
|
||||||
|
debugstory="I can't find an app to set the wallpaper with. Using xsetroot to set
|
||||||
|
a solid background. If you want to have a background image you should install Esetroot or feh."
|
||||||
|
wallpaper='#535d6c'
|
||||||
|
;;
|
||||||
'')
|
'')
|
||||||
message \
|
message \
|
||||||
"I can't find an app to set the wallpaper with. You can install one in
|
"I can't find an app to set the wallpaper with. You can install one in
|
||||||
|
@ -494,7 +503,7 @@ if [ "$option" = random ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
if [ ! -r "$wallpaper" ]; then
|
if [ ! -r "$wallpaper" ] && [ $WPSETTER != "xsetroot" ]; then
|
||||||
message "Can't find wallpaper $wallpaper"
|
message "Can't find wallpaper $wallpaper"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue