home/.bin/i3-salt-lock

17 lines
401 B
Plaintext
Raw Normal View History

2017-07-30 00:04:04 -05:00
#!/bin/sh
SHOT=/tmp/lockimg.png
LOCKIMAGE=~/.i3lockicon
import -window root $SHOT
## Radial blur
#convert $SHOT -resize 50% $IMAGE
#convert $SHOT -blur 2x8 $IMAGE
#convert $SHOT -resize 200% $IMAGE
## Neat info-only censor
convert $SHOT -scale 10% $SHOT
convert $SHOT -scale 1000% $SHOT
[[ -f $LOCKIMAGE ]] && convert $SHOT $LOCKIMG -gravity center -composite -matte $SHOT
i3lock -i $SHOT
rm $SHOT