modify browser.sh audio option to use mpc to queue the audio file.
add mpc as dependencymaster
parent
f7c17f419c
commit
786218f70e
26
browser.sh
26
browser.sh
|
@ -54,23 +54,31 @@ select"
|
|||
sel() {
|
||||
SEL="$( echo "$OPTS" | bemenu)"
|
||||
|
||||
[ "$SEL" = "Web" ] && $WBROWSER "$1" && exit
|
||||
|
||||
[ "$SEL" = "Video" ] && mpv "$1" && exit
|
||||
case "$SEL" in
|
||||
|
||||
[ "$SEL" = "YT" ] && mpv --ytdl-format=18 "$1" && exit
|
||||
"Web") $WBROWSER "$1" ;;
|
||||
|
||||
[ "$SEL" = "Audio" ] && $TERMINAL -e mpv "$1" && exit
|
||||
"Video") mpv "$1";;
|
||||
|
||||
[ "$SEL" = "Youtube-dl audio" ] && ydl "$1" && exit
|
||||
"YT") mpv --ytdl-format=18 "$1";;
|
||||
|
||||
[ "$SEL" = "File" ] && cd "$XDG_DOWNLOAD_DIR" && curl -O -L "$1" && exit
|
||||
"Audio") mpc insert "$1"
|
||||
mpc next
|
||||
mpc play ;;
|
||||
|
||||
[ "$SEL" = "RSS" ] && rss "$1" && exit
|
||||
"Youtube-dl audio") ydl "$1" ;;
|
||||
|
||||
[ "$SEL" = "Torrent" ] && transadd "$1" && exit
|
||||
"File") cd "$XDG_DOWNLOAD_DIR" && curl -O -L "$1";;
|
||||
|
||||
"RSS") rss "$1";;
|
||||
|
||||
"Torrent") transadd "$1";;
|
||||
|
||||
esac
|
||||
|
||||
exit
|
||||
|
||||
#$WBROWSER "$1"
|
||||
}
|
||||
|
||||
if [ -z "$1" ]; then
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
pkgname="ajh-base"
|
||||
pkgver="1.0.0"
|
||||
pkgver="1"
|
||||
pkgrel="7"
|
||||
pkgrel="8"
|
||||
pkgdesc="Install my config for Arch based systems."
|
||||
arch=("x86_64")
|
||||
|
||||
|
@ -78,6 +78,7 @@ depends=(
|
|||
"chafa"
|
||||
"bat"
|
||||
"ncmpcpp"
|
||||
"mpc"
|
||||
"bc"
|
||||
"transmission-cli"
|
||||
"neovim"
|
||||
|
|
Loading…
Reference in New Issue