Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/euro20179/simple-search
simple search
https://github.com/euro20179/simple-search
Last synced: 7 days ago
JSON representation
simple search
- Host: GitHub
- URL: https://github.com/euro20179/simple-search
- Owner: Euro20179
- Created: 2021-05-21T04:54:56.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-08-07T04:09:50.000Z (over 3 years ago)
- Last Synced: 2023-08-20T04:19:05.270Z (over 1 year ago)
- Language: Shell
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Simple Search
Simple search is a program that prompts you for a search, then opens the webbrowser of choice and searches the search engine of choice with that search,this is a program I made for myself so i can press super+s and a dmenu window pops up so i can search very very easily
here is a very *very* basic one line implementation of this
```sh
surf "duckduckgo.com$(echo "" | dmenu -p "Search:")"
```# Usage
`simple-search `
# Install
```sh
git clone https://www.github.com/euro20179/simple-search
cd simple-search
chdmod +x simple-search
sudo cp simple-search /usr/local/bin
```# dependencies
* grep
* sed
* a webbrowser (the default is surf)# Config
there are a few environment variables,
`KEEP_SS_HISTORY`, whether or not to keep a log of searches in `SS_HISTORY`
`SS_HISTORY`, the path to the history file
`SS_BROWSER`, the browser to use (must support a commandline argument for a url), i think most browsers do
`SS_SEARCH_ENGINE`, the search engine to use instead of duckduckgo (must be a url)
wherever you want the search to be in the url put %search%