From 31f0c41c81dfd62fae677d1a11c3cae5d73850b5 Mon Sep 17 00:00:00 2001 From: committer Date: Sun, 19 May 2024 17:48:18 -0500 Subject: [PATCH] u --- dots/bin/i3lock_fk.sh | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/dots/bin/i3lock_fk.sh b/dots/bin/i3lock_fk.sh index 817dc8b..3e9eeec 100644 --- a/dots/bin/i3lock_fk.sh +++ b/dots/bin/i3lock_fk.sh @@ -3,12 +3,13 @@ # src:https://github.com/veltall/custom-i3lock overlay=/home/${USER}/.local/share/img/archLinux.png + gravity=("center" "northwest" "northeast" "southwest" "southeast") +random_gravity=${gravity[ $RANDOM % ${#gravity[@]} ]} -the_gravity=${gravity[ $RANDOM % ${#gravity[@]} ]} +echo "${random_gravity}" - -scrot /tmp/currentworkspace.png -convert /tmp/currentworkspace.png -blur 0x5 /tmp/currentworkspaceblur.png -composite -gravity ${the_gravity} $overlay /tmp/currentworkspaceblur.png /tmp/lockbackground.png -i3lock -i /tmp/lockbackground.png \ No newline at end of file +#scrot /tmp/currentworkspace.png +#convert /tmp/currentworkspace.png -blur 0x5 /tmp/currentworkspaceblur.png +#composite -gravity ${random_gravity} $overlay /tmp/currentworkspaceblur.png /tmp/lockbackground.png +#i3lock -i /tmp/lockbackground.png \ No newline at end of file