Skip to content

Instantly share code, notes, and snippets.

@appuchias
Last active June 29, 2022 17:44
Show Gist options
  • Save appuchias/2af174dc9ddea260b5dcc8b44a7cc9fc to your computer and use it in GitHub Desktop.
Save appuchias/2af174dc9ddea260b5dcc8b44a7cc9fc to your computer and use it in GitHub Desktop.
Blurred screen locking using i3lock/betterlockscreen.
#!/usr/bin/sh
# This script enables a lock screen for a dual monitor setup with a blurred background.
# It usually takes 3 seconds to render blur and lock the screen.
# scrot /tmp/sshot_src.png
flameshot full -p /tmp/sshot.png
# convert /tmp/sshot_src.png -blur 0x9 /tmp/sshot.png
# rm /tmp/sshot_src.png
# i3lock -i /tmp/sshot.png
# betterlockscreen -u /tmp/sshot.png --span --fx
betterlockscreen -u /tmp/sshot.png --span --fx blur,color --color "#373b41" --blur 2
rm /tmp/sshot.png
# betterlockscreen -l
betterlockscreen -l blur
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment