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

Show executables also #51

Closed
mirkojovanovic opened this issue Jan 29, 2016 · 9 comments
Closed

Show executables also #51

mirkojovanovic opened this issue Jan 29, 2016 · 9 comments

Comments

@mirkojovanovic
Copy link

I want to have desktop files first and executables after. Is this possible?

@enkore
Copy link
Owner

enkore commented Jan 30, 2016

Nothing a little sh can't fix

j4-dmenu-desktop --dmenu="(cat ; (stest -flx $(echo $PATH | tr : ' ') | sort -u)) | dmenu"

You can swap "cat" and the "(stest ... sort -u)" part to select which one (j4-d-d's output or the binaries list) comes first. Options to dmenu can be passed, too, as usual.

@mirkojovanovic
Copy link
Author

What if I have some dmenu options like colors? I just pasted your code and pipeline in front of dmenu command with arguments that worked before but it won't run as it should.

@mirkojovanovic
Copy link
Author

Sorry, it's ok, but when I assign it to a key in i3 config file I get error.

@enkore
Copy link
Owner

enkore commented Jan 30, 2016

It might be an escaping issue. Last time I had those I just created a shell script containing the "complicated" shell code, so in my config I just have something like

bindsym $mod+space exec desktop_menu.sh

That's way easier than to figure out the n levels of quoting and escaping. I created myself a ~/.local/bin for things like these, so I don't even have to type the explicit path to this kind of script.

@mirkojovanovic
Copy link
Author

Awesome, thanks a lot! 👍

@mirkojovanovic
Copy link
Author

How to disable generic names? For example just "GNU Image Manipulation Program" not that and "Image Editor" for same thing.

EDIT: Found solution.
EDIT: Hm, It looks like --no-generic is not working in command from above. Error is "unrecognized option --no-generic"

@mirkojovanovic
Copy link
Author

--no-generic option doesn't work.

@mirkojovanovic mirkojovanovic reopened this Mar 6, 2016
@enkore
Copy link
Owner

enkore commented Mar 7, 2016

--no-generic is not part of a release yet. To use it you'll need to build from source (e.g. Arch Linux AUR, or manually).

@mirkojovanovic
Copy link
Author

Ok, thanks. I think you should note that in readme.

wesbluemarine added a commit to wesbluemarine/Gentoo that referenced this issue Dec 31, 2021
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