MarkHedleyJones / dmenu-extended

An extension to dmenu for quickly opening files and folders.
MIT License
390 stars 33 forks source link

Question: How do I exclude all directories from dmenu? #125

Closed fromtheeast710 closed 2 years ago

fromtheeast710 commented 2 years ago

I have tried "exclude_items": ["/*"], "global_ignore_folders": ["/*"], "ignore_folders": ["/*"], but that doesn't seem to work

fromtheeast710 commented 2 years ago

Nevermind, that worked.

MarkHedleyJones commented 2 years ago

Glad you found the solution. Was the issue that you hadn't rebuilt the cache after changing the settings?

fromtheeast710 commented 2 years ago

I did rebuild the cache, the problem was that I set "alias_applications" to false, which I later changed back to true.

MarkHedleyJones commented 2 years ago

Okay, well I'm glad you got it working in the end.

fromtheeast710 commented 2 years ago

Another question since you are here: Is there a way to change how programs are displayed without using the config file? For example "mpv --player-operation-mode=pseudo-gui --" is displayed as mpv Media Player but I only want it to be MPV. Where does dmenu-extended get that name from?

MarkHedleyJones commented 2 years ago

The names are extracted from the .desktop file for the relevant application. For example, here's one for Arduino:

[Desktop Entry]
Type=Application
Name=Arduino IDE
GenericName=Arduino IDE
Comment=Open-source electronics prototyping platform
Exec="/home/mark/Downloads/arduino-1.8.19-linux64/arduino-1.8.19/arduino"
Icon=arduino-arduinoide
Terminal=false
Categories=Development;IDE;Electronics;
MimeType=text/x-arduino;
Keywords=embedded electronics;electronics;avr;microcontroller;
StartupWMClass=processing-app-Base