Modify lock screen script to use current wallpaper
This commit is contained in:
parent
0061c93ef5
commit
d2c6a7b9a0
|
@ -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
|
||||
|
|
Reference in a new issue