1234567891011121314151617181920212223242526272829303132 |
- #!/bin/bash
- case $1 in
- "")
- echo "Write directory"
- read dir
- cd $dir
- while true; do
- ls -a > /etc/termplayer-mpv/lists
- export dirs=$(cat /etc/termplayer-mpv/lists | fzf --color=bw)
- clear
- cd "${dirs}" || mpv "${dirs}"
- done
- ;;
- -h)
- echo "Ctrl-Z for exit"
- echo "-R, - run one song for repeat"
- echo "0 - low volume"
- echo "9 - high volume"
- ;;
- -R)
- echo "Write directory"
- read dirr
- cd $dirr
- while true; do
- ls -a > /etc/termplayer-mpv/lists
- export dirrs=$(cat /etc/termplayer-mpv/lists | fzf --color=bw)
- cd "${dirrs}" || while true; do mpv "${dirrs}"; done
- done
- ;;
- esac
|