Trigger on network connection

Does anybody have a way to trigger based on a network connection/disconnection event? I'd like to be able to script up actions based on when I connect to ethernet or switch wifi networks. Thanks in advance!

Create a Conditional Activation Group using the plus on the bottom left!

Thanks for the tip @caliguvara, I hadn't noticed that before.

I'm relatively new at this and don't see how that triggers an event where I can perform actions based on plugging in ethernet.

I do see a condition based on a wifi name, but not sure how to trigger a wifi network change either.