From 7b4dfbeb4cb720ea6295fb2c9c37b5aebb27d889 Mon Sep 17 00:00:00 2001 From: Crony Akatsuki Date: Mon, 12 Dec 2022 20:11:13 +0100 Subject: [PATCH] Prompt to open up your browser with a provided search. --- dmenu-browser | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 dmenu-browser diff --git a/dmenu-browser b/dmenu-browser new file mode 100755 index 0000000..a40ccea --- /dev/null +++ b/dmenu-browser @@ -0,0 +1,11 @@ +#!/bin/sh + +# Scrit to open my browser with a specified search term taken from dmenu prompt + +. ~/.config/dmenu/config + +search=$(printf '%s' | $DMENU -p "Enter search term: ") + +[ -z $search ] && exit 1 + +$BROWSER "http://searx.cronyakatsuki.xyz/search?q=$search"