
You will need
framework-res.apk from the rom you are modding
SystemUI.apk from your Rom
Notepad++ or another text editor of your choice
apktool
Ok now we can start

First decompile Systemui.apk with this comand
apktool d systemui.apk
from
<bool name="doze_display_state_supported">false</bool>
<bool name="doze_pulse_on_pick_up">false</bool>
<bool name="doze_display_state_supported">true</bool>
<bool name="doze_pulse_on_pick_up">true</bool>
apktool b systemui
Now start to mod framework-res.apk
Decompile framework-res.apk with apktool with this comand:
apktool d framework-res.apk
from
<string name="config_dozeComponent"></string>
<string name="config_dozeComponent">com.android.systemui/com.android.systemui.doze.DozeService</string>
Now in the same folder open bool.xml and with notepad++ and mod this line:
from
<bool name="config_dozeAfterScreenOff">false</bool>
<bool name="config_powerDecoupleInteractiveModeFromDisplay">false</bool>
<bool name="config_dozeAfterScreenOff">true</bool>
<bool name="config_powerDecoupleInteractiveModeFromDisplay">true</bool>
Now in the same folder open Interger.xml with notepad++ andmod this line:
from
<integer name="config_screenBrightnessDoze">1</integer>
<integer name="config_screenBrightnessDoze">17</integer>
apktool b framework-res.apk

NB... Remember to insert original Signature after recompile APK,you can find in original folder on apktool
In attachment file there is my apktool if you need

thanks to david279 for update guide