#---------------------------------------------------------------------------#
#            FvwmForm-ThemeSettings   by Alex Wallis   awol@dove.net.au
#---------------------------------------------------------------------------#
DestroyModuleConfig FvwmForm-ThemeSettings: *

*FvwmForm-ThemeSettings: WarpPointer
*FvwmForm-ThemeSettings: PadVText 0
*FvwmForm-ThemeSettings: Font 10x20
*FvwmForm-ThemeSettings: Line center
*FvwmForm-ThemeSettings: Text "FVWM Theme Settings"
*FvwmForm-ThemeSettings: Line center
*FvwmForm-ThemeSettings: Text ""
*FvwmForm-ThemeSettings: Font 7x14
*FvwmForm-ThemeSettings: Line center
#*FvwmForm-ThemeSettings: Text "           "
*FvwmForm-ThemeSettings: Selection Opt1 multiple
*FvwmForm-ThemeSettings: Choice ANIM ANIM $ANIM=on  "Animation "
*FvwmForm-ThemeSettings: Choice BACK BACK $BACK=on  "Background"
*FvwmForm-ThemeSettings: Choice BANN BANN $BANN=on  "Banner    "
*FvwmForm-ThemeSettings: Choice STRK STRK $STRK=off "Stroke"
*FvwmForm-ThemeSettings: Line center
*FvwmForm-ThemeSettings: Text ""
*FvwmForm-ThemeSettings: Line left
*FvwmForm-ThemeSettings: Text "     Sound "
*FvwmForm-ThemeSettings: Selection Opt2 single
*FvwmForm-ThemeSettings: Choice SDIS 1 $SDIS=on  "Disabled  "
*FvwmForm-ThemeSettings: Choice SOXP 2 $SOXP=off "play (sox)"
*FvwmForm-ThemeSettings: Choice SESD 3 $SESD=off "esdplay   "
*FvwmForm-ThemeSettings: Choice SAUD 4 $SAUD=off "audioplay "
*FvwmForm-ThemeSettings: Line left
*FvwmForm-ThemeSettings: Text "     Player"
*FvwmForm-ThemeSettings: Choice SAUP 5 $SAUP=off "auplay    "
*FvwmForm-ThemeSettings: Choice SRPL 6 $SRPL=off "rplay     "
*FvwmForm-ThemeSettings: Choice SRPD 7 $SRPD=off "rplayD    "
*FvwmForm-ThemeSettings: Choice SAUD 8 $SAUD=off "artsplay  "
*FvwmForm-ThemeSettings: Line center
*FvwmForm-ThemeSettings: Text ""
*FvwmForm-ThemeSettings: Line left
*FvwmForm-ThemeSettings: Text " Auto-Raise"
*FvwmForm-ThemeSettings: Selection Opt3 single
*FvwmForm-ThemeSettings: Choice AUTD 1 $AUTD=on  "Disabled  "
*FvwmForm-ThemeSettings: Choice AUT1 2 $AUT1=off "1/2 sec   "
*FvwmForm-ThemeSettings: Choice AUT2 3 $AUT2=off "2 secs    "
*FvwmForm-ThemeSettings: Choice AUTM 4 $AUTM=off "Modules   "
*FvwmForm-ThemeSettings: Line center
*FvwmForm-ThemeSettings: Text ""
*FvwmForm-ThemeSettings: Line left
*FvwmForm-ThemeSettings: Text "Icon Styles"
*FvwmForm-ThemeSettings: Selection Opt4 single
*FvwmForm-ThemeSettings: Choice ICSD 1 $ICSD=off "Disabled  "
*FvwmForm-ThemeSettings: Choice ICSN 2 $ICSN=on  "Internal wm-icons  "
*FvwmForm-ThemeSettings: Choice ICSW 3 $ICSW=off "External wm-icons  "
*FvwmForm-ThemeSettings: Line center
*FvwmForm-ThemeSettings: Text ""
*FvwmForm-ThemeSettings: Line left
*FvwmForm-ThemeSettings: Font 10x20
*FvwmForm-ThemeSettings: Text "KDE          "
*FvwmForm-ThemeSettings: Font 7x14
*FvwmForm-ThemeSettings: Selection Opt5 multiple
*FvwmForm-ThemeSettings: Choice KFM KFM $KFM=off "kfm icons workaround"
*FvwmForm-ThemeSettings: Line center
*FvwmForm-ThemeSettings: Text "    System Menu"
*FvwmForm-ThemeSettings: Selection Opt6 single
*FvwmForm-ThemeSettings: Choice KSDIS  1 $KSDIS=on   "Disabled  "
*FvwmForm-ThemeSettings: Choice KSMSTL 2 $KSMSTL=off "Menus and Styles(48x48 icons)"
*FvwmForm-ThemeSettings: Line center
*FvwmForm-ThemeSettings: Text "               "
*FvwmForm-ThemeSettings: Choice KSMEN  4 $KSMEN=off  "Menus Only"
*FvwmForm-ThemeSettings: Choice KSMSTS 3 $KSMSTS=off "Menus and Styles(32x32 icons)"
*FvwmForm-ThemeSettings: Line center
*FvwmForm-ThemeSettings: Text "       User Menu"
*FvwmForm-ThemeSettings: Selection Opt7 single
*FvwmForm-ThemeSettings: Choice KUDIS  1 $KUDIS=on  "Disabled  "
*FvwmForm-ThemeSettings: Choice KUMEN  2 $KUMEN=off "Menus Only"
*FvwmForm-ThemeSettings: Choice KUMST  3 $KUMST=off "Menus and Styles"
*FvwmForm-ThemeSettings: Line center
*FvwmForm-ThemeSettings: Text ""
*FvwmForm-ThemeSettings: Line left
*FvwmForm-ThemeSettings: Font 10x20
*FvwmForm-ThemeSettings: Text "GNOME        "
*FvwmForm-ThemeSettings: Font 7x14
*FvwmForm-ThemeSettings: Selection Opt8 multiple
*FvwmForm-ThemeSettings: Choice GPSP GPSP $GPSP=off "Panel Stays Put"
*FvwmForm-ThemeSettings: Line left
*FvwmForm-ThemeSettings: Text "       System Menu"
*FvwmForm-ThemeSettings: Selection Opt9 single
*FvwmForm-ThemeSettings: Choice GSDIS  1 $GSDIS=on   "Disabled            "
*FvwmForm-ThemeSettings: Choice GSFVMS 6 $GSFVMS=off "Fvwm Menu & Styles    "
*FvwmForm-ThemeSettings: Line center
*FvwmForm-ThemeSettings: Text "                  "
*FvwmForm-ThemeSettings: Choice GSFVWM 4 $GSFVWM=off "Fvwm Menu(wm icons) "
*FvwmForm-ThemeSettings: Choice GSFVGN 5 $GSFVGN=off "Fvwm Menu(gnome icons)"
*FvwmForm-ThemeSettings: Line center
*FvwmForm-ThemeSettings: Text "                  "
*FvwmForm-ThemeSettings: Choice GSGTKM 2 $GSGTKM=off "Gtk Menu            "
*FvwmForm-ThemeSettings: Choice GSGTKS 3 $GSGTKS=off "Gtk Menu & Styles     "
*FvwmForm-ThemeSettings: Line center
*FvwmForm-ThemeSettings: Text "        User Menu"
*FvwmForm-ThemeSettings: Selection Opt10 single
*FvwmForm-ThemeSettings: Choice GUDIS 1 $GUDIS=on  "Disabled  "
*FvwmForm-ThemeSettings: Choice GUGTK 2 $GUGTK=off "Gtk Menu  "
*FvwmForm-ThemeSettings: Choice GUFVW 3 $GUFVW=off "Fvwm Menu       "
*FvwmForm-ThemeSettings: Line center
*FvwmForm-ThemeSettings: Text "AnotherLevel Menu"
*FvwmForm-ThemeSettings: Selection Opt11 single
*FvwmForm-ThemeSettings: Choice ALDIS 1 $ALDIS=on  "Disabled  "
*FvwmForm-ThemeSettings: Choice ALGTK 2 $ALGTK=off "Gtk Menu  "
*FvwmForm-ThemeSettings: Choice ALFVW 3 $ALFVW=off "Fvwm Menu       "
*FvwmForm-ThemeSettings: Line center
*FvwmForm-ThemeSettings: Text ""
*FvwmForm-ThemeSettings: Line left
*FvwmForm-ThemeSettings: Font 10x20
*FvwmForm-ThemeSettings: Text "Session Manager"
*FvwmForm-ThemeSettings: Font 7x14
*FvwmForm-ThemeSettings: Selection Opt12 single
*FvwmForm-ThemeSettings: Choice NOSN 1 $NOSN=on  "None   "
*FvwmForm-ThemeSettings: Choice GESN 2 $GESN=off "Generic  "
*FvwmForm-ThemeSettings: Choice GNSN 3 $GNSN=off "gnome-session"
*FvwmForm-ThemeSettings: Choice XSSN 4 $GESN=off "xsm"
*FvwmForm-ThemeSettings: Line center
*FvwmForm-ThemeSettings: Text ""
*FvwmForm-ThemeSettings: Line expand
*FvwmForm-ThemeSettings: Button continue "Apply & Save"
*FvwmForm-ThemeSettings: Command FuncFvwmThemesConfigAndUpdate ' \
--variant settings/animation=$(ANIM!1)$(ANIM?2) \
--variant settings/background=$(BACK!1)$(BACK?2) \
--variant settings/banner=$(BANN!1)$(BANN?2) \
--variant settings/stroke=$(STRK!1)$(STRK?2) \
--variant settings/sound-player="$(Opt2)" \
--variant settings/autoraise="$(Opt3)" \
--variant settings/iconstyles="$(Opt4)" \
--variant settings/kde/kfm-icons=$(KFM!1)$(KFM?2) \
--variant settings/kde/system-menu="$(Opt6)" \
--variant settings/kde/user-menu="$(Opt7)" \
--variant settings/gnome/panel-staysput=$(GPSP!1)$(GPSP?2) \
--variant settings/gnome/system-menu="$(Opt9)" \
--variant settings/gnome/user-menu="$(Opt10)" \
--variant settings/gnome/anotherlevel-menu="$(Opt11)" \
--variant settings/session-manager="$(Opt12)" '

