From cee37cf9f7aac757d424ed626bdf91afdc40bdda Mon Sep 17 00:00:00 2001 From: Victorhck Date: Thu, 17 Jun 2021 19:45:11 +0200 Subject: [PATCH] add plugin to manage mocp player --- plugins/mocp/README.md | 14 ++++++++++++++ plugins/mocp/mocp.plugin.zsh | 22 ++++++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 plugins/mocp/README.md create mode 100644 plugins/mocp/mocp.plugin.zsh 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" +