add plugin to manage mocp player

This commit is contained in:
Victorhck 2021-06-17 19:45:11 +02:00
parent e32d4b1e19
commit cee37cf9f7
2 changed files with 36 additions and 0 deletions

14
plugins/mocp/README.md Normal file
View file

@ -0,0 +1,14 @@
# MOCP player Plugin
This plugin adds some functions you can use to manage [mocp player](https://github.com/jonsafari/mocp) in your command line.
You can easily pause/unpause, get info, jump forward or reverse, get loud or soft, stop or kill your mocp player.
To use, add `mocp` to the list of plugins in your `.zshrc` file:
`plugins=(... mocp)`
## Requirements
Of course, mocp player should be installed in your system.

View file

@ -0,0 +1,22 @@
# Alias mocp
#mocp info
alias mi="mocp -i"
#mocp pause/unpause
alias mp="mocp -G"
#mocp stop
alias ms="mocp -s"
#mocp exit
alias mx="mocp -x"
#mocp next
alias mf="mocp -f"
#mocp prev
alias mr="mocp -r"
#mocp volumen +5
alias m.="mocp --volume=+5 LEVEL"
#mocp volumen -5
alias m,="mocp --volume=-5 LEVEL"
#mocp volumen +10
alias m..="mocp --volume=+10 LEVEL"
#mocp volumen -10
alias m,,="mocp --volume=-10 LEVEL"