Skip to content

Instantly share code, notes, and snippets.

@streetturtle
Created December 25, 2019 02:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save streetturtle/3436d86de376037bf37bb3d379e5d2a1 to your computer and use it in GitHub Desktop.
Save streetturtle/3436d86de376037bf37bb3d379e5d2a1 to your computer and use it in GitHub Desktop.
#!/bin/bash
LOCKSCREENIMG='/tmp/lockscreen.png'
pgrep i3lock || ffmpeg -loglevel panic -f x11grab -video_size $(xdpyinfo | grep dimensions | sed -r 's/^[^0-9]*([0-9]+x[0-9]+).*$/\1/') -y -i :0.0+$1,20 -i /opt/lockscreen/uac-removebg.png -filter_complex "boxblur=9,overlay=(main_w-overlay_w)/2:(main_h-overlay_h)/2" -vframes 1 $LOCKSCREENIMG
i3lock -i $LOCKSCREENIMG
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment