Modify lock screen script to use current wallpaper

master
Simon Bruder 2020-02-01 21:51:47 +00:00
parent 0061c93ef5
commit d2c6a7b9a0
No known key found for this signature in database
GPG Key ID: 6F03E0000CC5B62F
1 changed files with 6 additions and 1 deletions

View File

@ -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