diff options
-rwxr-xr-x | urilaunch | 14 | ||||
-rwxr-xr-x | urilist | 10 |
2 files changed, 11 insertions, 13 deletions
@@ -1,18 +1,6 @@ #!/bin/bash -#uristart.log /should/ already be uniq'd because of uristart's code now, but might as well not rely on it. -#you'll probably want to change my gopher-get line to be something useful to you. - -### xclip can return nothing and just error out sometimes with: -### Error: target STRING not available - exec copy_start_nevermind.sh \ - "$(cat \ - <(printf "%s\n" "$(xclip -o 2>/dev/null | head -n1)") \ - <(printf "%s\n" "$(xclip -o -selection clipboard 2>/dev/null | head -n1)") \ - <(xdotool getwindowfocus | xargs xwindowURI) \ - <(printf "\n") \ - <(gopher-get gopher://batou/0/links.txt) \ - <(cat ~/.cache/uristart.log | sort | uniq) \ + "$(urilist \ | choose 'urilaunch>' \ | cut '-d ' -f1 )" @@ -0,0 +1,10 @@ +#!/bin/bash +cat \ + <(printf "%s\n" "$(xclip -o 2>/dev/null | head -n1)") \ + <(printf "%s\n" "$(xclip -o -selection clipboard 2>/dev/null | head -n1)") \ + <(xdotool getwindowfocus | xargs xwindowURI) \ + <(printf "\n") \ + <(cat ~/.cache/uristart.log | tac | awk '!a[$0]++') \ + <(gopher-get gopher://batou.thebackupbox.net/0/links.txt) \ + <(rfc-list) \ + <(man-list) |