/ randomisation wip
This commit is contained in:
@@ -6,17 +6,16 @@ img_dir=/home/${USER}/.local/share/img
|
|||||||
overlay_images=("ajp.png" "antiVax.png" "archLinux.png" "archLogo.png" "linuxLogo1.png" "linuxLogo2.png")
|
overlay_images=("ajp.png" "antiVax.png" "archLinux.png" "archLogo.png" "linuxLogo1.png" "linuxLogo2.png")
|
||||||
random_image_file=${overlay_images[ $RANDOM % ${#overlay_images[@]} ]}
|
random_image_file=${overlay_images[ $RANDOM % ${#overlay_images[@]} ]}
|
||||||
random_image=${img_dir}/${random_image_file}
|
random_image=${img_dir}/${random_image_file}
|
||||||
overlay=/home/${USER}/.local/share/img/
|
|
||||||
|
|
||||||
gravity=("center" "northwest" "northeast" "southwest" "southeast")
|
gravity=("center" "northwest" "northeast" "southwest" "southeast")
|
||||||
random_gravity=${gravity[ $RANDOM % ${#gravity[@]} ]}
|
random_gravity=${gravity[ $RANDOM % ${#gravity[@]} ]}
|
||||||
|
|
||||||
notify-send "${random_image_file} @ ${random_gravity} coming up…"
|
notify-send "${random_image_file} @ ${random_gravity} ➔ coming up…"
|
||||||
|
|
||||||
#echo "${random_image}"
|
#echo "${random_image}"
|
||||||
#echo "${random_gravity}"
|
#echo "${random_gravity}"
|
||||||
|
|
||||||
#scrot /tmp/currentworkspace.png
|
scrot /tmp/currentworkspace.png
|
||||||
#convert /tmp/currentworkspace.png -blur 0x5 /tmp/currentworkspaceblur.png
|
convert /tmp/currentworkspace.png -blur 0x8 /tmp/currentworkspaceblur.png
|
||||||
#composite -gravity ${random_gravity} $overlay /tmp/currentworkspaceblur.png /tmp/lockbackground.png
|
composite -gravity ${random_gravity} ${random_image} /tmp/currentworkspaceblur.png /tmp/lockbackground.png
|
||||||
#i3lock -i /tmp/lockbackground.png
|
i3lock -i /tmp/lockbackground.png
|
||||||
|
|||||||
Reference in New Issue
Block a user