This is for users who want to use RootTransparent
for transparency. Also when running a compositor for X11 (Picom, Compton, etc.). Doesn’t activate by default, and requires a few additional command lines.
Add these two lines in default Fvwm configs, “1: Functions” section, after InitBackground function, line number 90.
Test (x fvwm-root) Exec exec fvwm-root -r ~/.fvwm/.BGdefault
Test (x fvwm3-root) Exec exec fvwm-root -r ~/.fvwm/.BGdefault
Attach these two lines to SetBG function after line number 128 (not at the end). This activates transparency immediately when changing the wallpaper.
+ I Test (x fvwm-root) Exec exec fvwm-root -r ~/.fvwm/.BGdefault
+ I Test (x fvwm3-root) Exec exec fvwm-root -r ~/.fvwm/.BGdefault
The lines MUST be in the right place, check this.
DestroyFunc SetBG
AddToFunc SetBG
+ I Test (f $[FVWM_USERDIR]/images/background/$0) \
Exec exec fvwm-root $[FVWM_USERDIR]/images/background/$0
+ I TestRc (Match) Exec exec ln -fs images/background/$0 \
$[FVWM_USERDIR]/.BGdefault
+ I Test (x fvwm-root) Exec exec fvwm-root -r ~/.fvwm/.BGdefault
+ I Test (x fvwm3-root) Exec exec fvwm-root -r ~/.fvwm/.BGdefault
+ I TestRc (Match) Break
+ I Test (!f $[FVWM_DATADIR]/default-config/images/background/$0) Break
+ I Exec exec fvwm-root $[FVWM_DATADIR]/default-config/images/background/$0
+ I Exec exec ln -fs $[FVWM_DATADIR]/default-config/images/background/$0 \
$[FVWM_USERDIR]/.BGdefault
Sample colorset code:
ColorSet 15 RootTransparent Buffer, Tint #4a516a 50, fg white, bg black