mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-23 14:20:08 +00:00
add plugin to manage mocp player
This commit is contained in:
parent
e32d4b1e19
commit
cee37cf9f7
2 changed files with 36 additions and 0 deletions
14
plugins/mocp/README.md
Normal file
14
plugins/mocp/README.md
Normal 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.
|
||||
|
22
plugins/mocp/mocp.plugin.zsh
Normal file
22
plugins/mocp/mocp.plugin.zsh
Normal 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"
|
||||
|
Loading…
Reference in a new issue