diff options
Diffstat (limited to '.local/bin/lock')
-rwxr-xr-x | .local/bin/lock | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/.local/bin/lock b/.local/bin/lock new file mode 100755 index 0000000..191c876 --- /dev/null +++ b/.local/bin/lock @@ -0,0 +1,9 @@ +#!/bin/sh + +xset dpms 5 +xidlehook \ + --detect-sleep --not-when-audio --not-when-fullscreen \ + --timer 60 'systemctl suspend' '' & +slock +kill $! +xset dpms 300 |