dmenu-scripts/dmenu-buku

12 lines
642 B
Plaintext
Raw Normal View History

2022-12-12 20:11:44 +01:00
#!/bin/sh
# Simple dmenu scipt to open a buku bookmark in a browser
2023-01-03 17:09:49 +01:00
. ~/.config/dmenu/config
2022-12-26 12:16:57 +01:00
2023-01-03 17:09:49 +01:00
[ "$1" = "open" ] && buku --nostdin -p -f5 | sed 's/\t/;/g' | column -t -s ';' | $DMENU -p "Open bookmark: " -i -l 10 | cut -d' ' -f1 | xargs -r buku --nostdin -o
2023-03-23 21:05:22 +01:00
[ "$1" = "edit" ] && buku --nostdin -p -f5 | sed 's/\t/;/g' | column -t -s ';' | $DMENU -p "Edit bookmark: " -i -l 10 | cut -d' ' -f1 | xargs -r $TERMINAL -e buku -w
2023-01-05 20:02:45 +01:00
2023-02-22 19:24:09 +01:00
[ "$1" = "delete" ] && buku --nostdin -p -f5 | sed 's/\t/;/g' | column -t -s ';' | $DMENU -p "Edit bookmark: " -i -l 10 | cut -d' ' -f1 | xargs -r -I % buku --nostdin -d % --tacit && notify-send "Deleted bookmark"