diff options
| author | Casper <me@skylarcloud.xyz> | 2024-12-23 12:30:09 -0700 | 
|---|---|---|
| committer | Casper <me@skylarcloud.xyz> | 2024-12-23 12:30:09 -0700 | 
| commit | e2238b6ab71dd26c0cad283d7323279f16454a63 (patch) | |
| tree | 7e41198969a7f81ab1f8a50fcdd4b9f3989eb6da | |
| parent | 0261e2bbe1f89d15d4a6b7bec29a6f6ba75fbfe0 (diff) | |
added script to blur screen on lock
| -rw-r--r-- | README.md | 3 | ||||
| -rw-r--r-- | scripts/blurlock.sh | 12 | 
2 files changed, 14 insertions, 1 deletions
| @@ -103,5 +103,6 @@ This does many things to set up a convenient i3 environment.  -   Moves my i3 config into place  -   Prioritizes xfce4-terminal and st in */usr/bin/qubes-i3-sensible-terminal*  -   Enables tap-to-click and natural scrolling --   Replaces dmenu with rofi +-   Replaces dmenu with rof +-   Blur-lock script for a more interesting lock-screen 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 |