Back (Current repo: dotfiles)

my dotfiles to make it easy to transfer my settings
To clone this repository:
git clone https://git.viktor1993.net/dotfiles.git
Log | Download | Files | Refs

dmenusearch (335B)


#!/bin/bash

SEARCH_FOR="$(dmenu -p "Search for...:")"

if [ -z "$SEARCH_FOR" ]; then
    exit 0
fi

SEARCHER="$(dmenu -i -l 8 -p 'Search in:' < "$HOME/.config/custom/searches")"

if [ -z "$SEARCHER" ]; then
    exit 0
fi

SEARCH_URL="$(echo "$SEARCHER" | awk -v search="$SEARCH_FOR" '{print $1 search $2}')"

$BROWSER "$SEARCH_URL" &