blob: aea1a7d32626b9fe05978c13d5c84095fa74016a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#!/bin/mksh
bg=/tmp/screen.png
lock_png=${HOME}/scripts/lock.png
_backlight=$(xbacklight -get)
backlight=${_backlight::2}
scrot ${bg}
#convert ${bg} -scale 25% -scale 400% ${bg}
convert ${bg} -blur 0x2 -sharpen 1x4 ${bg}
[[ -f ${lock_png} ]] && convert ${bg} ${lock_png} \
-gravity center -composite -matte \
${bg}
xbacklight -set 5
i3lock -u -n -i ${bg}
rm ${bg}
xbacklight -set $backlight
|