aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYaroslav de la Peña Smirnov <yps@yaroslavps.com>2021-11-09 18:17:31 +0300
committerYaroslav de la Peña Smirnov <yps@yaroslavps.com>2021-11-09 18:17:31 +0300
commite1f418a003287fb07b3c8a984995b8f1f2ba3cd5 (patch)
tree067fcd385a2b1b39633112bb15807516731bdabb
parent566a28c29703799410576a03ed474abc5e43423c (diff)
downloadswayrice-e1f418a003287fb07b3c8a984995b8f1f2ba3cd5.tar.gz
swayrice-e1f418a003287fb07b3c8a984995b8f1f2ba3cd5.zip
Show qutebrowser bookmars in bemenu
-rw-r--r--dotfiles/.config/mimeo/associations.txt1
-rwxr-xr-xdotfiles/.local/bin/menuwebsurf3
2 files changed, 3 insertions, 1 deletions
diff --git a/dotfiles/.config/mimeo/associations.txt b/dotfiles/.config/mimeo/associations.txt
index 9e5f577..ea461be 100644
--- a/dotfiles/.config/mimeo/associations.txt
+++ b/dotfiles/.config/mimeo/associations.txt
@@ -12,6 +12,7 @@ imgurl %U
^https?://.*\.jpeg
^https?://.*\.gif
^https?://.*\.bmp
+ ^https?://.*\.webp
bookurl %U
^https?://.*\.pdf
diff --git a/dotfiles/.local/bin/menuwebsurf b/dotfiles/.local/bin/menuwebsurf
index 9e1a7a9..8d63fc8 100755
--- a/dotfiles/.local/bin/menuwebsurf
+++ b/dotfiles/.local/bin/menuwebsurf
@@ -12,10 +12,11 @@ if [ "$1" = "paste" ]; then
prompt="$(wl-paste)"
else
qmarks="$HOME/.config/qutebrowser/quickmarks"
+ bmarks="$HOME/.config/qutebrowser/bookmarks/urls"
hist="$HOME/.local/share/qutebrowser/history.sqlite"
prompt="$(sqlite3 -separator ' ' "$hist" \
'select title, url from CompletionHistory' |
- cat "$qmarks" -)"
+ cat "$qmarks" - | cat "$bmarks" -)"
fi
choice=$(printf "%s" "$prompt" |