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
Bash
Executable file

#!/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"
xset dpms force off