A lightweight X11-based application launcher for Linux, written in C++. This minimal launcher provides a simple interface for running commands, evaluating math expressions, and performing unit conversions.
It's intended to launch very quickly (in a couple ms, usually) and have a small file size.
- Command Execution: Type and run shell commands directly.
- Open Directories: If the input is a directory, it will be opened using
xdg-open. - Math Evaluation: Automatically detects and evaluates basic math expressions.
- Unit Conversion: Convert between units using expressions like
100 cm in m. This calls out to theunitsprogram. - Keyboard Shortcuts:
Ctrl+A: Clear input.Enter: Execute command.Esc: Exit the application.Backspace: Delete the last character.
- Minimal UI: Simple and responsive interface with fast load times.
Ensure the following dependencies are installed:
- X11 Development Libraries: Required for compiling and running the application.
- CMake: For building the project.
- GCC: Or another C++ compiler.
git clone git@github.com:erjiang/minilaunch.git
cd minilaunch- Create a
builddirectory and navigate to it:mkdir build && cd build
- Configure and build the project using CMake:
cmake .. make
- The compiled binary will be available as
minilaunchin thebuilddirectory.
- Run the application:
./build/Launcher
- Enter commands, math expressions, or unit conversions in the input field:
- Example Commands:
ls(list files in the current directory)firefox(launch Firefox browser)
- Example Math Expressions:
2+25*10/2
- Example Unit Conversions:
10 km in m100 cm in inches
- Example Commands:
- Source Files:
main.cpp: Main application logic.launchmath.cppandunits.cpp: Math and unit conversion utilities.
This project is licensed under the MIT License. See LICENSE for details.
