Skip to content
No longer maintained - dmenu based websearch frontend
Shell Makefile
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
handlers
youtube
Makefile
README.md
dsearch

README.md

dsearch

installation

make install Will install to /usr/local/bin, and /usr/local/share/dsearch

configuration

To pipe additional content in to the menu, dsearch will source $XDG_CONFIG_HOME/dsearch/entriesrc, running each line in that file and piping (in order) those items in. It's the first thing sourced, so your items show up with precedence. Be sure to include logic for handling your entries, which would be found in $XDG_CONFIG_HOME/dsearch/handlersrc This is wired heavily into my plumber and also expects to find youtube API keys in $XDG_DATA_HOME/youtube/key and $XDG_DATA_HOME/youtube/imid

Example entriessrc

# Last selection
xcmenu --list | head -n 1

# List bookmark dir
cd "$XDG_DATA_HOME/bookmark" || exit 1
find -not -path '*/\.*' -type f -printf "%f\n" 

# Arbitrary file selection
find ~/ -type f ! -name *.git*

Example handlersrc

# Set our default handlers
browse=firefox
play=mpv
view=sxiv
docs=zathura
edit=st -e vim
hear=mpv

# Case match anything that we emit in entriesrc
case "$input" in
	browse\ -\ *)   read -r result < "$XDG_DATA_HOME/bookmark/$input"
					exec browse "$result" ;;
esac
You can’t perform that action at this time.