*FvwmForm-ThemeSettings: Command !(          /bin/echo \
'# File created by FvwmForm-ThemeSettings' ; /bin/echo \
'*SavedThemeSettings: ANIM $(ANIM?on)'     ; /bin/echo \
'*SavedThemeSettings: BACK $(BACK?on)'     ; /bin/echo \
'*SavedThemeSettings: BANN $(BANN?on)'     ; /bin/echo \
'*SavedThemeSettings: STRK $(STRK?on)'     ; /bin/echo \
'*SavedThemeSettings: SDIS $(SDIS?on)'     ; /bin/echo \
'*SavedThemeSettings: SOXP $(SOXP?on)'     ; /bin/echo \
'*SavedThemeSettings: SESD $(SESD?on)'     ; /bin/echo \
'*SavedThemeSettings: SAUD $(SAUD?on)'     ; /bin/echo \
'*SavedThemeSettings: SAUP $(SAUP?on)'     ; /bin/echo \
'*SavedThemeSettings: SRPL $(SRPL?on)'     ; /bin/echo \
'*SavedThemeSettings: SRPD $(SRPD?on)' \
) > $FVWM_USERDIR/.FvwmForm-ThemeSettings

*FvwmForm-ThemeSettings: Command !(          /bin/echo \
'*SavedThemeSettings: AUTD $(AUTD?on)'     ; /bin/echo \
'*SavedThemeSettings: AUT1 $(AUT1?on)'     ; /bin/echo \
'*SavedThemeSettings: AUT2 $(AUT2?on)'     ; /bin/echo \
'*SavedThemeSettings: AUTM $(AUTM?on)'     ; /bin/echo \
'*SavedThemeSettings: ICSD $(ICSD?on)'     ; /bin/echo \
'*SavedThemeSettings: ICSN $(ICSN?on)'     ; /bin/echo \
'*SavedThemeSettings: ICSW $(ICSW?on)'     ; /bin/echo \
'*SavedThemeSettings: KFM $(KFM?on)'       ; /bin/echo \
'*SavedThemeSettings: KSDIS $(KSDIS?on)'   ; /bin/echo \
'*SavedThemeSettings: KSMEN $(KSMEN?on)'   ; /bin/echo \
'*SavedThemeSettings: KSMSTL $(KSMSTL?on)' ; /bin/echo \
'*SavedThemeSettings: KSMSTS $(KSMSTS?on)' ; /bin/echo \
'*SavedThemeSettings: KUDIS $(KUDIS?on)'   ; /bin/echo \
'*SavedThemeSettings: KUMEN $(KUMEN?on)'   ; /bin/echo \
'*SavedThemeSettings: KUMST $(KUMST?on)' \
) >> $FVWM_USERDIR/.FvwmForm-ThemeSettings

