summaryrefslogtreecommitdiff
path: root/urilaunch
blob: fc15323b11a0dd080023271d57c522787bdd5034 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/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.
exec copy_start_nevermind.sh \
  "$(cat \
      <(printf "%s\n" "$(xclip -o | head -n1)") \
      <(printf "%s\n" "$(xclip -o -selection clipboard | head -n1)") \
      <(xdotool getwindowfocus | xargs xwindowURI) \
      <(printf "\n") \
      <(gopher-get gopher://batou/0/links.txt) \
      <(cat ~/.cache/uristart.log | sort | uniq) \
    | choose 'urilaunch>' \
    | cut '-d ' -f1
  )"