This commit is contained in:
committer
2024-05-19 17:46:08 -05:00
parent 80302136ae
commit 0882b7e943

View File

@@ -3,8 +3,12 @@
# src:https://github.com/veltall/custom-i3lock # src:https://github.com/veltall/custom-i3lock
overlay=/home/${USER}/.local/share/img/archLinux.png overlay=/home/${USER}/.local/share/img/archLinux.png
gravity=("center" "northwest" "northeast" "southwest" "southeast")
the_gravity=${gravity[ $RANDOM % ${#gravity[@]} ]}
scrot /tmp/currentworkspace.png scrot /tmp/currentworkspace.png
convert /tmp/currentworkspace.png -blur 0x5 /tmp/currentworkspaceblur.png convert /tmp/currentworkspace.png -blur 0x5 /tmp/currentworkspaceblur.png
composite -gravity southeast $overlay /tmp/currentworkspaceblur.png /tmp/lockbackground.png composite -gravity ${the_gravity} $overlay /tmp/currentworkspaceblur.png /tmp/lockbackground.png
i3lock -i /tmp/lockbackground.png i3lock -i /tmp/lockbackground.png