I actually need it because my MagSafe charger is plugged in to an automated wall plug which gives electricity only for 3 hours during the night. So when I’m sleeping it makes a loud MagSafe noise. You all hear it when you put your phone on a MagSafe which gives electricity.You don't even need a shortcut for this, just add the focus filter for "silent mode" to your work focus, and make sure you have a "smart activation" for it based on your work location. I have my work focus set up this way.
And there’s even an option for it in shortcut app as I shown in my previous post so… why it can’t work?