Skip to content
This repository has been archived by the owner on Sep 13, 2020. It is now read-only.

halfwit/dsearch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

79 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No longer maintained - dmenu based websearch frontend

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published