Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Any way to speed up the process of locking? #4

Open
pavan-kalyan opened this issue Mar 9, 2021 · 1 comment
Open

Any way to speed up the process of locking? #4

pavan-kalyan opened this issue Mar 9, 2021 · 1 comment

Comments

@pavan-kalyan
Copy link

Currently, it takes 2 or more seconds to lock my screen (after pressing mod + l) on my multi-monitor set up (1 external monitor + laptop screen). I presume this is because of the image conversion and xrandr info collected.
But during this period, I can still interact with the machine.
Is there anyway to lock the screen and set the images later when ready or just speed up the processing (maybe by allowing some configuration on quality/speed of conversion?)

This is the command I'm currently using
i3lockmore --image-fill ~/.config/i3/i3-lock-screen.png
The image is approximately 4MB (If that can have a noticeable impact).

@DadiBit
Copy link

DadiBit commented Jun 12, 2022

An easy way to do this would be by caching the resulting image, but only if it is static (no screenshots). I have already achieved this partially with i3lock.
The following things should be cached:

  • The blurred static image
  • The static image path (or maybe a fast hash?)
  • ImageMagick convert parameters (if they change the blurred image should be recomputed :/ )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants