diff options
Diffstat (limited to '')
-rwxr-xr-x | .i3/scripts/xlock.sh | 12 |
1 files changed, 8 insertions, 4 deletions
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 |