Golink is a utility script that facilitates the launching of web URLs with the option of appending search queries directly from the desktop using dmenu. This script provides a streamlined way to access your most frequently visited websites and perform searches when applicable.
- Dynamic URL Processing: Determines if a URL can have search terms appended dynamically.
- Minimalist Interface: Utilizes
dmenufor a clean and easy-to-use interface. - Smart Redirection: Automatically redirects to a base URL if no search terms are entered for URLs that support them.
To use Golink, ensure the following tools are installed on your system:
dmenu: For handling user input through a graphical interface.- Standard utilities:
awk,sed,grep, and a web browser (Firefox is used by default).
-
Download the Script: Assuming you have git installed, clone your repository or directly download the
golinkscript into the desired location. -
Place the Script: Move the script to
~/.local/binto make it easily executable from anywhere:ln -s /path/to/golink ~/.local/bin/golink -
Make the Script Executable: Ensure the script has the necessary execution permissions:
chmod +x /path/to/golink
-
Configure URLs: Place your URLs in
urls.txtat the same directory of golink. Each line should contain a keyword and a URL, optionally with a placeholder for search terms:youtube https://www.youtube.com/results?search_query= github https://github.com/search?q=
Run the script simply by typing in dmenu:
golinkSelect a keyword through dmenu, and if applicable, enter your search terms. If no terms are entered and the URL supports them, you'll be redirected to the default homepage of the service.
- Default Browser: Change the default browser by modifying the
browservariable in the script.browser="your_preferred_browser"
Feel free to fork the project and submit pull requests or suggestions. Your contributions are greatly appreciated!
Golink is freely distributed under the MIT License.