wmctrl
Save and restore windows for X11 desktop environment like Gnome, and many other features.
List X windows in JSON from the command-line