fuzzy-i3lock, fuzzy-swaylock: Fox fuzzy lock script
Add the overlooked fuzzy-swaylock which replaces fuzzy-i3lock.
This commit is contained in:
parent
23925c9f34
commit
eb5ee66f1e
3 changed files with 21 additions and 14 deletions
|
@ -15,5 +15,5 @@
|
|||
!/.gitignore.d/sway
|
||||
!/.local
|
||||
!/.local/bin
|
||||
!/.local/bin/fuzzy-i3lock
|
||||
!/.local/bin/fuzzy-swaylock
|
||||
!/.local/bin/i3-run
|
||||
|
|
|
@ -1,13 +0,0 @@
|
|||
#!/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 -o "$screenshot"
|
||||
mogrify -scale 10% -scale 1000% "$screenshot"
|
||||
exec i3lock -i "$screenshot"
|
20
.local/bin/fuzzy-swaylock
Executable file
20
.local/bin/fuzzy-swaylock
Executable file
|
@ -0,0 +1,20 @@
|
|||
#!/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-swaylock.png"
|
||||
|
||||
grim "$screenshot"
|
||||
|
||||
case $1 in
|
||||
"37c3") mogrify -scale 10% -scale 500% -dither FloydSteinberg -colors 32 -scale 200% "$screenshot"
|
||||
;;
|
||||
*) mogrify -scale 10% -scale 1000% "$screenshot"
|
||||
;;
|
||||
esac
|
||||
|
||||
exec swaylock -i "$screenshot"
|
Loading…
Reference in a new issue