summaryrefslogtreecommitdiff
path: root/.local/bin/lock
blob: 191c876b64a9648dd2f423b0e3c6ac5de6848641 (plain)
1
2
3
4
5
6
7
8
9
#!/bin/sh

xset dpms 5
xidlehook \
  --detect-sleep --not-when-audio --not-when-fullscreen \
  --timer 60 'systemctl suspend' '' &
slock
kill $!
xset dpms 300