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

Using a lock image greater than 60x60 off-centres it. #4

Open
ldelelis opened this issue Sep 29, 2017 · 2 comments
Open

Using a lock image greater than 60x60 off-centres it. #4

ldelelis opened this issue Sep 29, 2017 · 2 comments

Comments

@ldelelis
Copy link

ldelelis commented Sep 29, 2017

Happening on Arch Linux. I tried to change the lock image (by backing up the default one and downloading another as lock.png). Reduced its size to 128x128 with imagemagick, and at the moment of locking the screen, the image appears offset to the bottom right. Just slightly, but noticeable once you're typing your password. I'll attach a screengrab of this:

2017-09-28-221822_3286x1232_scrot

EDIT: Forgot to add that I'm currently running herbstluft as my wm instead of i3. Could that be related?

@fleutot
Copy link

fleutot commented Nov 29, 2017

You should try to edit the script, adding this after done:

echo $WIDTH
echo $HEIGHT
echo $X
echo $Y
echo $POS_X
echo $POS_Y

and see if something seems off there.

@guimeira
Copy link
Owner

Sorry for taking SO long to look into this. But unfortunately, I could not reproduce it. I created a 128x128 circle and used it as my logo.png and apparently, it is centered:

test

I don't have my second monitor connected right now so I can't check if it makes a difference. I don't know what might be causing this. If you post the output of the commands suggested by @fleutot and your lock.png I can investigate a little further.

Thank you for reporting this! 👍

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

3 participants