Created
December 25, 2019 02:10
-
-
Save streetturtle/3436d86de376037bf37bb3d379e5d2a1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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