Bloodsucker

This commit is contained in:
Geoffrey Frogeye 2020-08-08 11:19:48 +02:00
parent 6cdd924613
commit f03d13f7db
8 changed files with 140 additions and 811 deletions

View file

@ -7,11 +7,17 @@ echo RELOADAGENT | gpg-connect-agent
dm-tool lock
if [ $? -ne 0 ]; then
if [ -d ~/.cache/lockpatterns ]
then
pattern=$(find ~/.cache/lockpatterns/ | sort -R | head -1)
else
pattern=$HOME/.config/i3/lock.png
fi
revert() {
xset dpms 0 0 0
}
trap revert SIGHUP SIGINT SIGTERM
xset dpms 5 5 5
i3lock --nofork --color 648901 --image=$HOME/.config/i3/lock.png --tiling --ignore-empty-password
i3lock --nofork --color 648901 --image=$pattern --tiling --ignore-empty-password
revert
fi