This macro is really nice and a tool I'll definitely be using to learn better how to utilise the possibilities of pmset!
However I did not upon my first look over the list of different pmset's see one that returns a status of wether the MacBook lid is closed or not. I found a script via google that returns a AppleClamshellState, ending with Yes
if the lid is closed, and No
if it is open.
ioreg -r -k AppleClamshellState -d 4 | grep AppleClamshellState | head -1
I was wondering if it was something resembling what I've uploade bellow that you where looking for @August?
Running on battery Notification.kmmacros (4.2 KB)
EDIT: Or a bette solution could maybe be to run just the script in a separate macro, periodically triggered every five minutes or so, and have the rest of the macro triggered by a Power Status Changed trigger.