Compare commits

..

1 Commits

View File

@ -4,8 +4,6 @@ URLQUERY_FILE="$HOME/.local/share/urlquery"
CLIPBOARD="xclip -o"
ACTION_MENU='@@'
# For additional search function, see information on open_bookmark function below
DMENU() {
dmenu -i -l $1 -p "$2"
}
@ -18,7 +16,7 @@ error_notify() {
ensure_file_exists() {
[ -f "$URLQUERY_FILE" ] || {
notify-send "$URLQUERY_FILE does not exist. Creating it now."
echo "SearXNG=https://searx.tiekoetter.com/search?q=" > "$URLQUERY_FILE"
touch "$URLQUERY_FILE"
}
}
@ -85,7 +83,7 @@ open_bookmark() {
URL=$(grep "^$SELECTION=" "$URLQUERY_FILE" | cut -d= -f2-)
[ -z "$URL" ] && notify-send "Bookmark not found." && exit 1
case "$URL" in
*"search"*|*"wiki"*|*"packages"*) # Add your additional search keywords here similarly.
*"search"*|*"wiki"*)
QUERY=$(echo "" | DMENU 0 "Search")
URL="${URL}${QUERY}"
;;