2024-05-19 17:35:37 -05:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
|
|
# src:https://github.com/veltall/custom-i3lock
|
|
|
|
|
|
|
|
|
|
overlay=/home/${USER}/.local/share/img/archLinux.png
|
2024-05-19 17:46:08 -05:00
|
|
|
gravity=("center" "northwest" "northeast" "southwest" "southeast")
|
|
|
|
|
|
|
|
|
|
the_gravity=${gravity[ $RANDOM % ${#gravity[@]} ]}
|
|
|
|
|
|
2024-05-19 17:35:37 -05:00
|
|
|
|
|
|
|
|
scrot /tmp/currentworkspace.png
|
|
|
|
|
convert /tmp/currentworkspace.png -blur 0x5 /tmp/currentworkspaceblur.png
|
2024-05-19 17:46:08 -05:00
|
|
|
composite -gravity ${the_gravity} $overlay /tmp/currentworkspaceblur.png /tmp/lockbackground.png
|
2024-05-19 17:35:37 -05:00
|
|
|
i3lock -i /tmp/lockbackground.png
|