This is what I add to my i3 config file to sort out screen locking:
bindsym mod4+l exec "i3lock -t -i /path_to_file.png"
exec --no-startup-id xautolock -locker "i3lock -i -t /path_to_file.png"
This is what I add to my i3 config file to sort out screen locking:
bindsym mod4+l exec "i3lock -t -i /path_to_file.png"
exec --no-startup-id xautolock -locker "i3lock -i -t /path_to_file.png"