Modify lock screen script to use current wallpaper

This commit is contained in:
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

View file

@ -1,3 +1,8 @@
#!/bin/sh #!/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 xset dpms force off