Replace the "Search" prompt with say, the time #2062
Answered
by
DaveDavenport
stibinator
asked this question in
Q&A
-
Is it possible to replace the default "Search" prompt with something dynamically generated like the current time, or even weather? I'm using rofi in i3wm. I tried
to test if I could change the prompt but it still shows the default "Search" text. I can include the date in the results by doing
but I'd love to have the time and date just appear as the prompt text. |
Beta Was this translation helpful? Give feedback.
Answered by
DaveDavenport
Dec 26, 2024
Replies: 1 comment
-
Yes, remove the prompt widget and add a custom textbox widget. See the manpages for more information. Example: rofi -show drun -theme-str 'inputbar { children: [ textbox-myprompt, entry ]; } textbox-myprompt { content: "mytest"; expand: false; }' |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
stibinator
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes, remove the prompt widget and add a custom textbox widget. See the manpages for more information.
Example:
rofi -show drun -theme-str 'inputbar { children: [ textbox-myprompt, entry ]; } textbox-myprompt { content: "mytest"; expand: false; }'