August
November 29, 2023, 4:19am
11
@Alexander 's Shell Script line answers the "lid closed" issue, but I've discovered that still doesn't solve my probem, so I've asked the next question in a separate thread:
I'm trying get some kind of alert when my laptop is:
Running NoSleep so that closing the lid does not trigger Sleep,
Playing music through the headphones (with the lid closed)
Unexpectedly on battery power because the MagSafe connector has popped off.
I use the Power Status Changed trigger and the Battery function to trigger a warning message on the screen, and a Shell Script line from @Alexander https://forum.keyboardmaestro.com/t/how-to-tell-when-the-laptop-lid-is-closed/34274/3 to add a so…