1 2 3 4 5 6 7 8 9
#!/bin/sh xset dpms 10 xidlehook \ --detect-sleep --not-when-audio --not-when-fullscreen \ --timer 60 'systemctl suspend' '' & slock kill $! xset dpms 300