aboutsummaryrefslogtreecommitdiff
path: root/dotfiles/.local/bin/menuwebsurf
diff options
context:
space:
mode:
authorYaroslav <contact@yaroslavps.com>2020-09-18 00:13:07 +0300
committerYaroslav <contact@yaroslavps.com>2020-09-18 00:13:07 +0300
commit840f1e3bdd34b0b4b8d1d199ef6e97b6f1a1951d (patch)
treefd091847979e0ac5d05de15c4f2d9d82c088a4d6 /dotfiles/.local/bin/menuwebsurf
parente5a7e88b25b88f9aa55bbce105467c81472a6aba (diff)
downloadswayrice-840f1e3bdd34b0b4b8d1d199ef6e97b6f1a1951d.tar.gz
swayrice-840f1e3bdd34b0b4b8d1d199ef6e97b6f1a1951d.zip
Use solely mimeo to handle default files/links
Diffstat (limited to 'dotfiles/.local/bin/menuwebsurf')
-rwxr-xr-xdotfiles/.local/bin/menuwebsurf7
1 files changed, 3 insertions, 4 deletions
diff --git a/dotfiles/.local/bin/menuwebsurf b/dotfiles/.local/bin/menuwebsurf
index 00155c6..bef9890 100755
--- a/dotfiles/.local/bin/menuwebsurf
+++ b/dotfiles/.local/bin/menuwebsurf
@@ -1,7 +1,6 @@
#!/bin/sh
-# menu prompt to open a link or search with duckduckgo if it's
-# not a url
+# menu prompt to open a link with mimeo
# Source settings from .bemenurc
. ~/.config/bemenurc
@@ -16,8 +15,8 @@ fi
choice=$(echo "$prompt" | bemenu -i -p "Enter link or query:" --tf="$BEMENU_TF" --tb="$BEMENU_NB" --fb="$BEMENU_NB" --fn="$BEMENU_FN" --nb="$BEMENU_NB" --nf="$BEMENU_NF" --hf="$BEMENU_HF" --hb="$BEMENU_HB" --monitor="$BEMENU_MONITOR") || exit 1
if [ "$choice" = "🌐" ]; then
- linkhandler
+ $BROWSER
else
- linkhandler "$choice"
+ mimeo "$choice"
fi