aboutsummaryrefslogtreecommitdiff
path: root/des/i3/lockscreen.sh
blob: 31e1451dba28f6000894b0235c73718b58a3ced3 (plain)
1
2
3
4
5
6
7
8
#!/bin/bash

IMG=/tmp/screen_locked.png
scrot $IMG
mogrify -scale 10% -scale 1000% $IMG
i3lock -i $IMG

xautolock -time 1 -locker "i3lock -i $IMG" -notify 20 -notifier 'xset dpms force off' &