Loop reddit script and use URL handler script with fork
This commit is contained in:
parent
7a9ec120e1
commit
57f6e5897e
1 changed files with 9 additions and 7 deletions
|
@ -21,6 +21,7 @@ menu() {
|
|||
awk -F'\t' '{ printf "↑%4s", $3; print " " $4 " " $1 " " $2 }'
|
||||
)"
|
||||
|
||||
while true; do
|
||||
RESULT="$(
|
||||
printf %b "Close Menu\n$REDDITRESULTS" |
|
||||
dmenu -c -l 10 -fn Terminus-20
|
||||
|
@ -29,7 +30,8 @@ menu() {
|
|||
[ "Close Menu" = "$RESULT" ] && exit 0
|
||||
URL=$(echo "$RESULT" | awk -F " " '{print $NF}')
|
||||
|
||||
$BROWSER "$URL"
|
||||
sxmo_urlhandler.sh "$URL" fork
|
||||
done
|
||||
}
|
||||
|
||||
menu
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue