Bloodsucker
This commit is contained in:
parent
6cdd924613
commit
f03d13f7db
8 changed files with 140 additions and 811 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue