From 04a4f6ee74d4543fe208fc88e29a8f7e582e3225 Mon Sep 17 00:00:00 2001 From: MahouShoujoMivutilde <14999778+MahouShoujoMivutilde@users.noreply.github.com> Date: Thu, 15 Oct 2020 16:04:25 +0300 Subject: [PATCH] buku fzfmenu - forgot xdg-open, fixed. --- Examples.md | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/Examples.md b/Examples.md index b68626d..6c4b9e0 100644 --- a/Examples.md +++ b/Examples.md @@ -1408,7 +1408,7 @@ fb() { ```sh #!/usr/bin/env bash - +# fb - buku bookmarks fzfmenu opener buku -p -f 4 | awk -F $'\t' '{ if ($4 == "") @@ -1417,12 +1417,21 @@ buku -p -f 4 | printf "%s \t\x1b[38;5;124m%s \t\x1b[38;5;208m%s\033[0m\n", $2, $4, $3 }' | fzfmenu --ansi -d $'\t' --with-nth=2,3 \ - --preview-window='bottom:10%' --preview 'printf "\x1b[38;5;117m%s\033[0m\n" {1}' + --preview-window='bottom:10%' --preview 'printf "\x1b[38;5;117m%s\033[0m\n" {1}' | + awk '{print $1}' | xargs -d '\n' -I{} -n1 -r xdg-open '{}' +``` + +Now you can bind on some key, e.g. with [sxhkd](https://github.com/baskerville/sxhkd) in sxhkdrc: + +``` +super + shift + u + fb ``` ![demo](https://i.imgur.com/Vc3GKhW.png) + ### i3 Fuzzy search desktop entries and launch the appropriate application. ```