dotfiles-bin/.local/bin/fuzzy-i3lock

14 lines
383 B
Text
Raw Normal View History

2020-01-11 16:50:22 +01:00
#!/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"
2020-09-02 23:02:13 +02:00
scrot -o "$screenshot"
2020-01-11 16:50:22 +01:00
mogrify -scale 10% -scale 1000% "$screenshot"
exec i3lock -i "$screenshot"