Biont / sway-launcher-desktop

TUI Application launcher with Desktop Entry support. Made for SwayWM, but runs anywhere
GNU General Public License v3.0
606 stars 28 forks source link

Prefer .desktop over commands #60

Open mpldr opened 2 years ago

mpldr commented 2 years ago

It has happened quite frequently that i want to start a program and instead it runs the command. Sometimes this is not an issue, for example with firefox. However, with others like Mumble or electron-stuff the Program won't appear unless started using the desktop entry.

zenlord commented 2 years ago

Agree - I'm used to type 'nautilus' in other launchers, but in sway-launcher-desktop that doesn't work. I have to type 'Files' instead.

Biont commented 2 years ago

Sorry for not answering for so long.

I agree that this is something a lot of people will prefer. I've looked around and fzf does not give us a real way to weigh entries other than using --tiebreak=index, which would prefer entries that appear first in the list. BUT since we are populating the list in parallel, we don't actually control the order in which entries appear. So this does not lead us to a solution unless someone has an idea here.

tiagocpontesp commented 1 year ago

Idea:

You click say MOD+D and it could list .desktops, MOD+D again for bins, and then again for any other providers (thinking logind/acpi).

I think it would make a nice UX.

Ideally configure which order, and which in parallel.

mpldr commented 1 year ago

I think having different modes would indeed be a good solution, I don't think implementing the described workflow would be great though. What might be preferable is an option --show=<desktop,binaries,stdin> stdin being basically {r,w}ofi/{d,be}menu, maybe with advanced options as displayed by wofi-wifi-menu