Skip to content
This repository has been archived by the owner on Sep 23, 2021. It is now read-only.

Center the password entry #103

Closed
Barbaross93 opened this issue Aug 12, 2020 · 1 comment
Closed

Center the password entry #103

Barbaross93 opened this issue Aug 12, 2020 · 1 comment

Comments

@Barbaross93
Copy link

Is it possible to center the password entry prompt so that it appears in the middle of the screen? I know its possible to have multiple newlines based on #92 , but that's only halfway to what I'd like to achieve.

@Barbaross93
Copy link
Author

I ended up figuring out a way to do it! Using #79 PR and merging it locally with the current master fork, I used the command physlock -b "~/.config/bspwm/center_cursor"
where center_cursor contains:

#!/bin/sh

width=$(tput cols)
height=$(tput lines)
clear
tput cup $(((height / 2) - 3)) $(((width / 2) - 5))
echo "$USER"
tput cup $(((height / 2) - 2)) $(((width / 2) - 5))

Obviously you can remove the first cursor centering if you do not wish to have that part as well as adjust the height/width to your liking.

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

No branches or pull requests

1 participant