t-8ch / pinentry-bemenu

Pinentry based on bemenu
GNU General Public License v3.0
49 stars 3 forks source link

Add support for more backend specific options #20

Open ghost opened 7 months ago

ghost commented 7 months ago

Namely, cursor dimension options (--ch and --cw) and the horizontal padding of entries (--hp). I had this set in BEMENU_OPTS so I could share options between bemenu and pinentry-bemenu but due to lack of support for them I currently have them commented out. It'd be great if pinentry-bemenu could support all bemenu backend-specific options, specially for those who like to customize the menu's appearance a lot.

pfr-dev commented 5 months ago

horizontal padding of entries (--hp). I had this set in BEMENU_OPTS so I could share options between bemenu and pinentry-bemenu but due to lack of support for them I currently have them commented out.

I just recently closed an issue(23) similar to this (in a way). I use the --hp flag in my BEMENU_OPTS and It works for me.

Here is what I use:

export BEMENU_OPTS="--fn 'Sarasa Term CL Nerd Font 10.5' -b -H 20 --hp 10"

I previously had trouble with the --hp flag which was placed before the --fn flag and my font was not recognised. I moved some flags around and it now works.

However, I dont see the need for Horizontal Padding in pinentry-bemenu itself because your password entries aren't displayed by the pinentry program, they are displayed by bemenu. Nevertheless, the --hp flag at the end of my BEMENU_OPTS does work with my other bemenu commands.