You can do it with automation apps. I use Automagic (automagic4android.com - available in the Play Store). You have to build automation flows yourself, or use community built flows from the forums, but it can mimic this functionality. I used it to do just that on my old GS3. I like Active Display, so I don't use that automation any more, but I have a lot of other stuff I do w/ Automagic. My primary use is to set audio profiles based on location and time of day, but I have a lot of other stuff like starting my audiobook player when I connect a headset, reading incoming messages if I have a headset connected, playing an audio notification when the battery hits full charge, etc.