Rofi: Use prompt as placeholder in entry input field

Created on 23 Oct 2019  路  4Comments  路  Source: davatorium/rofi

Version

Output of rofi -v

Version: 1.5.4-26-gaeecf34c (makepkg)

Description

Ability to show prompt as a html input-like placeholder so that the prompt will appear in the entry with a different color to normal input and disappear when any text is inputted. You can see many examples of this across the internet in the majority of input fields. I have attached an example image from github.
23-10-2019-screenshot

Use case

This would be useful for anyone who prefers the aesthetic. My main use case would be in dmenu mode since the prompt is often used to give additional context however the default style of the prompt does not look good with some themes.

Nice To Have

Most helpful comment

rofi-2019-12-26-1424-00000

All 4 comments

rofi-2019-10-23-1312-00000

You can already do a lot with the current theme format. (see attached screenshot). where the prompt is on the right and looks to be in bg of textbox.

In dmenu there is an option to pass an additional message to the user using the "-mesg" option.

That said, it is an interesting option and will consider it.

This is definitely nice to have.

rofi-2019-12-26-1424-00000

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Was this page helpful?
0 / 5 - 0 ratings