Is there a way to close all Sync Metrics locks at once?

I’m currently adjusting the spacing of a new typeface, and during the process I noticed that many glyphs have the Sync Metrics lock (LSB/RSB lock icon) open.

Because I’m testing different letter combinations, I constantly need to close those locks manually, glyph by glyph, to keep left and right sidebearings synced while spacing. This becomes quite slow and repetitive when working across many glyphs.

My question is:Is there any way to close (enable) Sync Metrics for multiple glyphs at once?
Either via a script, a command, or any built-in feature I might be missing?

I’m not referring to Metrics Keys (= / ==), only to the Sync Metrics lock icon itself.

Example

Thanks in advance!

You’re not talking about metrics keys. You’re changing the kerning. Is that what you want?

Read this, especially the section on kerning exceptions.

Yes, I am working on kerning.

While kerning, I noticed that many glyphs have the Sync Metrics (LSB/RSB) lock open. For some tests I want LSB and RSB to stay linked, so I have to manually close the lock for each glyph involved, which gets slow.

You are not talking about syncing metrics. You are talking about kerning exceptions.

Read this:

The lock symbol is misleading, and it has occasionally caused confusion in my discussions about kerning with others. The thing is, there doesn’t seem to be an obviously better symbol that should be used.

There is nothing “locked” about the pairs that are shown with a locked icon in Glyphs. It simply tells you whether you are editing a group-group pair, or a glyph-glyph pair, or a group-glyph pair.