2015-05-29 21:08:06 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
2015-08-30 12:10:55 +02:00
|
|
|
#TMP=/tmp/lockscreen.png
|
2015-05-29 21:08:06 +02:00
|
|
|
|
|
|
|
#scrot -q 30 -z $TMP
|
|
|
|
#convert $TMP -scale 10% -scale 1000% $TMP
|
|
|
|
|
2015-08-30 12:10:55 +02:00
|
|
|
#blurscreen $TMP
|
2015-07-22 01:12:27 +02:00
|
|
|
#convert -brightness-contrast -50x-40 $TMP $TMP
|
2015-08-30 12:10:55 +02:00
|
|
|
#scrot $TMP -e 'convert -resize 20% -fill "#282828" -colorize 50% -blur 0x1 -resize 500% $f '"$TMP"
|
|
|
|
#convert -gravity Center -composite $TMP ~/.config/lock.png $TMP
|
2015-10-12 21:43:15 +02:00
|
|
|
|
|
|
|
if [ -n "$(pgrep i3lock)" ]; then
|
|
|
|
echo "i3lock already running. Aborting" >&2
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2015-08-30 12:10:55 +02:00
|
|
|
exec i3lock -u -i ~/.config/lockimage.png -c 000000
|