Fandom

Music Player Daemon Community Wiki

Hack:mpc-pause

525pages on
this wiki
Add New Page
Talk0 Share

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.

Can you replace by mpc toggle

mpc-pause was created to emulate the --pause-play command line feature found in xmms.


#!/bin/sh
# vim: ft=sh
MPC=/usr/bin/mpc
if [ "$($MPC status | grep pause | cut -d ' ' -f1)" == "[paused]" ]; then 
   $MPC play 1>/dev/null
else
   $MPC pause 1>/dev/null
fi

You can bind a key (using your desired method) to the Pause key on the keyboard, for example.

This is now done in mpc (known as mpc toggle)

Also on Fandom

Random Wiki