aboutsummaryrefslogtreecommitdiff
path: root/dotfiles/.local/bin/menuwebsurf
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 /dotfiles/.local/bin/menuwebsurf
parent566a28c29703799410576a03ed474abc5e43423c (diff)
downloadswayrice-e1f418a003287fb07b3c8a984995b8f1f2ba3cd5.tar.gz
swayrice-e1f418a003287fb07b3c8a984995b8f1f2ba3cd5.zip
Show qutebrowser bookmars in bemenu
Diffstat (limited to 'dotfiles/.local/bin/menuwebsurf')
-rwxr-xr-xdotfiles/.local/bin/menuwebsurf3
1 files changed, 2 insertions, 1 deletions
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" |