add fuzzy-i3lock

This commit is contained in:
finga 2019-12-03 20:57:14 +01:00
parent 957a010e66
commit ae193cf41c
2 changed files with 14 additions and 0 deletions

View file

@ -1,5 +1,6 @@
*
!/bin
!/bin/fuzzy-i3lock
!/bin/i3-run
!/.config
!/.config/i3

13
bin/fuzzy-i3lock Executable file
View file

@ -0,0 +1,13 @@
#!/bin/sh -e
#
# Show a pixelated screenshot as background image of i3lock
#
# See <https://faq.i3wm.org/question/83/how-to-run-i3lock-after-computer-inactivity/>
# Copied from <https://r0tty.org/git/dotfiles/i3/tree/bin/fuzzy-i3lock>
#
screenshot="${TMPDIR:-/tmp}/fuzzy-i3lock.png"
scrot "$screenshot"
mogrify -scale 10% -scale 1000% "$screenshot"
exec i3lock -i "$screenshot"