diff options
Diffstat (limited to '.local/bin/bukuopener')
-rwxr-xr-x | .local/bin/bukuopener | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/.local/bin/bukuopener b/.local/bin/bukuopener new file mode 100755 index 0000000..0378810 --- /dev/null +++ b/.local/bin/bukuopener | |||
@@ -0,0 +1,7 @@ | |||
1 | #!/usr/bin/env sh | ||
2 | |||
3 | url=$(buku -p -f4 | fzf -m --reverse --preview "buku --nostdin -p {1}" --preview-window=wrap | cut -f2) | ||
4 | |||
5 | if [ -n "$url" ]; then | ||
6 | echo "$url" | xargs brave | ||
7 | fi | ||