Skip to content

Commit

Permalink
Update readme to explain autolock feature
Browse files Browse the repository at this point in the history
  • Loading branch information
Kilobyte22 committed Mar 21, 2016
1 parent be52554 commit bc58b5d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,15 @@

Make sure lockd starts together with your i3:
```
exec_once lockd
execonce lockd
```

To lock your screen manually, do not start i3lock manually but use `lockctl lock` to ensure the internal state of lockd is correct.

To prevent your system from suspending when you close the lid, run `lockctl lidaction ignore`. To revert use `lockctl lidaction suspend`. You can query the status at any time using `lockctl lidaction`

### Automatic Screen Locking

set up xautolock: `xautolock -locker 'lockctl perform_autolock'`

To temporarily turn off automatic screen locking: `lockctl autolock off`. Once that has been run, `lockctl perform_autolock` turns onto a no-op

0 comments on commit bc58b5d

Please sign in to comment.