summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/blurlock.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/scripts/blurlock.sh b/scripts/blurlock.sh
new file mode 100644
index 0000000..3317ca0
--- /dev/null
+++ b/scripts/blurlock.sh
@@ -0,0 +1,12 @@
+#!/bin/bash
+# Taken from https://github.com/levaphenyl/i3-blurlock
+
+# One positional argument: blur radius (default to 2).
+# Higher values mean stronger blur.
+RADIUS=0x${1:-2}
+
+# Take a screenshot and blur it
+import -silent -window root png:- | \
+ convert - -scale 20% -blur $RADIUS -resize 500% /tmp/screenshot.png
+i3lock -i /tmp/screenshot.png
+exit 0