awsetbg: add fvwm-root support

fvwm-root is a part of the FVWM window manager, and is one of those
utilities that properly support transparency because it can retain and
publish the Pixmap with which the background has been set. It supports
XBM, XPM, PNG and SVG image formats, but is not very rich in options
as opposed to habak or feh.

Signed-off-by: Adrian C. (anrxc) <anrxc@sysphere.org>
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Adrian C. (anrxc) 2010-02-23 03:23:14 +01:00 committed by Julien Danjou
parent 9f537bcb37
commit f41d7e270f
1 changed files with 14 additions and 5 deletions

View File

@ -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 xsetroot}" # broken icewmbg' wpsetters="${wpsetters:=Esetroot habak wmsetbg feh hsetroot chbg fvwm-root display qiv xv xsri xli xsetbg xsetroot}" # broken icewmbg'
lastwallpaper="${CONFIG_DIR}/lastwallpaper" lastwallpaper="${CONFIG_DIR}/lastwallpaper"
@ -334,10 +334,10 @@ if [ "$setterfromcommandline" != true ]; then
fi fi
standardrant=\ standardrant=\
"$WPSETTER doesn't set the wallpaper properly. Transparency for awesome and "$WPSETTER doesn't set the wallpaper properly. Transparency for
apps like aterm and xchat won't work right with it. Consider installing awesome and apps like aterm and xchat won't work right with
feh, wmsetbg (from windowmaker) or Esetroot (from Eterm) and I'll use it. Consider installing feh, wmsetbg (from windowmaker), Esetroot
them instead." (from Eterm) or fvwm-root (from FVWM) and I'll use them instead."
standardok=\ standardok=\
"$WPSETTER is a nice wallpapersetter. You won't have any problems." "$WPSETTER is a nice wallpapersetter. You won't have any problems."
@ -427,6 +427,15 @@ case $WPSETTER in
aspect='-mS' aspect='-mS'
debugstory=$standardok debugstory=$standardok
;; ;;
fvwm-root)
tile='-r'
full=$tile
center=$tile
aspect=$tile
debugstory="fvwm-root can retain and publish the Pixmap, thus
supports transparency. But only these image formats are supported:
XBM, XPM, PNG, SVG and it is rather limited with options."
;;
icewmbg) icewmbg)
tile='-s' tile='-s'
full=$tile full=$tile