This repository has been archived on 2022-08-21. You can view files and clone it, but cannot push or open issues or pull requests.
|
#!/bin/sh
|
|
|
|
# Lock before suspend integration with elogind
|
|
|
|
username=[username]
|
|
export XAUTHORITY="/run/user/1000/Xauthority"
|
|
export DISPLAY=":0"
|
|
case $1/$2 in
|
|
pre/*)
|
|
su "$username" -c "/usr/bin/i3lock" &
|
|
sleep 1s
|
|
;;
|
|
post/*)
|
|
;;
|
|
esac
|