home/.bin/i3-salt-lock

10 lines
244 B
Plaintext
Raw Normal View History

2017-07-30 00:04:04 -05:00
#!/bin/sh
SHOT=/tmp/lockimg.png
LOCKIMAGE=$HOME/.i3lockicon
2017-07-30 00:04:04 -05:00
import -window root $SHOT
convert $SHOT -scale 10% -scale 1000% $SHOT
[[ -f $LOCKIMAGE ]] && convert $SHOT $LOCKIMAGE -gravity center -composite -matte $SHOT
2017-07-30 00:04:04 -05:00
i3lock -i $SHOT
rm $SHOT