saturnin-www 394B

123456789101112131415161718192021222324
  1. #!/bin/bash
  2. . <(ffoom init)
  3. ffoo import config
  4. ffoo import pretty
  5. ffoo import saturnin_www
  6. clipln() {
  7. #
  8. # Print primary clipboard and \n
  9. #
  10. xclip -o -selection primary 2>/dev/null
  11. echo ""
  12. }
  13. debug "\$@=$@"
  14. test -z "$uri" && uri="$(echo "$@" | find_uri)"
  15. test -z "$uri" && uri="$(clipln | find_uri)"
  16. test -z "$uri" && uri="$(cfgrep -p www.bookmark.default)"
  17. echo "$uri"