Add sceen timeout on lock

This commit is contained in:
Riyyi
2017-12-24 23:16:49 +01:00
parent fc456cc976
commit 5ef60dbd41
+3 -1
View File
@@ -1,9 +1,11 @@
#!/bin/bash
xset s 30 30
icon="$HOME/Pictures/lock.png"
tmpbg='/tmp/screen.png'
scrot "$tmpbg"
convert "$tmpbg" -scale 10% -scale 1000% "$tmpbg"
convert "$tmpbg" "$icon" -gravity center -composite -matte "$tmpbg"
i3lock -u -i "$tmpbg"
i3lock --nofork -u -i "$tmpbg"; xset s off