summaryrefslogtreecommitdiff
path: root/.local/bin/lock
blob: 9595b815374eb7bebf69a0cc3593ec3050366a5f (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 300