mna_kbyshi

lock.sh

Dec 8th, 2017
687
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. #!/usr/bin/env bash
  2.  
  3. overlay="$HOME/pictures/lock_overlay.png"
  4. image="/tmp/screen.png"
  5.  
  6. param=(--textcolor=ffffff00 --insidecolor=e8dcd000 --ringcolor=e8dcd088 --linecolor=2d283e00 --keyhlcolor=e8dcd0ff --ringvercolor=E9A66Cff --separatorcolor=22222200 --insidevercolor=fadd5c00 --ringwrongcolor=CE325Bff --insidewrongcolor=f1345900 )
  7.  
  8. ffmpeg -loglevel quiet -f x11grab -video_size 1366x768 -y -i $DISPLAY -i $overlay -filter_complex "boxblur=10,overlay=(main_w-overlay_w)/2:(main_h-overlay_h)/2" -vframes 1 $image
  9.  
  10. feh "$image" &
  11. i3lock "${param[@]}" -i "$image" -n
  12. sleep 0.05 ; killall feh
Advertisement
Add Comment
Please, Sign In to add comment