summaryrefslogtreecommitdiff
path: root/bin/.local/bin/lock
blob: d7dc6320873d7330a5ffc1f168e8af6464ebe302 (plain)
1
2
3
4
5
6
#!/bin/bash
scrot /tmp/screen.png
convert /tmp/screen.png -scale 10% -scale 1000% /tmp/screen.png
[[ -f $1 ]] && convert /tmp/screen.png $1 -gravity center -composite -matte /tmp/screen.png
i3lock -u -i /tmp/screen.png
rm /tmp/screen.png