keepmenu icon indicating copy to clipboard operation
keepmenu copied to clipboard

Support dmenu2 -mask option

Open s-ol opened this issue 6 years ago • 8 comments

-mask in dmenu2 is like -password for rofi.

s-ol avatar Nov 05 '19 17:11 s-ol

Same idea is already supported: see config.ini.example:

# # override normal foreground and background colors (dmenu) or use the
# # -password option (rofi) to obscure passphrase entry
# [dmenu_passphrase]
# nf = #222222
# nb = #222222
# rofi_obscure = True

firecat53 avatar Nov 05 '19 17:11 firecat53

exactly, but none of the three parameters can be used to make it work with dmenu natively.

s-ol avatar Nov 05 '19 17:11 s-ol

Maybe I'm misunderstanding something...dmenu doesn't have a -mask option. What are you trying to accomplish?

firecat53 avatar Nov 05 '19 17:11 firecat53

Oh I'm sorry, I missed that I am actually running dmenu2, which does: https://bitbucket.org/melek/dmenu2

Seeing that there are mulitple different forks and options with different flags, maybe it would be good to just override the dmenu_command and let the user specify which flags to apply?

s-ol avatar Nov 05 '19 18:11 s-ol

Did you try just adding -mask to the dmenu_command line in config.ini? It should support command line arguments.

[dmenu]
dmenu_command = /usr/bin/dmenu2 -mask

firecat53 avatar Nov 05 '19 18:11 firecat53

that also obscures search input in normal use. If there was a dmenu_passphrase.dmenu_command that would work.

s-ol avatar Nov 05 '19 18:11 s-ol

Ah, yeah, makes sense. I'll try and figure out the best way to handle it. May take awhile....not much development time lately :(

firecat53 avatar Nov 05 '19 18:11 firecat53

No worries, I am using nf and nb for now, just wanted to mention this here in case you didn't know of the option ;)

s-ol avatar Nov 05 '19 19:11 s-ol