From bcf9937a2ff172d9a79118bf7186c0a589030020 Mon Sep 17 00:00:00 2001 From: #root_sti Date: Fri, 26 Aug 2022 18:11:30 +0000 Subject: [PATCH] Eliminar 'scripts/rp_musicplayer.sh' --- scripts/rp_musicplayer.sh | 49 --------------------------------------- 1 file changed, 49 deletions(-) delete mode 100644 scripts/rp_musicplayer.sh diff --git a/scripts/rp_musicplayer.sh b/scripts/rp_musicplayer.sh deleted file mode 100644 index 0710af6..0000000 --- a/scripts/rp_musicplayer.sh +++ /dev/null @@ -1,49 +0,0 @@ -#!/bin/bash - -# rp_musicplayer by @root.sti - -MDIR="/home/marulo/Música/" # music dir -PL="/tmp/rp_musicplayer.pl" # playlist more fancy? -PID=$(cat /tmp/rp_musicplayer.pid) # no me convence :/ -CUR=$(cat /tmp/rp_musicplayer.cur | sed 's/\/home\/marulo\/Música\///') # hacerlo más genérico! -HELP=$(echo -e "[ add ]-add playlist\n[ clear ]-erease playlist\n[ new ]-new playlist\n[ current ]-track info\n[ play ]-play\n[ pause ]-pause\n[ continue ]-continue\n[ next ]-next track\n[ stop ]-stop\n[ share ]-clipboard\n[ exit ]-quit" | column -s "-" -t -o " -> ") - -INPUT=$(ratpoison -c "prompt  musicplayer | ") -case $INPUT in - add) - find $MDIR$(ls $MDIR | dmenu -i -l 8) -type f >> $PL - ;; - clear) - rm $PL - ;; - new) - find $MDIR$(ls $MDIR | dmenu -i -l 8) -type f > $PL - ;; - current) - ratpoison -c "echo $(ffprobe -loglevel error -show_entries format_tags=title,track,artist,album,album_artist,composer,date -of default=noprint_wrappers=1 $MDIR$CUR | cut -d: -f2 | column -s "=" -t -o " :")" - ;; - play) - for f in $(cat $PL); do echo $f > /tmp/rp_musicplayer.cur && ffplay -nodisp -autoexit $f; done & echo $! > /tmp/rp_musicplayer.pid - ;; - pause) - kill -STOP $(pgrep ffplay) - ;; - continue) - kill -CONT $(pgrep ffplay) - ;; - next) - kill $(pgrep ffplay) - ;; - stop) - kill $PID && kill $(pgrep ffplay) - ;; - share) - echo "$(ffprobe -loglevel error -show_entries format_tags=title,track,artist,album,album_artist,composer,date -of default=noprint_wrappers=1 $MDIR$CUR | cut -d: -f2 | column -s "=" -t -o " :")" | xclip -selection clipboard - ;; - help) - ratpoison -c "set msgwait 0" -c "echo $HELP" -c "msgwait 4" - ;; - exit) - exit 0 - ;; -esac