A script that enables direct web searching from rofi's drun menu. Search in your browser or navigate to websites directly from rofi drun using this lightweight solution.
- Search the web directly from rofi drun
- Navigate to websites without opening a separate browser window first
- Seamless integration with your existing rofi workflow
git clone https://github.com/Mr-Aaryan/rofi-drun-search-web.gitIt's recommended to store the script in your .config/scripts/ directory for better organization:
# Create scripts directory if it doesn't exist
mkdir -p ~/.config/scripts/
# Copy the script
cp rofi-drun-search-web/rofi-drun.sh ~/.config/scripts/
# Make it executable
chmod +x ~/.config/scripts/rofi-drun.shUse the following command to launch rofi with web search capabilities:
rofi -show drun -run-command "$HOME/.config/scripts/rofi-drun.sh {cmd}"The script intercepts commands from rofi drun and determines whether to:
- Execute the command normally (for regular applications)
- Perform a web search (for search queries)
- Navigate directly to websites (for URL-like inputs)
- rofi
- A web browser (firefox has been used here)
Feel free to open issues or submit pull requests on the GitHub repository.
This project is open source. Please check the repository for license details.