Various progess on calling & texting; reorganize scripts dirs by category
This commit is contained in:
parent
334c74ad39
commit
ae983ef8c8
35 changed files with 1002 additions and 221 deletions
23
scripts/appscripts/sxmo_youtube.sh
Executable file
23
scripts/appscripts/sxmo_youtube.sh
Executable file
|
@ -0,0 +1,23 @@
|
|||
#!/usr/bin/env sh
|
||||
pidof svkbd-sxmo || svkbd-sxmo &
|
||||
SEARCHTERMS="$(
|
||||
echo "Search term" |
|
||||
dmenu -p "Yt Search" -c -l 10 -fn Terminus-20
|
||||
)"
|
||||
pkill svkbd-sxmo
|
||||
|
||||
IDIOTRESULTS="$(idiotbox-cli $SEARCHTERMS)"
|
||||
RESULT="$(
|
||||
echo "$IDIOTRESULTS" |
|
||||
grep -Ev '^(Channelid|Atom feed|Channel title|Published|Viewcount|Userid):' |
|
||||
sed -E 's/^(URL|Duration):\s+/\t/g' |
|
||||
tr -d '\n' |
|
||||
sed 's/===/\n/g' |
|
||||
gawk -F'\t' '{ print $3 " " $1 " " $2}' |
|
||||
dmenu -c -l 10 -fn Terminus-20
|
||||
)"
|
||||
|
||||
[[ "CLOSE_MENU" == "$RESULT" ]] && exit 0
|
||||
|
||||
URL=$(echo "$RESULT" | awk -F " " '{print $NF}')
|
||||
st -e mpv --ytdl-format='[height<420]' $@ "$URL"
|
Loading…
Add table
Add a link
Reference in a new issue