summaryrefslogtreecommitdiff
path: root/xinit/Scripts/lock.sh
blob: 1e4efed2f6f28160817bed04ffde8a3bf3a6f862 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/usr/bin/env bash

LOCKFILE=/tmp/lockscreen.png

scrot -o $LOCKFILE
size=$(identify -format "%[fx:w]x%[fx:h]" "$LOCKFILE")

convert $LOCKFILE -scale 70 -sample $size\! -quality 11 $LOCKFILE

i3lock -i $LOCKFILE