i3lock: Make fuzzy-i3lock a bit like 37c3

This commit is contained in:
finga 2023-11-30 16:09:32 +01:00
parent c3bf62e3ed
commit c4a7b9bc40
2 changed files with 9 additions and 2 deletions

View file

@ -41,7 +41,7 @@ bindsym $mod+Shift+Return exec i3-sensible-editor
bindsym $mod+Print exec scrot ~/tmp/screenshots/'%Y-%m-%d_%H:%M:%S_$wx$h.png'
# lock screen
bindsym $mod+Shift+l exec fuzzy-i3lock
bindsym $mod+Shift+l exec fuzzy-i3lock 37c3
# kill focused window
bindsym $mod+Shift+q kill

View file

@ -9,5 +9,12 @@
screenshot="${TMPDIR:-/tmp}/fuzzy-i3lock.png"
scrot -o "$screenshot"
mogrify -scale 10% -scale 1000% "$screenshot"
case $1 in
"37c3") mogrify -scale 10% -scale 1000% -blur 0x1 -dither FloydSteinberg -colors 32 "$screenshot"
;;
*) mogrify -scale 10% -scale 1000% "$screenshot"
;;
esac
exec i3lock -i "$screenshot"