Skip to content

crdx/launcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

launcher

launcher is a wrapper around dmenu. It's similar to dmenu_run but instead of binaries it selects from applications registered via *.desktop files from XDG-compatible locations. It is written in Crystal.

Build

crystal build main.cr --no-debug --release -o launcher

Dependencies

  • dmenu with (optional) line-height patch.
    • Remove the -h flag from the call to dmenu if height customisation is not needed.

Usage

Assign window manager shortcut to run the launcher.

Desktop files are searched for in the following locations and order of precedence:

  • $HOME/.local/share
  • Paths listed in XDG_DATA_DIRS.

If a desktop file exists in multiple locations with the same name then the display name will also contain the basename of the desktop file.

Sort order

Each time an application is launched its count is incremented in $HOME/.config/launcher/stats.ini.

The most commonly run applications are placed first in the list of choices.

Logs

Each time an application is launched an entry is logged to $HOME/.config/launcher/log.txt.

Contributions

Open an issue or send a pull request.

Licence

GPLv3.

About

application launcher

Resources

License

Stars

Watchers

Forks

Contributors