From f41d7e270fb776990362acf8c265d6dd017b4f84 Mon Sep 17 00:00:00 2001 From: "Adrian C. (anrxc)" Date: Tue, 23 Feb 2010 03:23:14 +0100 Subject: [PATCH] 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) Signed-off-by: Julien Danjou --- utils/awsetbg | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/utils/awsetbg b/utils/awsetbg index f5e7dcea..de189aee 100755 --- a/utils/awsetbg +++ b/utils/awsetbg @@ -53,7 +53,7 @@ else fi # 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" @@ -334,10 +334,10 @@ if [ "$setterfromcommandline" != true ]; then fi standardrant=\ -"$WPSETTER doesn't set the wallpaper properly. Transparency for awesome and -apps like aterm and xchat won't work right with it. Consider installing -feh, wmsetbg (from windowmaker) or Esetroot (from Eterm) and I'll use -them instead." +"$WPSETTER doesn't set the wallpaper properly. Transparency for +awesome and apps like aterm and xchat won't work right with +it. Consider installing feh, wmsetbg (from windowmaker), Esetroot +(from Eterm) or fvwm-root (from FVWM) and I'll use them instead." standardok=\ "$WPSETTER is a nice wallpapersetter. You won't have any problems." @@ -427,6 +427,15 @@ case $WPSETTER in aspect='-mS' 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) tile='-s' full=$tile