SearchBar is a lightweight, modern search bar built with Python and GTK3 that provides Google search suggestions in real-time. It allows users to quickly search Google or specific websites using a simple query format.
- Minimalist and elegant UI
- Google autocomplete suggestions
- Keyboard navigation (Arrow keys, Tab, and Enter)
- Supports direct website searches (e.g.,
youtube/techsearches "tech" on YouTube,stackoverflow/python errorsearches Stack Overflow for "python error") - Opens URLs directly if entered
- Smart site-based search for platforms like:
youtube/query→ Searches YouTubegithub/query→ Searches GitHubreddit/query→ Searches Redditamazon/query→ Searches Amazonflipkart/query→ Searches Flipkartwikipedia/query→ Searches Wikipediastackoverflow/query→ Searches Stack Overflow
- Opens search results in the default web browser
- Supports shortcut key binding for quick access
Ensure you have the following dependencies installed:
sudo apt update
sudo apt install python3 python3-gi python3-gi-cairo gir1.2-gtk-3.0
pip install requestsTo make shortcut one simple step is download the launch_search_bar.sh and directly map this with the favaourable Keys
- Install MSYS2 and run:
pacman -S mingw-w64-x86_64-python-gobject mingw-w64-x86_64-gtk3
- Install Python dependencies:
pip install requests
Run the script with:
python3 search_bar.pyTo make SearchBar easily accessible, you can bind it to Super+S (Windows Key + S) on your system.
- Open Settings → Keyboard Shortcuts
- Click "+" (Add Shortcut)
- Name:
SearchBar - Command:
/usr/bin/python3 /path/to/search_bar.py - Set Shortcut: Super+S
- Install AutoHotkey
- Create a new script with the following content:
#s:: Run, pythonw "C:\path\to\search_bar.py" return
- Save and run the script.
This project is licensed under the MIT License.
Enjoy fast searching with SearchBar! 🚀



