diff options
author | Yaroslav de la Peña Smirnov <yps@yaroslavps.com> | 2021-11-09 18:17:31 +0300 |
---|---|---|
committer | Yaroslav de la Peña Smirnov <yps@yaroslavps.com> | 2021-11-09 18:17:31 +0300 |
commit | e1f418a003287fb07b3c8a984995b8f1f2ba3cd5 (patch) | |
tree | 067fcd385a2b1b39633112bb15807516731bdabb | |
parent | 566a28c29703799410576a03ed474abc5e43423c (diff) | |
download | swayrice-e1f418a003287fb07b3c8a984995b8f1f2ba3cd5.tar.gz swayrice-e1f418a003287fb07b3c8a984995b8f1f2ba3cd5.zip |
Show qutebrowser bookmars in bemenu
-rw-r--r-- | dotfiles/.config/mimeo/associations.txt | 1 | ||||
-rwxr-xr-x | dotfiles/.local/bin/menuwebsurf | 3 |
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" | |