Show monitor name in the pager (replace desktop name or DeskName/MonitorName format)

I have a two monitor configuration:

xrandr --output HDMI-2 --primary --mode 2560x1440 --pos 1920x0 --rotate normal --output HDMI-3 --mode 1920x1080 --pos 0x360

I configured two FvwmPager (one for each monitor):

DesktopConfiguration per-monitor
DeskTopSize 4x3

*PagerDeskTopScale 60

Style *Pager Sticky, StaysOnTop, FixedPosition, FixedSize, !Iconifiable, BorderWidth 5, NoTitle
Style MainPager StartsOnScreen HDMI-2
*MainPager: Monitor HDMI-2
*MainPager: Geometry -5-5@HDMI-2

Style SecondaryPager StartsOnScreen HDMI-3
*SlavePager: Geometry -5-5@HDMI-3
*SlavePager: Monitor HDMI-3

Module FvwmPager MainPager
Module FvwmPager SlavePager

A want to set the “title” of pager to: “Desk 0/HDMI-2” and “Desk 0/HDMI-3” respectively. (Or better if we can set to anything…)

There is a way to do this: Shallow FvwmPager into FvwmButtons (do so all instances) and in buttons create a row for the title. You could name them anything you like there.