Saved layouts - switch to or new

I have a few saved layouts, such as AlanSingle1 and AlanDual1 and others for browsing folders with image files etc.

They are listed in Preferences, Listers, Layouts, where I can check or uncheck for each one:
"Close all existing Listers when opening this layout"
(which I would prefer to leave unchecked, so I can sometimes have 2 single listers open)

I want to customize the Dopus tray icon's context menu, and /or the main menu in Listers, to have items for switching the current Lister to use one of my saved layouts, and also items for opening a new Lister with one of my layouts:

Switch to AlanSingle1
Switch to AlanDual1
New AlanSingle1
New AlanDual1
etc

I've tried various buit-in and raw commands, such as Go New Layout=AlanSingle1 and Prefs Layout=AlanSingle1

Trouble is, they always obey the checkbox in Preferences, about whether it should open a new lister window without closing the current one, and I can't make two commands which behave differently.

Are there two different raw commands you can suggest which will always do what I want, no matter what the setting is in the Preferences dialog?

Thanks for any help :slight_smile:

Use the LAYOUTCLOSELISTERS argument with the Prefs command to control this.

Eg,

Switch to AlanSingle1 = Prefs LAYOUT=AlanSingle1 LAYOUTCLOSELISTERS=yes
New AlanSingle1 = Prefs LAYOUT=AlanSingle1 LAYOUTCLOSELISTERS=no

Great.
Thanks for your help jon