saturnin-www 382B

1234567891011121314151617181920212223
  1. #!/bin/bash
  2. . <(ffoom init)
  3. ffoo import config
  4. ffoo import core
  5. ffoo import 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"