This repository has been archived on 2020-08-28. You can view files and clone it, but cannot push or open issues or pull requests.
ansible-laptop/roles/gui/files/lock

9 lines
221 B
Plaintext
Raw Normal View History

2018-10-12 22:44:28 +02:00
#!/bin/sh
if [ -e "$HOME/.fehbg" ]; then
image="$(tail -n 1 "$HOME/.fehbg" | cut -d' ' -f 4- | tail -c +2 | head -c -3)"
else
image="/usr/share/wallpapers/lockscreen.png"
fi
i3lock -f -t -i "$image"
2018-10-12 22:44:28 +02:00
xset dpms force off