From e2238b6ab71dd26c0cad283d7323279f16454a63 Mon Sep 17 00:00:00 2001 From: Casper Date: Mon, 23 Dec 2024 12:30:09 -0700 Subject: added script to blur screen on lock --- scripts/blurlock.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 scripts/blurlock.sh (limited to 'scripts/blurlock.sh') 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 -- cgit v1.2.3