Skip to content
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

[wayland] bemenu -f stuck at Loading... #352

Open
dkwo opened this issue Aug 4, 2023 · 7 comments
Open

[wayland] bemenu -f stuck at Loading... #352

dkwo opened this issue Aug 4, 2023 · 7 comments

Comments

@dkwo
Copy link

dkwo commented Aug 4, 2023

On Wayland (compositor is river, OS Void Linux, bemenu v0.6.15), the command bemenu -f is stuck at Loading....
I'm trying to translate the command dmenu -f -fn "$BIB_GENERIC_FONT" -i -sb "$2" -p "$1" <&- from dmenu as bemenu -f --fn "$BIB_GENERIC_FONT" -i --sb "$2" -p "$1" <&- and I was hitting this.

@Cloudef
Copy link
Owner

Cloudef commented Aug 5, 2023

You are closing stdin? Do you want menu without items?

@dkwo
Copy link
Author

dkwo commented Aug 5, 2023

Ultimately, I want to use
bemenu -f --fn "Terminus 24" -i --sb "#005577" -p "Some message here" <&-
but even bemenu -f in terminal (foot) is stuck at Loading...

@dkwo
Copy link
Author

dkwo commented Aug 5, 2023

So, yes, it wants no items, just capture text, to be used in
input="$(xprompt "Type text to search: " "$BIB_GENERIC_COLOR")"
where

xprompt () { # Usage xprompt [MSG] [BG_COLOR]
    dmenu -f -fn "$BIB_GENERIC_FONT" -i -sb "$2" -p "$1" <&-
}

@dkwo
Copy link
Author

dkwo commented Aug 5, 2023

@Cloudef
Copy link
Owner

Cloudef commented Aug 5, 2023

currently bemenu does not seem to detect closed stdin (it should, and needs to be fixed), but you can achieve similar by forwarding in /dev/null, bemenu -f --fn "Terminus 24" -i --sb "#005577" -p "Some message here" </dev/null

@dkwo
Copy link
Author

dkwo commented Aug 5, 2023

Thanks, that also works for me.

@dkwo
Copy link
Author

dkwo commented Aug 5, 2023

Feel free to keep this issue open, or close it as you prefer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants