summaryrefslogtreecommitdiff
path: root/.local/bin/lock
blob: 7f2c14582101d095f1468e136611a5476601fa5c (plain)
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