diff --git a/plugins/mocp/README.md b/plugins/mocp/README.md new file mode 100644 index 000000000..6b2e90e1d --- /dev/null +++ b/plugins/mocp/README.md @@ -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. + diff --git a/plugins/mocp/mocp.plugin.zsh b/plugins/mocp/mocp.plugin.zsh new file mode 100644 index 000000000..6dfb56f1a --- /dev/null +++ b/plugins/mocp/mocp.plugin.zsh @@ -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" +