aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/bin/lock
blob: 863f878472eaffffc8fda0c414e2dc690f84ea88 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh -e

# 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
# Turn the screen off after a delay.
sleep 60
# if i3lock is still running
pgrep i3lock && xset dpms force off