From 307017eec2d195567da639d1925585e5fdfb6db5 Mon Sep 17 00:00:00 2001 From: Franziska Kunsmann Date: Wed, 23 Dec 2020 09:09:39 +0100 Subject: [PATCH] .bin/screenlock.sh: pixelate screenshot instead of showing static lock image --- .bin/screenlock.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.bin/screenlock.sh b/.bin/screenlock.sh index df66e7f..237eee2 100755 --- a/.bin/screenlock.sh +++ b/.bin/screenlock.sh @@ -1,9 +1,15 @@ #!/bin/bash +tmpbg="/tmp/lock_$(whoami).png" + xset s noblank xset s 90 10 pactl set-sink-mute alsa_output.pci-0000_00_1f.3.analog-stereo 1 pactl set-source-mute alsa_input.pci-0000_00_1f.3.analog-stereo 1 -i3lock -e -t -i /home/kunsi/Pictures/laptop_unbenutzbar.png +#i3lock -e -t -i /home/kunsi/Pictures/laptop_unbenutzbar.png + +maim $tmpbg +/usr/bin/gm convert $tmpbg -scale 10% -scale 1000% $tmpbg +i3lock -feu -i $tmpbg