diff --git a/roles/gui/files/lock b/roles/gui/files/lock index 8961dc0..8ffb3e8 100755 --- a/roles/gui/files/lock +++ b/roles/gui/files/lock @@ -1,3 +1,8 @@ #!/bin/sh -i3lock -f -t -i /usr/share/wallpapers/lockscreen.png +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" xset dpms force off