*FvwmForm-ThemeSettings: Command !(          /bin/echo \
'*SavedThemeSettings: GPSP $(GPSP?on)'     ; /bin/echo \
'*SavedThemeSettings: GSDIS $(GSDIS?on)'   ; /bin/echo \
'*SavedThemeSettings: GSGTKM $(GSGTKM?on)' ; /bin/echo \
'*SavedThemeSettings: GSGTKS $(GSGTKS?on)' ; /bin/echo \
'*SavedThemeSettings: GSFVWM $(GSFVWM?on)' ; /bin/echo \
'*SavedThemeSettings: GSFVGN $(GSFVGN?on)' ; /bin/echo \
'*SavedThemeSettings: GSFVMS $(GSFVMS?on)' ; /bin/echo \
'*SavedThemeSettings: GUDIS $(GUDIS?on)'   ; /bin/echo \
'*SavedThemeSettings: GUGTK $(GUGTK?on)'   ; /bin/echo \
'*SavedThemeSettings: GUFVW $(GUFVW?on)'   ; /bin/echo \
'*SavedThemeSettings: ALDIS $(ALDIS?on)'   ; /bin/echo \
'*SavedThemeSettings: ALGTK $(ALGTK?on)'   ; /bin/echo \
'*SavedThemeSettings: ALFVW $(ALFVW?on)'   ; /bin/echo \
'*SavedThemeSettings: NOSN $(NOSN?on)'     ; /bin/echo \
'*SavedThemeSettings: GESN $(GESN?on)'     ; /bin/echo \
'*SavedThemeSettings: GNSN $(GNSN?on)'     ; /bin/echo \
'*SavedThemeSettings: XSSN $(XSSN?on)' \
) >> $FVWM_USERDIR/.FvwmForm-ThemeSettings

*FvwmForm-ThemeSettings: Button restart "Reset"
*FvwmForm-ThemeSettings: Command Nop
*FvwmForm-ThemeSettings: Button quit "Dismiss"
*FvwmForm-ThemeSettings: Command Nop
*FvwmForm-ThemeSettings: UseData .FvwmForm-ThemeSettings *SavedThemeSettings
