feat: Speedup lockscreen
This commit is contained in:
@@ -25,21 +25,29 @@ awk -v content="$block" '
|
|||||||
{ print }
|
{ print }
|
||||||
' "$CONF" > "${CONF}.tmp" && mv "${CONF}.tmp" "$CONF"
|
' "$CONF" > "${CONF}.tmp" && mv "${CONF}.tmp" "$CONF"
|
||||||
|
|
||||||
|
|
||||||
|
/home/nathan/Git/hyprlock/build/hyprlock &
|
||||||
|
|
||||||
# Take a screenshot of each output before locking (!THIS IS SLOW!)
|
# Take a screenshot of each output before locking (!THIS IS SLOW!)
|
||||||
for output in "${outputs[@]}"; do
|
for output in "${outputs[@]}"; do
|
||||||
grim -o "$output" "/tmp/${output}-lockscreen.png" &
|
# grim -o "$output" "/tmp/${output}-lockscreen.png" &
|
||||||
|
$HOME/.config/hypr/scripts/spots.sh -s 8 <(grim -o "$output" -) "/tmp/${output}-lockscreen.png" &
|
||||||
done
|
done
|
||||||
wait
|
|
||||||
|
while pgrep -x grim >/dev/null; do
|
||||||
|
sleep 0.1
|
||||||
|
done
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Start hyprlock while we process the images
|
# Start hyprlock while we process the images
|
||||||
/home/nathan/Git/hyprlock/build/hyprlock &
|
|
||||||
|
|
||||||
# Apply image effect to each screenshot
|
# Apply image effect to each screenshot
|
||||||
for output in "${outputs[@]}"; do
|
# for output in "${outputs[@]}"; do
|
||||||
# Apply blur effect using spots.sh
|
# # Apply blur effect using spots.sh
|
||||||
/home/nathan/.config/hypr/scripts/spots.sh -s 8 "/tmp/${output}-lockscreen.png" "/tmp/${output}-lockscreen.png" &
|
# /home/nathan/.config/hypr/scripts/spots.sh -s 8 "/tmp/${output}-lockscreen.png" "/tmp/${output}-lockscreen.png" &
|
||||||
done
|
# done
|
||||||
# Wait for all image processing to complete
|
# Wait for all image processing to complete
|
||||||
while pgrep -x spots.sh >/dev/null; do
|
while pgrep -x spots.sh >/dev/null; do
|
||||||
sleep 0.1
|
sleep 0.1
|
||||||
|
|||||||
Reference in New Issue
Block a user