aboutsummaryrefslogtreecommitdiff
path: root/misc/bin/lock.sh
blob: 6088b94eaf5b9ab4e9bc5ca6b91b2c853efd1107 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
#!/bin/bash

# Take a screenshot
scrot -o /tmp/screen_locked.png

# Pixellate it 10x
mogrify -scale 10% -scale 1000% /tmp/screen_locked.png

# Lock screen displaying this image.
i3lock -i /tmp/screen_locked.png