From 2d07fdf98ccd2e903f0188af312cafed89629cca Mon Sep 17 00:00:00 2001 From: Sebastian Bugge Date: Wed, 25 Dec 2024 19:31:30 +0100 Subject: [PATCH] Add blur effect to lock screen. --- .config/i3/i3exit | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.config/i3/i3exit b/.config/i3/i3exit index 837b8ee..1504e8a 100755 --- a/.config/i3/i3exit +++ b/.config/i3/i3exit @@ -1,17 +1,22 @@ #!/usr/bin/env bash +lock() { + width_height=$(xdpyinfo | awk '/dimensions/ {print $2}') + scrot - | convert - -scale 80% -blur 0x2.0 -resize "$width_height" RGB:- | i3lock --nofork --raw "$width_height":rgb --image /dev/stdin +} + case "$1" in lock) - i3lock + lock ;; logout) i3-msg exit ;; suspend) - i3lock && systemctl suspend + lock && systemctl suspend ;; hibernate) - i3lock && systemctl hibernate + lock && systemctl hibernate ;; reboot) systemctl reboot