scripts

Various scripts for UNIX-like systems
git clone https://git.tronto.net/scripts
Download | Log | Files | Refs | README

dmenu-bookmarks (278B)


      1 #!/bin/sh
      2 
      3 # A bookmark browser based on dmenu
      4 
      5 # Usage: dmenu-bookmarks [picker options...]
      6 
      7 # Requires: dmenu-filepicker (or similar), open-url
      8 
      9 dir=$HOME/box/bookmarks
     10 picker="dmenu-filepicker"
     11 
     12 $picker "$@" "$dir" | while read -r line; do
     13 	cat "$line"
     14 done | xargs open-url