Skip to content

Commit 4e3f8d0

Browse files
committed
updated dmenu-websearch to suit dmenu-style
1 parent af2f61b commit 4e3f8d0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dmenu-websearch.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77
# Without input, will open DuckDuckGo.com.
88
# URLs will be directly handed to the browser.
99
# Anything else, it search it.
10-
browser=${BROWSER:-firefox}
10+
browser=${BROWSER:-x-www-browser}
1111
engine="https://duckduckgo.com"
1212

1313
pgrep -x dmenu && exit
1414

15-
choice=$(echo "?" | dmenuw "dmenu -p 'Search:'") || exit 1
15+
choice="$(dmenu-style --prompt 'Web search:' --choose 1 '?' -- echo)" || exit 1
1616

1717
if [ "$choice" = "?" ]; then
1818
$browser "$engine"

0 commit comments

Comments
 (0)