2022-09-02 15:11:13 +02:00
|
|
|
#!/bin/sh
|
|
|
|
case "$RUNLAUNCHER" in
|
2023-01-23 22:15:28 +01:00
|
|
|
"") RUNLAUNCHER=spmenu ;;
|
2022-09-02 15:11:13 +02:00
|
|
|
esac
|
|
|
|
|
|
|
|
command -v xdg-open > /dev/null && BROWSER="xdg-open"
|
|
|
|
|
2023-06-25 22:17:35 +02:00
|
|
|
URL=$(st_xurls | grep http | awk '!_[$1]++' | $RUNLAUNCHER -t -l 10 -w $WINDOWID -g 1 -p 'Open:' -na)
|
2022-09-02 15:11:13 +02:00
|
|
|
|
|
|
|
case "$1" in
|
|
|
|
"") $BROWSER $URL ;;
|
|
|
|
"-o") $BROWSER $URL ;;
|
|
|
|
"-c") echo $URL | xclip -selection clipboard ;;
|
|
|
|
esac
|