Skip to content

bash script for dmenu/menu with .desktop files, aliases and excludes

License

Notifications You must be signed in to change notification settings

Technicfan/l7-dmenu-desktop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 

Repository files navigation

l7-dmenu-desktop:

  • put scripts in your PATH
  • looks for .desktop files in ~/.local/share/applications/; /usr/share/; /var/lib/flatpak/exports/share/applications/; ~/.local/flatpak/exports/share/applications/
    • will build cache on first run (takes about one second on my system with 450 .desktop files)
    • after initial caching will update on change (faster)
  • includes aliases from ~/.config/l7-dmenu-desktop/aliases
    • syntax: alias <name>=<command>
  • removes entries specified in ~/.config/l7-dmenu-desktop/excludes
    • write one exclude per line
  • to include regular binaries from PATH add "addpath=1" to ~/.config/l7-dmenu-desktop/config
  • to change menu that is used use --dmenu=<menu>
    • if using dmenu (not --dmenu=), arguments will be passed to it
  • instead of your desired prompt write ~prompt~ without ' or "
  • to change the default prompts add variables to ~/.config/l7-dmenu-desktop/config:
    • prompt1=<first prompt (the one you see on launch)>
    • prompt2=<second prompt (the confirmation on launching a program that is not on the list)>
      • use ~command~ to insert the command that is asked to be run
  • write ~<command> into the menu to directly run it in bash

Important

  • dependencies (that where not installed on my ArcoLinux system):
    • dmenu (or other similar menu)
    • dex
    • parallel
    • awk
  • if you are not using alacritty change the terminal manually in line 184
  • if you want to use less or more than 12 cores change it manually in line 74

About

bash script for dmenu/menu with .desktop files, aliases and excludes

Resources

License

Stars

Watchers

Forks

Languages