From 4a884d07ac32a3b1696ade1722ef602ca00bef7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20=27Necoro=27=20Neumann?= Date: Sat, 1 Jun 2013 21:06:18 +0200 Subject: Overhaul xlock.sh --- .i3/scripts/xlock.sh | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to '.i3') diff --git a/.i3/scripts/xlock.sh b/.i3/scripts/xlock.sh index f091e73..cd5acc1 100755 --- a/.i3/scripts/xlock.sh +++ b/.i3/scripts/xlock.sh @@ -1,7 +1,11 @@ #!/bin/sh -scrot /tmp/screen_locked1.png -convert /tmp/screen_locked1.png -scale 5% -scale 2000% /tmp/screen_locked2.png -i3lock -i /tmp/screen_locked2.png +PNG=/tmp/screen_locked.png -rm -f /tmp/screen_locked?.png +scrot $PNG +convert $PNG -scale 5% -scale 2000% $PNG + +killall -SIGUSR1 dunst # pause +i3lock --image=$PNG --nofork +killall -SIGUSR2 dunst # resume +rm -f $PNG -- cgit v1.2.3