1
0
Fork 0
vdotfiles/bspwm/bspmenu_url

16 lines
246 B
Text
Raw Normal View History

#!/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 "$@"