-
Notifications
You must be signed in to change notification settings - Fork 3
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
Make use of new bemenu password indicator option #21
Conversation
815f20b
to
f471607
Compare
This option was added in bemenu 0.6.17, when enable it displays asterisks instead of hiding the input text entirely. This is also what pinentry-gtk does and I think it's much more user friendly.
Thanks! I'd like to have a cli option for this that mimics the one from |
f471607
to
375ed28
Compare
Hi, thanks for the quick reply. Updated accordingly, does warrant some further testing. I also created Cloudef/bemenu#388 in the hopes that we can reduce code duplication with upstream regarding option handling. |
else if (!strcmp(password, "none")) | ||
bm_menu_set_password(menu, BM_PASSWORD_NONE); | ||
else if (!strcmp(password, "indicator")) | ||
bm_menu_set_password(menu, BM_PASSWORD_INDICATOR); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please also a fallback to BM_PASSWORD_HIDE
,
Other than that it looks great.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't -x hide
handled in Line 170?
Line 170 in 375ed28
if (!password || !strcmp(password, "hide")) |
or what do you mean by "fallback"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-x foo
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, right. Good catch! Should be fixed now.
375ed28
to
d35e7fb
Compare
@t-8ch Would it be possible to cut a new release that includes this feature? |
Thanks for the reminder. Done in v0.13.2 |
This option was added in bemenu 0.6.17, when enable it displays asterisks instead of hiding the input text entirely. This is also what pinentry-gtk does and I think it's much more user friendly as it clearly indicates that input has been received by bemenu-pinentry.