1 2 3 4 5 6
#!/bin/sh xidlehook \ --detect-sleep --not-when-audio --not-when-fullscreen \ --timer 300 'betterlockscreen -l' '' \ --timer 60 'systemctl suspend' '' &