.bin/screenlock.sh: pixelate screenshot instead of showing static lock image

This commit is contained in:
Franzi 2020-12-23 09:09:39 +01:00
parent 33f022a2ee
commit 307017eec2
Signed by untrusted user: kunsi
GPG key ID: 12E3D2136B818350

View file

@ -1,9 +1,15 @@
#!/bin/bash #!/bin/bash
tmpbg="/tmp/lock_$(whoami).png"
xset s noblank xset s noblank
xset s 90 10 xset s 90 10
pactl set-sink-mute alsa_output.pci-0000_00_1f.3.analog-stereo 1 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 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