1
0
Fork 0
vdotfiles/bspwm/bspmenu_url

15 lines
246 B
Bash
Executable file

#!/bin/sh
get_bookmarks() {
while read url title; do
echo "$url"
done < "$HOME/.config/bookmarks"
}
main() {
uri=$(get_bookmarks | /home/von/.config/bspwm/bspmenu -p 'url' "$@")
[ "$uri" ] && { sx-open "$uri"; }
echo "$uri"
}
main "$@"