Browse Source

Add sceen timeout on lock

master
Riyyi 7 years ago
parent
commit
5ef60dbd41
  1. 4
      .config/i3/scripts/lock.sh

4
.config/i3/scripts/lock.sh

@ -1,9 +1,11 @@
#!/bin/bash #!/bin/bash
xset s 30 30
icon="$HOME/Pictures/lock.png" icon="$HOME/Pictures/lock.png"
tmpbg='/tmp/screen.png' tmpbg='/tmp/screen.png'
scrot "$tmpbg" scrot "$tmpbg"
convert "$tmpbg" -scale 10% -scale 1000% "$tmpbg" convert "$tmpbg" -scale 10% -scale 1000% "$tmpbg"
convert "$tmpbg" "$icon" -gravity center -composite -matte "$tmpbg" convert "$tmpbg" "$icon" -gravity center -composite -matte "$tmpbg"
i3lock -u -i "$tmpbg" i3lock --nofork -u -i "$tmpbg"; xset s off

Loading…
Cancel
Save