Execute "After Mac Wakes From Sleep" during lock screen?

As far as I can tell, actions configured for the After Mac Wakes From Sleep trigger will not execute until the lock screen has been dismissed. This is probably intended behavior since most actions only make sense with an unlocked Mac.

However, some actions do make sense before unlocking. In my case, this would be automatically activating the keyboard backlight when I open my MacBook – which would be especially helpful when the lock screen requires my password and I'm in the dark and have no way of activating the backlight until I've entered the password!

(By the way, I first tried the Did Open Macbook Lid trigger, but ran into the same problem as others: it won't work if the computer was sleeping. So I'm now using After Mac Wakes From Sleep, which is not perfect but works well enough... except that, after waking from sleep, my backlight on-switching action won't run until I've dismissed the lock screen.)

So, question: Could you provide an option for the After Mac Wakes From Sleep trigger to execute actions immediately, even if the computer is locked? Or is there some technical reason why actions can't be run while locked?

You could try listening to the workspace did wake notification (NSWorkspaceDidWakeNotification) directly, this should trigger even on login window:

Thanks. I tried that but it doesn't seem to trigger at all (close lid, wait a few seconds/minutes, open lid, see lock screen). Tried several different actions as well. I do see a lot of mentions to the tune of register name: NSWorkspaceDidWakeNotification object: kCFNotificationAnyObject token: 12c500000058 pid: 45850 from distnoted in Console during general use (if that is the actual notification), but if I start Console streaming, close the lid, open and unlock, I don't see any mention of it until I do other stuff.

Ah I'm sorry, this is not a distributed notification but a workspace notification. You need to use this trigger instead:

That did the trick, thanks a lot!