Merge branch 'master' of github.com:ahub2/my-scripts

master
Alex 2023-02-27 21:57:50 -06:00
commit 00eefd2af9
2 changed files with 20 additions and 11 deletions

View File

@ -54,23 +54,31 @@ select"
sel() { sel() {
SEL="$( echo "$OPTS" | bemenu)" 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" ;;
"File") cd "$XDG_DOWNLOAD_DIR" && curl -O -L "$1";;
"RSS") rss "$1";;
"Torrent") transadd "$1";;
esac
exit
[ "$SEL" = "Torrent" ] && transadd "$1" && exit
#$WBROWSER "$1"
} }
if [ -z "$1" ]; then if [ -z "$1" ]; then

View File

@ -1,7 +1,7 @@
pkgname="ajh-base" pkgname="ajh-base"
pkgver="1.0.0" pkgver="1.0.0"
pkgver="1" pkgver="1"
pkgrel="7" pkgrel="8"
pkgdesc="Install my config for Arch based systems." pkgdesc="Install my config for Arch based systems."
arch=("x86_64") arch=("x86_64")
@ -78,6 +78,7 @@ depends=(
"chafa" "chafa"
"bat" "bat"
"ncmpcpp" "ncmpcpp"
"mpc"
"bc" "bc"
"transmission-cli" "transmission-cli"
"neovim" "neovim"